parent
9e53b37d88
commit
05c5b51d5c
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
@ -1,2 +1 @@
|
||||
DIST clsync-0.4.4.tar.gz 268276 BLAKE2B 0027760cfdee5c4410c4cea45aae2def6498d812d2f50038993c39a33c6029722ec2dd2cfff20815a3ffd8834eb8c439059e5f1d2cc3d2cf98ecb22ed22f2322 SHA512 cdafbf43fdeafe9cb53c08e0514ef356fb5b4bbd8da2226263180e7441d222c76e6c73f847f484b3688a8672e4a85df0346c0236d8d0ed4506d209189af02dcd
|
||||
DIST clsync-0.4.5.tar.gz 276096 BLAKE2B 4fa534b342a806ca691f8a65455cb800800f7a943fa3f0913a26c37d2cd0f9d762630ad01eeb80bdd0d90a0731bed5f2aa60444a654972da9479c116e0e937aa SHA512 6568f3c49ac4fe11e54593ba23eed392d0b7d9b5bf052983c4a5a2befbb807dbd3f9d13412264f8909998702f869d1cd6db77d89bd9491414b1f3213437c5212
|
||||
|
@ -1,106 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools linux-info systemd
|
||||
|
||||
DESCRIPTION="Live sync tool based on inotify, written in GNU C"
|
||||
HOMEPAGE="https://github.com/clsync/clsync http://ut.mephi.ru/oss/clsync"
|
||||
SRC_URI="https://github.com/clsync/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="+caps cluster control-socket cgroups debug extra-debug
|
||||
extra-hardened gio hardened +highload-locks +inotify mhash
|
||||
namespaces seccomp"
|
||||
|
||||
REQUIRED_USE="
|
||||
|| ( gio inotify )
|
||||
extra-debug? ( debug )
|
||||
extra-hardened? ( hardened )
|
||||
mhash? ( cluster )
|
||||
seccomp? ( caps )
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
DEPEND="
|
||||
dev-libs/glib:2
|
||||
caps? ( sys-libs/libcap )
|
||||
cgroups? ( dev-libs/libcgroup )
|
||||
mhash? ( app-crypt/mhash )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
~app-doc/clsync-docs-${PV}
|
||||
"
|
||||
|
||||
pkg_pretend() {
|
||||
use inotify && CONFIG_CHECK+=" ~INOTIFY_USER"
|
||||
use namespaces && CONFIG_CHECK="~NAMESPACES ~UTS_NS ~IPC_NS ~USER_NS ~PID_NS ~NET_NS"
|
||||
use seccomp && CONFIG_CHECK+=" ~SECCOMP"
|
||||
check_extra_config
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local harden_level=0
|
||||
use hardened && harden_level=1
|
||||
use extra-hardened && harden_level=2
|
||||
|
||||
local debug_level=0
|
||||
use debug && debug_level=1
|
||||
use extra-debug && debug_level=2
|
||||
|
||||
econf \
|
||||
--disable-socket-library \
|
||||
--enable-clsync \
|
||||
--enable-debug=${debug_level} \
|
||||
--enable-paranoid=${harden_level} \
|
||||
--without-bsm \
|
||||
--without-kqueue \
|
||||
$(use_enable caps capabilities) \
|
||||
$(use_enable cluster) \
|
||||
$(use_enable control-socket socket) \
|
||||
$(use_enable highload-locks) \
|
||||
$(use_enable namespaces unshare) \
|
||||
$(use_enable seccomp) \
|
||||
$(use_with cgroups libcgroup) \
|
||||
$(use_with gio gio lib) \
|
||||
$(use_with inotify inotify native) \
|
||||
$(use_with mhash)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# docs go into clsync-docs
|
||||
rm -rf "${ED}/usr/share/doc" || die
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
||||
|
||||
# filter rules and sync scripts are supposed to be here
|
||||
insinto /etc/${PN}
|
||||
newins "${FILESDIR}/${PN}.conf" "${PN}.conf"
|
||||
keepdir /etc/${PN}
|
||||
|
||||
systemd_dounit "examples/clsync@.service"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "${PN} is just a convenient way to run synchronization tools on live data,"
|
||||
einfo "it doesn't copy data itself, so you need to install software to do actual"
|
||||
einfo "data transfer. Usually net-misc/rsync is a good choise, but ${PN} is"
|
||||
einfo "is flexible enough to use any user tool, see manual page for details."
|
||||
einfo
|
||||
einfo "${PN} init script can be multiplexed, to use symlink init script to"
|
||||
einfo "othername and use conf.d/othername to configure it."
|
||||
einfo
|
||||
einfo "If you're interested in improved security, enable"
|
||||
einfo "USE=\"caps cgroups hardened namespaces seccomp\""
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST OpenDoas-6.0.tar.gz 28482 BLAKE2B 8d35a12f18609c9dd7746ff8ce7c39d16d7c5e595a05c0f1b91211d757029ae78311573228178f95ef92624f7a49d6ca1d1d0efd264104d66e1d20a8aa623241 SHA512 2bf5e00895a45d87785e7a494a1506844afd843ef5375e0b0e3795ebc24712bb941c6feeb87e426e41a240d40aca9b4c099f77220745bb7142a7a4b303441f60
|
||||
DIST OpenDoas-6.6.1.tar.gz 30783 BLAKE2B cf6dabddb9a0ef837355516f7344efca33a639ede126e54466644521b5b1a7073b6cfa96cc8573ef16221a748ae6395f7e4fef4ff912ca7889742fb46d1a4da5 SHA512 390e0e139a2641be22c4493c3ed755d9cb4091f4ab8d590123b7c8c4f2f116cea3b3500926ff191fb98d92192ca9e92118cbcbeb463a7833763e00c65603e678
|
||||
DIST OpenDoas-6.8.1.tar.gz 32398 BLAKE2B cdaa01efaf3d164bcf6993693c86039fa4866dc1ce619731b455985ca1ebb5ebec889b540f4720c590318202de8a4b2fdf5d715f2170346818e706857b5adfa3 SHA512 d96fe1cdd70e9211de9996ad05bcf7a127facd02af48f7ab2561869d9d16708f1b61722c6e6b9fe15a62e9ef501e09b1ba444b7b43a066f1895e543ebc9402e7
|
||||
DIST OpenDoas-6.8.tar.gz 32307 BLAKE2B f199e20ccd33ed215b280f325d10c36f1449a605aa25ca92c39b43e6d9118a2c2b09e351712489028a06e9c2c087593888a93bf0377a15d1b710c9d6f659cf81 SHA512 4a57079bba353247e645bc07a5d4e78fd01471d193e83751fd87b72cffa4e152c0f7ea172563f767a7193b14489f57bc066b4fee50842d30b5b7f7ce918434bb
|
||||
|
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_PN=OpenDoas
|
||||
MY_P=${MY_PN}-${PV}
|
||||
DESCRIPTION="Run commands as super/another user (alt sudo) (unofficial port from OpenBSD)"
|
||||
HOMEPAGE="https://github.com/Duncaen/OpenDoas"
|
||||
SRC_URI="https://github.com/Duncaen/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc"
|
||||
IUSE="pam persist"
|
||||
|
||||
BDEPEND="virtual/yacc"
|
||||
RDEPEND="pam? ( sys-libs/pam )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i 's/-Werror //' GNUmakefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export CC AR
|
||||
|
||||
./configure \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--sysconfdir="${EPREFIX}"/etc \
|
||||
$(use_with pam) \
|
||||
$(use_with persist timestamp) \
|
||||
|| die "Configure failed"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use persist ; then
|
||||
ewarn "The persist/timestamp feature is disabled by default upstream."
|
||||
ewarn "It may not be as secure as on OpenBSD where proper kernel support exists."
|
||||
fi
|
||||
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]] ; then
|
||||
elog "By default, doas will deny all actions."
|
||||
elog "You need to create your own custom configuration at ${EROOT}/etc/doas.conf."
|
||||
elog "See https://wiki.gentoo.org/wiki/Doas for guidance."
|
||||
fi
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
|
||||
# HG changeset patch
|
||||
# User Todd C. Miller <Todd.Miller@sudo.ws>
|
||||
# Date 1611924154 25200
|
||||
# Node ID e0d4f196ba027604154f79ddd03a0b90f90c9607
|
||||
# Parent cd1c7615e861083e9e9b61d0e0070354e227ea5c
|
||||
Fix NO_ROOT_MAILER, broken by the eventlog refactor in sudo 1.9.4.
|
||||
init_eventlog_config() is called immediately after initializing the
|
||||
Defaults settings, which is before struct sudo_user is setup. This
|
||||
adds a call to eventlog_set_mailuid() if NO_ROOT_MAILER is defined
|
||||
after the invoking user is determined. Reported by Roman Fiedler.
|
||||
|
||||
diff -r cd1c7615e861 -r e0d4f196ba02 plugins/sudoers/logging.c
|
||||
--- a/plugins/sudoers/logging.c Tue Dec 08 12:35:21 2020 -0700
|
||||
+++ b/plugins/sudoers/logging.c Fri Jan 29 05:42:34 2021 -0700
|
||||
@@ -786,11 +786,6 @@
|
||||
init_eventlog_config(void)
|
||||
{
|
||||
int logtype = 0;
|
||||
-#ifdef NO_ROOT_MAILER
|
||||
- uid_t mailuid = user_uid;
|
||||
-#else
|
||||
- uid_t mailuid = ROOT_UID;
|
||||
-#endif
|
||||
debug_decl(init_eventlog_config, SUDOERS_DEBUG_LOGGING);
|
||||
|
||||
if (def_syslog)
|
||||
@@ -805,7 +800,7 @@
|
||||
eventlog_set_syslog_alertpri(def_syslog_badpri);
|
||||
eventlog_set_syslog_maxlen(def_syslog_maxlen);
|
||||
eventlog_set_file_maxlen(def_loglinelen);
|
||||
- eventlog_set_mailuid(mailuid);
|
||||
+ eventlog_set_mailuid(ROOT_UID);
|
||||
eventlog_set_omit_hostname(!def_log_host);
|
||||
eventlog_set_logpath(def_logfile);
|
||||
eventlog_set_time_fmt(def_log_year ? "%h %e %T %Y" : "%h %e %T");
|
||||
diff -r cd1c7615e861 -r e0d4f196ba02 plugins/sudoers/policy.c
|
||||
--- a/plugins/sudoers/policy.c Tue Dec 08 12:35:21 2020 -0700
|
||||
+++ b/plugins/sudoers/policy.c Fri Jan 29 05:42:34 2021 -0700
|
||||
@@ -518,6 +518,10 @@
|
||||
/* Some systems support fexecve() which we use for digest matches. */
|
||||
cmnd_fd = -1;
|
||||
|
||||
+#ifdef NO_ROOT_MAILER
|
||||
+ eventlog_set_mailuid(user_uid);
|
||||
+#endif
|
||||
+
|
||||
/* Dump settings and user info (XXX - plugin args) */
|
||||
for (cur = info->settings; *cur != NULL; cur++)
|
||||
sudo_debug_printf(SUDO_DEBUG_INFO, "settings: %s", *cur);
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST sysklogd-2.1.2.tar.gz 561286 BLAKE2B f70c2d116740930761677b9fdf715242844a583a59cd93c2e3408f985ce856d1a9eabc3ba736d18af44e8d154cdadec88035fc357db83eb504b4c6f800ea1f1d SHA512 dcd715939b4285e08ead0a1e797d09a8845156f456d3776cfcd0bcff7fbb9a306cb84a2b22731b430e2199d59ba42ab975fed6e675cf9d8a78833575c1490268
|
||||
DIST sysklogd-2.2.0.tar.gz 439595 BLAKE2B 82222b3993bd5f6d0b824152fe60aea97dcf1447282656692cf68576b576eacadc26f12af24f92e235f1eaf9cec243ce41f492f1e05f9fbad06d9e38854436e6 SHA512 36c4d1ae5c306195604f279c48bd837ba483deadd642e86d9eefbd0d1eefab5dc03053ad54f9751264117f9314ebbb5d492fa7bbb30b017539c6b98a7e44cf30
|
||||
DIST sysklogd-2.2.1.tar.gz 440182 BLAKE2B 7b926a45dc2aaa9cc57655c5a5cbbe3d1f91a29a136435a477d571f43b307d4f125672784319891b7498641c3ae265c3bda22d84beab99022ef7a870a4d3f1c8 SHA512 4b26e494bfdd82666718fc37c16577cfa45ad7235e4e7b9f605f1ae51dd595f0a01281ecfa04e31b9a79c2de9de3c64d02dab27924e33532da49844d8011b626
|
||||
|
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="Standard log daemons"
|
||||
HOMEPAGE="https://troglobit.com/sysklogd.html https://github.com/troglobit/sysklogd"
|
||||
|
||||
if [[ "${PV}" == *9999 ]] ; then
|
||||
inherit autotools git-r3
|
||||
EGIT_REPO_URI="https://github.com/troglobit/sysklogd.git"
|
||||
else
|
||||
SRC_URI="https://github.com/troglobit/sysklogd/releases/download/v${PV}/${P}.tar.gz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
IUSE="logger logrotate systemd"
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="
|
||||
logger? (
|
||||
!<sys-apps/util-linux-2.34-r3
|
||||
!>=sys-apps/util-linux-2.34-r3[logger]
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( ChangeLog.md README.md )
|
||||
|
||||
pkg_setup() {
|
||||
append-lfs-flags
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
[[ "${PV}" == *9999 ]] && eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--disable-static
|
||||
--runstatedir="${EPREFIX}"/run
|
||||
$(use_with logger)
|
||||
$(use_with systemd systemd $(systemd_get_systemunitdir))
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
insinto /etc
|
||||
doins syslog.conf
|
||||
keepdir /etc/syslog.d
|
||||
|
||||
newinitd "${FILESDIR}"/sysklogd.rc10 sysklogd
|
||||
newconfd "${FILESDIR}"/sysklogd.confd3 sysklogd
|
||||
|
||||
if use logrotate ; then
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/sysklogd.logrotate sysklogd
|
||||
sed 's@ -r 10M:10@@' -i "${ED}"/etc/conf.d/sysklogd || die
|
||||
fi
|
||||
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use logrotate && [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.0 ; then
|
||||
elog "Starting with version 2.0 syslogd has built in log rotation"
|
||||
elog "functionality that does no longer require a running cron daemon."
|
||||
elog "So we no longer install any log rotation cron files for sysklogd."
|
||||
fi
|
||||
if [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 2.1 ; then
|
||||
elog "Starting with version 2.1 sysklogd no longer provides klogd."
|
||||
elog "syslogd now also logs kernel messages."
|
||||
fi
|
||||
}
|
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
Alcuni file non sono stati mostrati perché troppi file sono cambiati in questo diff Mostra Altro
Caricamento…
Fai riferimento in un nuovo problema