parent
1215451e86
commit
7ae2e929f5
Binary file not shown.
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>chewi@gentoo.org</email>
|
||||
<name>James Le Cuirot</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,9 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit acct-group
|
||||
|
||||
DESCRIPTION="Group for www-apps/tt-rss"
|
||||
ACCT_GROUP_ID=386
|
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>chewi@gentoo.org</email>
|
||||
<name>James Le Cuirot</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,12 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit acct-user
|
||||
|
||||
DESCRIPTION="User for www-apps/tt-rss"
|
||||
ACCT_USER_ID=386
|
||||
ACCT_USER_GROUPS=( ttrssd )
|
||||
|
||||
acct-user_add_deps
|
Binary file not shown.
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils
|
||||
|
||||
MY_PN=${PN}.sh
|
||||
DESCRIPTION="Tool to check properties of executables (e.g. ASLR/PIE, RELRO, PaX, Canaries)"
|
||||
HOMEPAGE="https://github.com/slimm609/checksec.sh"
|
||||
SRC_URI="https://github.com/slimm609/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~mips ~ppc ~ppc64 x86"
|
||||
IUSE=""
|
||||
|
||||
S="${WORKDIR}"/${MY_PN}-${PV}
|
||||
|
||||
DOCS=( ChangeLog README.md )
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.7.2-path.patch
|
||||
sed 's,^pkg_release=false,pkg_release=true,' -i ${PN} || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
doman extras/man/*
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins extras/zsh/_${PN}
|
||||
|
||||
dobin ${PN}
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils
|
||||
|
||||
MY_PN=${PN}.sh
|
||||
DESCRIPTION="Tool to check properties of executables (e.g. ASLR/PIE, RELRO, PaX, Canaries)"
|
||||
HOMEPAGE="https://github.com/slimm609/checksec.sh"
|
||||
SRC_URI="https://github.com/slimm609/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
S="${WORKDIR}"/${MY_PN}-${PV}
|
||||
|
||||
DOCS=( ChangeLog README.md )
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.7.2-path.patch
|
||||
sed 's,^pkg_release=false,pkg_release=true,' -i ${PN} || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
doman extras/man/*
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins extras/zsh/_${PN}
|
||||
|
||||
dobin ${PN}
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST cpulimit-1.8.tar.gz 20610 BLAKE2B 4b80322b035d79267a97a491e51b2ae82488c59f4383e2dbf87d178a4a69d03a4d1aa653eccd8d801fac48e95c2f0780bd46881f4d38626b3c28b73f0a53bd71 SHA512 3098236139b092eb706ec2a6b84528a090b3f4b8b3adfc8debda1b92ffa119ed9adc508898e0f98add593561f5f6b67d52e0966de01a682a6e2e885e3c47b0fa
|
||||
DIST cpulimit-2.2.tar.gz 22224 BLAKE2B e59e65c0bd38ff93b2daaef6858c46cc99b8a1345e5a6dc66b871b1b1c7930557b6d6607d9b61e0538195aaf5fc8eda42edacda38a2f729aa56eb582bb9343a7 SHA512 e708b27e969024ed37689341d76979e5041c050c259359c46f988cfc55f571c16c17f48ca63cd93349041b76bb2c314ab69af36634fec5212e49aa0d0cb0a46e
|
||||
DIST cpulimit-2.4.tar.gz 24669 BLAKE2B e0fe0d6766e76e6e2a68dcdc553039400233daabbb14ce4a9dae46a7b694d2ecd660f4c1d13f417a74b12365c719780c732a03bd91c6384d1e7118d0fce521fb SHA512 008dc3fbdcbd8afd875a2a1ce03d609db595c6e110803140c676d3713ea60f4877a1bb8e7aa0e8b669dce31522ad81e2703f616341a0f4cbc69a6b01865b66d0
|
||||
|
@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Limits the CPU usage of a process"
|
||||
HOMEPAGE="http://cpulimit.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/limitcpu/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
tc-export CC
|
||||
# set correct VERSION
|
||||
sed -i -e '/^#define VERSION/s/1.7/1.8/' cpulimit.c || die 'sed on VERSION string failed'
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin ${PN}
|
||||
doman "${FILESDIR}/${PN}.8"
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Limits the CPU usage of a process"
|
||||
HOMEPAGE="http://cpulimit.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/limitcpu/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
tc-export CC
|
||||
# set correct VERSION
|
||||
sed -i -e "/^#define VERSION/s@[[:digit:]\.]\+\$@${PV}@" cpulimit.c || die 'sed on VERSION string failed'
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin ${PN}
|
||||
doman "${FILESDIR}/${PN}.8"
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST eclean-kernel-0.4.3.tar.gz 10650 BLAKE2B 228d17cfc5bed34e892dd6340498b87cbc32f22e83aff70824ef24f88836e3ad2306eda8704e25b7cfbadb33984edee8effd613dad67ada25519c601ec6b6ec7 SHA512 a2ffbfe800672ad0cd105425497dae72c0779ec9da5ba6a6b4efd8846762467acf6b8e70c67744e7c7639d5ba2ba4643ad344aae193e72d12d12f48b1793ff4c
|
||||
DIST eclean-kernel-1.99.4.tar.bz2 78909 BLAKE2B 0cac3a001c3180c57bdf9a63366d9950928690328fd560f984c1d35bcf88712e897462a153bc3f0250ebbbb42518798e3407c3533351543ff32bd68ecee2ee5e SHA512 f3263b83b36878104e21fe122eb96a16c5c5a930b062fdd62d6a574db597644222d5a19d7833cbb894a955076b06bcb1a22c94d5f87c2787420dd1de32d0f789
|
||||
DIST eclean-kernel-2.99.1.tar.gz 18608 BLAKE2B 3573df9b90e35fb9ac9ee4f5522daae5e9287ecd8cf612a3b984d2db663bc692e0a0eb05dcbc8ada63c69d43c821a55be11ccc3167a8a0e88f261d86dff173b5 SHA512 a9d6ccd6b5fe75f25fdd00f4cee3fe1d1c8be950958a2a28941a634e119a1715471ef129c20e077cc21e3a3925f2b8584b901265183fe75ff18e42d43ca52e14
|
||||
DIST eclean-kernel-2.99.2.tar.gz 18743 BLAKE2B 493a3f54e92821c76dde0228b382dbca0f9e9d69543e0af2269bdcfb736ef7450179d804f1a97b9e7700d812110c5f32b2667724f7c60e3377a8384e557b2f5c SHA512 48bb628be93922698483208471ec76b47615e80b5a7dead108d4f938664c72b080aa3f54f67056ce4b661ef92fff74f93ef842da1e177225793d13f8a3e16032
|
||||
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Remove outdated built kernels"
|
||||
HOMEPAGE="https://github.com/mgorny/eclean-kernel/"
|
||||
SRC_URI="https://github.com/mgorny/eclean-kernel/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="kernel_linux? ( dev-python/pymountboot[${PYTHON_USEDEP}] )"
|
||||
|
||||
distutils_enable_tests pytest
|
@ -1 +1 @@
|
||||
DIST exo-1.17.0.tar.gz 4399134 BLAKE2B d065cdbe698792afe19e1058c3e0e6c112c8ed66a0fdab8b182918022cc10cf51d4d1eb8eff42c2ff27250cbde56b627110f9b581e73d7ccbe32746081bf6de7 SHA512 2a60c80c87d9ca33dc3708c4c60b6219431751a522a9e5869fe255c1c68247c0863e9f098cc85c4652ad1ffde08386634d5374c4ddb2c82828f201a37a214075
|
||||
DIST exo-1.18.0.tar.gz 4625622 BLAKE2B 618aec5cec7a41f06963d728c627f043f08ba39695691154118261a6fb71bac93cdb07b039e74e05a464227dca4da66c17c4c319553894f2d46af6203a36a038 SHA512 862dd138a6b6cbf9471206a07cf4447df113a77f44523e72e89a1f87362086fa168ded51d43c32408946b8cf2d6cb9668ff29818494a2eb6d94b0ef7d3bf4420
|
||||
|
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
# Python3 support: https://github.com/github/backup-utils/pull/627
|
||||
PYTHON_COMPAT=(python3_{6,7,8})
|
||||
inherit python-any-r1
|
||||
|
||||
DESCRIPTION="Backup and recovery utilities for GitHub Enterprise"
|
||||
HOMEPAGE="https://github.com/github/backup-utils"
|
||||
SRC_URI="https://github.com/github/backup-utils/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# moreutils parallel is now used for speedups in main code:
|
||||
# https://github.com/github/backup-utils/pull/635
|
||||
RDEPEND="net-misc/rsync
|
||||
sys-apps/moreutils"
|
||||
|
||||
# tests invoke parallel & rsync
|
||||
DEPEND="test? (
|
||||
${RDEPEND}
|
||||
dev-util/checkbashisms
|
||||
${PYTHON_DEPS}
|
||||
)"
|
||||
|
||||
MY_PN="${PN/#github-/}"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
src_compile() {
|
||||
:;
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/*
|
||||
insinto usr/share/${PN}
|
||||
doins share/${PN}/version
|
||||
|
||||
exeinto usr/share/${PN}
|
||||
doexe share/${PN}/bm.sh
|
||||
doexe share/${PN}/ghe-*
|
||||
|
||||
insinto etc/${PN}
|
||||
newins backup.config-example backup.config
|
||||
|
||||
dodoc -r docs/*
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake test
|
||||
}
|
@ -1,5 +1,3 @@
|
||||
DIST haskell-updater-1.2.10.tar.gz 26586 BLAKE2B adc46f85118fa55e530aa079ef2df0663b178b15311f4f2ff6474db75aacf1277238a27a2bb98841fc1fe50b556d7f01a677861b3ce9559fe809a02db401ef8d SHA512 c0a72ae77362e5ed4ea0e244449175454119b1284756adeb43534bf58b661f3cabb88e08bd5903d415a9f95a6de309753dedf974ddd853b300fd215250e0ad7c
|
||||
DIST haskell-updater-1.2.12.tar.gz 26708 BLAKE2B d0b040cb3b6211b3c5c60f8cfa3dbccbf9cb15d246b21609a21aac746a8a034e284fe0b99891b5035980252a7aa8b376ad943f32882dc29e16226d95583cb053 SHA512 f3a993cb556919bf2e57fdaca7eea9146abc59096e779cbffb69a5c29fc5f6ef889c8ccf4d8331dbd9279919ea91bb05a16d83ad70085d5ef5a44d61120fe7e7
|
||||
DIST haskell-updater-1.2.9.tar.gz 26675 BLAKE2B a3d11cdcee886a07d87cd2888a9deea1d963b7234b4a10a6b78e9467fae4e9382c92f14a6ba0593f86bf9422ab2cb4bec823de96f34b463590ae18429c118edb SHA512 d19b6154d5ef4da176638c237082586688e2ac73a41c075fc3e51979b86b9e48ca5a9bfe6c870d468d66d95c1464456feed8afc388aea282aa7aad5a35f5e0da
|
||||
DIST haskell-updater-1.3.1.tar.gz 26573 BLAKE2B 68e5357e8f24b9b372dba4feac76595cbf35602d9d9094d616497c9d0040177b5f1def5833770041b693220717f3a4976877e0608858d5d8d4dddd26620c71e5 SHA512 39c36c4a8997806bb4d64625bc9ed72334a68e57f8c32f75d0c3704ab52b3b68605444c89480e5186c04bb275b3608ea9544366ebc5a00e010cc5fb4ae8296df
|
||||
DIST haskell-updater-1.3.2.tar.gz 26133 BLAKE2B ea72850e5ca35ec18fa00136c654435a852b072aea0402003c962abbb0e0f09e8a84568f78c9186324b0b0ee9658de1b413670e268cfe1c0056810b8c61b479c SHA512 a4d80ecb65efa9ae21008e04b1363ff2196df4ba431fc5ec899bb9904c598c7a109a38f7dd86dd2dc86faca8ed5083d036d700e7f7796840ee5470401c24f3d9
|
||||
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
CABAL_FEATURES="bin nocabaldep"
|
||||
inherit eutils haskell-cabal
|
||||
|
||||
DESCRIPTION="Rebuild Haskell dependencies in Gentoo"
|
||||
HOMEPAGE="https://wiki.haskell.org/Gentoo#haskell-updater"
|
||||
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/ghc-6.12.1"
|
||||
|
||||
# Need a lower version for portage to get --keep-going
|
||||
RDEPEND="|| ( >=sys-apps/portage-2.1.6
|
||||
sys-apps/pkgcore )"
|
||||
|
||||
src_prepare() {
|
||||
if use prefix; then
|
||||
sed -i -e "s,/var/db/pkg,${EPREFIX}&,g" \
|
||||
"${S}/Distribution/Gentoo/Packages.hs" || die
|
||||
|
||||
sed -i -e 's,"/","'"${EPREFIX}"'/",g' \
|
||||
"${S}/Distribution/Gentoo/GHC.hs" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cabal_src_configure \
|
||||
--bindir="${EPREFIX}/usr/sbin" \
|
||||
--constraint="Cabal == $(cabal-version)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cabal_src_install
|
||||
|
||||
dodoc TODO
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
CABAL_FEATURES="bin nocabaldep"
|
||||
inherit eutils haskell-cabal
|
||||
|
||||
DESCRIPTION="Rebuild Haskell dependencies in Gentoo"
|
||||
HOMEPAGE="https://wiki.haskell.org/Gentoo#haskell-updater"
|
||||
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/ghc-6.12.1"
|
||||
|
||||
# Need a lower version for portage to get --keep-going
|
||||
RDEPEND="|| ( >=sys-apps/portage-2.1.6
|
||||
sys-apps/pkgcore )"
|
||||
|
||||
src_prepare() {
|
||||
if use prefix; then
|
||||
sed -i -e "s,/var/db/pkg,${EPREFIX}&,g" \
|
||||
"${S}/Distribution/Gentoo/Packages.hs" || die
|
||||
|
||||
sed -i -e 's,"/","'"${EPREFIX}"'/",g' \
|
||||
"${S}/Distribution/Gentoo/GHC.hs" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cabal_src_configure \
|
||||
--bindir="${EPREFIX}/usr/sbin" \
|
||||
--constraint="Cabal == $(cabal-version)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cabal_src_install
|
||||
|
||||
dodoc TODO
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST mcelog-170.tar.gz 312911 BLAKE2B bab27c60fca937442a0f07929eaedd392c3e8de3e5f705f717d787652b6c0fa91e42169b835ea2527729c487773c7baabfceeebd3fd58d64a853ff17d8fdd8a8 SHA512 f5d29bde88cd3925c0e629850adce7f1040ecc4703c45427424f5d56f28a0add1fb24538e5c4e0749743c92479d3ea6da583c23bb41eb6a8d899626d818cb6a4
|
||||
DIST mcelog-172.tar.gz 313103 BLAKE2B f3acf5a5ebd1db92f7cddfa0e8a848bd6fbd361932ae52400c26f5aeaf7727f6dfd278ab7c1282229d9208474add124401a4665a4febe0debffad7818bcf6223 SHA512 adfde12b9f6f21ec6276c55d3554a3cdbf156e44df2f85c28d9d608418fa57b3f4a0bfcbacd13e92b77eddc1efdaeacfe3c89d203b8cbd3757f35fe419806547
|
||||
DIST mcelog-173.tar.gz 313098 BLAKE2B f9ddcd85294bdcb1d9e8e888040af94e5e17f4902efb47788b69737bb3408e59014481f822ea083947725f75b7db21250f4c645e7b409a6c23ce7a9ce3708a62 SHA512 fd83828d19f889e3cbb2ffda8fca95f3097644161bfe2ede1fd7600718fa56d343cd985b831eb643dc613a453730e07847de0f05fb14b4a03a8dcd73281199e8
|
||||
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit linux-info systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="A tool to log and decode Machine Check Exceptions"
|
||||
HOMEPAGE="http://mcelog.org/"
|
||||
SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="selinux"
|
||||
|
||||
RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
|
||||
|
||||
# TODO: add mce-inject to the tree to support test phase
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ ${MERGE_TYPE} != buildonly ]]; then
|
||||
local CONFIG_CHECK="~X86_MCE"
|
||||
kernel_is -ge 4 12 && CONFIG_CHECK+=" ~X86_MCELOG_LEGACY"
|
||||
check_extra_config
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
|
||||
"${FILESDIR}"/${PN}-129-debugflags.patch
|
||||
eapply_user
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
insinto /etc/cron.daily
|
||||
newins ${PN}.cron ${PN}
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins ${PN}.logrotate ${PN}
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
|
||||
dodoc *.pdf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "The default configuration set is now installed in /etc/${PN}"
|
||||
einfo "you might want to edit those files."
|
||||
einfo
|
||||
einfo "A sample cronjob is installed into /etc/cron.daily"
|
||||
einfo "without executable bit (system service is the preferred method now)"
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST sagan-0.2.3.tar.gz 231774 BLAKE2B b385a4b22f2fe7567dbb0c52ec022794eacf057a0dc797daa0432ef4bdfc344473a500298825f56a32513025e9c7cee3ff70fc577d7a9454e87022510a71edb4 SHA512 2110f3d34db69cb5c453b8e37d06debeea7531ebf15a9b78954ac1657ddce34feaaff87d14695759c3deb2eed5ecc0e6fec5881fb5037af8efa6c3c9600242cc
|
||||
DIST sagan-1.0.0RC3.tar.gz 285207 BLAKE2B 7322ffc73a8e86f07ef106b04feb9140ba94a51b9e286ef0c0b0d3fa609e8e03cef4c75e1d32502c1b70a4c078d8601d2a1c58058137bb793c8a52cecc4be20b SHA512 29388a339b290bb4de2359c0c54b9e1d43ef207b223a499a1a4faa36de4d9590a777a796dd773948e995d052b71f3ef47ca5bad5c133116c4dbb53b4fe336123
|
||||
|
@ -1,85 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
inherit eutils autotools-utils user
|
||||
|
||||
DESCRIPTION="Sagan is a multi-threaded, real time system and event log monitoring system"
|
||||
HOMEPAGE="http://sagan.quadrantsec.com/"
|
||||
SRC_URI="http://sagan.quadrantsec.com/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+libdnet +lognorm mysql +pcap postgres smtp snort"
|
||||
|
||||
RDEPEND="dev-libs/libpcre
|
||||
app-admin/sagan-rules[lognorm?]
|
||||
smtp? ( net-libs/libesmtp )
|
||||
pcap? ( net-libs/libpcap )
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
postgres? ( dev-db/postgresql:* )
|
||||
lognorm? ( dev-libs/liblognorm )
|
||||
libdnet? ( dev-libs/libdnet )
|
||||
snort? ( >=net-analyzer/snortsam-2.50 )
|
||||
"
|
||||
|
||||
DEPEND="virtual/pkgconfig
|
||||
${RDEPEND}"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog FAQ INSTALL README NEWS TODO )
|
||||
PATCHES=( "${FILESDIR}"/mysql_check.patch )
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup sagan
|
||||
enewuser sagan -1 -1 /dev/null sagan
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable mysql)
|
||||
$(use_enable postgres postgresql)
|
||||
$(use_enable smtp esmtp)
|
||||
$(use_enable lognorm)
|
||||
$(use_enable libdnet)
|
||||
$(use_enable pcap libpcap)
|
||||
$(use_enable snort snortsam)
|
||||
--disable-prelude
|
||||
)
|
||||
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
diropts -g sagan -o sagan -m 775
|
||||
|
||||
dodir /var/log/sagan
|
||||
|
||||
keepdir /var/log/sagan
|
||||
|
||||
touch "${ED}"/var/log/sagan/sagan.log
|
||||
chown sagan.sagan "${ED}"/var/log/sagan/sagan.log
|
||||
|
||||
newinitd "${FILESDIR}"/sagan.init sagan
|
||||
newconfd "${FILESDIR}"/sagan.confd sagan
|
||||
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r extra/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use smtp; then
|
||||
ewarn "You have enabled smtp use flag. If you plan on using Sagan with"
|
||||
ewarn "email, create valid writable home directory for user 'sagan'"
|
||||
ewarn "For security reasons it was created with /dev/null home directory"
|
||||
fi
|
||||
|
||||
einfo "For configuration assistance see"
|
||||
einfo "http://wiki.quadrantsec.com/bin/view/Main/SaganHOWTO"
|
||||
}
|
@ -1,85 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
inherit eutils autotools-utils user
|
||||
|
||||
DESCRIPTION="Sagan is a multi-threaded, real time system and event log monitoring system"
|
||||
HOMEPAGE="http://sagan.quadrantsec.com/"
|
||||
SRC_URI="http://sagan.quadrantsec.com/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="+libdnet +lognorm mysql +pcap postgres smtp snort"
|
||||
|
||||
RDEPEND="dev-libs/libpcre
|
||||
app-admin/sagan-rules[lognorm?]
|
||||
smtp? ( net-libs/libesmtp )
|
||||
pcap? ( net-libs/libpcap )
|
||||
mysql? ( virtual/mysql )
|
||||
postgres? ( dev-db/postgresql:* )
|
||||
lognorm? ( dev-libs/liblognorm )
|
||||
libdnet? ( dev-libs/libdnet )
|
||||
snort? ( >=net-analyzer/snortsam-2.50 )
|
||||
"
|
||||
|
||||
DEPEND="virtual/pkgconfig
|
||||
${RDEPEND}"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog FAQ INSTALL README NEWS TODO )
|
||||
PATCHES=( "${FILESDIR}"/mysql_check.patch )
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup sagan
|
||||
enewuser sagan -1 -1 /dev/null sagan
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable mysql)
|
||||
$(use_enable postgres postgresql)
|
||||
$(use_enable smtp esmtp)
|
||||
$(use_enable lognorm)
|
||||
$(use_enable libdnet)
|
||||
$(use_enable pcap libpcap)
|
||||
$(use_enable snort snortsam)
|
||||
--disable-prelude
|
||||
)
|
||||
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
diropts -g sagan -o sagan -m 775
|
||||
|
||||
dodir /var/log/sagan
|
||||
|
||||
keepdir /var/log/sagan
|
||||
|
||||
touch "${ED}"/var/log/sagan/sagan.log
|
||||
chown sagan.sagan "${ED}"/var/log/sagan/sagan.log
|
||||
|
||||
newinitd "${FILESDIR}"/sagan.init sagan
|
||||
newconfd "${FILESDIR}"/sagan.confd sagan
|
||||
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r extra/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use smtp; then
|
||||
ewarn "You have enabled smtp use flag. If you plan on using Sagan with"
|
||||
ewarn "email, create valid writable home directory for user 'sagan'"
|
||||
ewarn "For security reasons it was created with /dev/null home directory"
|
||||
fi
|
||||
|
||||
einfo "For configuration assistance see"
|
||||
einfo "http://wiki.quadrantsec.com/bin/view/Main/SaganHOWTO"
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST sudo-1.9.2.tar.gz 3890859 BLAKE2B 879917b8045c999a17ef36006732509aa546ee6bb04de77191fb637aa0420d54f9e51ec69b697c22119d638393e9c84efcc1ca5e6e8ee5f0c08bb1ca07f3acea SHA512 20afdf2604b1c93395157382b24f225cd1ff88d3a892362e2d69fecd240c4e7171f05032c08be1778cd1dea6e460025e4241f57272fac0ea3550e220b6d73d21
|
||||
DIST sudo-1.9.3rc1.tar.gz 3958021 BLAKE2B 432c6a2c12d04f4acc069dd23dbc08f2238c904be607fde231865ac4b4577d2d2d3c8dd5525c393a55dfa0a7dbf1bef954dfbdc4e1dcff8418a4e155c0bbbdd3 SHA512 0db4d2d659853494244b52a3884e7e9247545fb4ea43525d763b31bfa6bdb87fff3aa1c1514d7f5e5155d7cd593d45d71e384261a6a91e36f5cd7ea281686ebd
|
||||
DIST sudo-1.9.3p1.tar.gz 3958071 BLAKE2B b681c120faa5dc7f25e27c1be423d68cea70f63dcdfea2183fd386a34dec0376555453399d3f8886c66c6507343648d40b59a058710432154061b210df2a704c SHA512 3ad13fd03e5b371fd6bf7909731ffc11431d2182a744b654f7e5d4b810e47955d49bc78f551afe13ec56acbce694139c33a15bc022cea41b17af5496b8b7f89f
|
||||
|
@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="Summarizes the contents of a syslog log file"
|
||||
HOMEPAGE="https://github.com/dpaleino/syslog-summary"
|
||||
SRC_URI="https://github.com/downloads/dpaleino/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~sparc x86"
|
||||
IUSE=""
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
|
||||
src_prepare() {
|
||||
python_fix_shebang -f syslog-summary
|
||||
|
||||
# Sadly, the makefile is useless for us.
|
||||
rm Makefile || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin syslog-summary
|
||||
dodoc AUTHORS ChangeLog NEWS README
|
||||
doman syslog-summary.1
|
||||
|
||||
insinto /etc/syslog-summary
|
||||
doins ignore.rules
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="Summarizes the contents of a syslog log file"
|
||||
HOMEPAGE="https://github.com/dpaleino/syslog-summary"
|
||||
SRC_URI="https://github.com/downloads/dpaleino/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
|
||||
src_prepare() {
|
||||
python_fix_shebang -f syslog-summary
|
||||
|
||||
sed -i -e 's:python-magic:sys-apps/file[python]:' "syslog-summary" || die
|
||||
|
||||
# Sadly, the makefile is useless for us.
|
||||
rm Makefile || die
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin syslog-summary
|
||||
einstalldocs
|
||||
doman syslog-summary.1
|
||||
|
||||
insinto /etc/syslog-summary
|
||||
doins ignore.rules
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "install sys-apps/file[python] to enable processing"
|
||||
elog "of gzip compressed logfiles"
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="Summarizes the contents of a syslog log file"
|
||||
HOMEPAGE="https://github.com/dpaleino/syslog-summary"
|
||||
SRC_URI="https://github.com/downloads/dpaleino/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-fix-ignore-code.patch" )
|
||||
|
||||
src_prepare() {
|
||||
python_fix_shebang -f syslog-summary
|
||||
|
||||
sed -i -e 's:python-magic:sys-apps/file[python]:' "syslog-summary" || die
|
||||
|
||||
# Sadly, the makefile is useless for us.
|
||||
rm Makefile || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin syslog-summary
|
||||
einstalldocs
|
||||
doman syslog-summary.1
|
||||
|
||||
insinto /etc/syslog-summary
|
||||
doins ignore.rules
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "install sys-apps/file[python] to enable processing"
|
||||
elog "of gzip compressed logfiles"
|
||||
}
|
@ -1,42 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="Summarizes the contents of a syslog log file"
|
||||
HOMEPAGE="https://github.com/dpaleino/syslog-summary"
|
||||
SRC_URI="https://github.com/downloads/dpaleino/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${PYTHON_DEPS}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-fix-ignore-code.patch" "${FILESDIR}/${P}-remove-file-magic.patch" )
|
||||
|
||||
src_prepare() {
|
||||
python_fix_shebang -f syslog-summary
|
||||
|
||||
# Sadly, the makefile is useless for us.
|
||||
rm Makefile || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin syslog-summary
|
||||
einstalldocs
|
||||
doman syslog-summary.1
|
||||
|
||||
insinto /etc/syslog-summary
|
||||
doins ignore.rules
|
||||
}
|
Binary file not shown.
@ -0,0 +1,25 @@
|
||||
# This script is intended to rotate the logs for clamav-milter in its
|
||||
# default configuration on Gentoo, where clamav-milter writes to its
|
||||
# own log file but does not rotate that file itself. The clamav-milter
|
||||
# daemon is capable of rotating its own logs; if you have "LogRotate
|
||||
# yes" in clamav-milter.conf then you do not need this script (and
|
||||
# should disable it). Likewise, if you are logging to syslog
|
||||
# (LogSyslog yes), this is redundant.
|
||||
#
|
||||
# This is more complicated than the clamd/freshclam scripts because
|
||||
# the milter doesn't yet reopen its log files when it receives a
|
||||
# SIGHUP. See https://bugzilla.clamav.net/show_bug.cgi?id=12615
|
||||
# for that. Instead we have to attempt OpenRC/systemd service
|
||||
# restarts on (only) the machines that support them.
|
||||
/var/log/clamav/clamav-milter.log {
|
||||
su clamav clamav
|
||||
missingok
|
||||
postrotate
|
||||
if command -v rc-service 2>/dev/null; then
|
||||
rc-service clamav-milter status 2>/dev/null 1>&2 && rc-service clamav-milter restart 1>/dev/null
|
||||
fi
|
||||
if command -v systemctl 2>/dev/null; then
|
||||
systemctl try-restart clamav-milter
|
||||
fi
|
||||
endscript
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
# This script is intended to rotate the logs for clamd in its default
|
||||
# configuration on Gentoo, where clamd writes to its own log file but
|
||||
# does not rotate that file itself. The clamd daemon is capable of
|
||||
# rotating its own logs; if you have "LogRotate yes" in clamd.conf
|
||||
# then you do not need this script (and should disable it). Likewise,
|
||||
# if you are logging to syslog (LogSyslog yes), this is redundant.
|
||||
/var/log/clamav/clamd.log {
|
||||
su clamav clamav
|
||||
missingok
|
||||
postrotate
|
||||
if test -f /run/clamd.pid; then
|
||||
/bin/kill -HUP $(cat /run/clamd.pid)
|
||||
else
|
||||
true
|
||||
fi
|
||||
endscript
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
# This script is intended to rotate the logs for freshclam in its default
|
||||
# configuration on Gentoo, where freshclam writes to its own log file but
|
||||
# does not rotate that file itself. The freshclam daemon is capable of
|
||||
# rotating its own logs; if you have "LogRotate yes" in freshclam.conf
|
||||
# then you do not need this script (and should disable it). Likewise,
|
||||
# if you are logging to syslog (LogSyslog yes), this is redundant.
|
||||
/var/log/clamav/freshclam.log {
|
||||
su clamav clamav
|
||||
missingok
|
||||
postrotate
|
||||
if test -f /run/freshclam.pid; then
|
||||
/bin/kill -HUP $(cat /run/freshclam.pid)
|
||||
else
|
||||
true
|
||||
fi
|
||||
endscript
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=clamav updater
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/run/freshclam.pid
|
||||
ExecStart=/usr/bin/freshclam -d -p /run/freshclam.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Binary file not shown.
@ -0,0 +1,76 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/digint/btrbk.git"
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="https://digint.ch/download/btrbk/releases/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Tool for creating snapshots and remote backups of btrfs subvolumes"
|
||||
HOMEPAGE="https://digint.ch/btrbk/"
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
IUSE="+mbuffer +doc"
|
||||
|
||||
DEPEND="doc? ( >=dev-ruby/asciidoctor-1.5.7 )"
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
net-misc/openssh
|
||||
mbuffer? ( >=sys-block/mbuffer-20180505 )
|
||||
>=sys-fs/btrfs-progs-4.12"
|
||||
|
||||
src_compile() {
|
||||
emake clean
|
||||
use doc && emake -C doc
|
||||
}
|
||||
src_install() {
|
||||
local targets="install-bin install-etc install-share install-systemd"
|
||||
use doc && targets="${targets} install-man install-doc"
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
DOCDIR="/usr/share/doc/${PF}" \
|
||||
SYSTEMDDIR="$(systemd_get_systemunitdir)" \
|
||||
${targets}
|
||||
}
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-0.26.0" ; then
|
||||
upgrade_0_26_0_warning="1"
|
||||
fi
|
||||
if has_version "<${CATEGORY}/${PN}-0.27.0" ; then
|
||||
upgrade_0_27_0_warning="1"
|
||||
fi
|
||||
}
|
||||
pkg_postinst() {
|
||||
if [[ "${upgrade_0_26_0_warning}" == "1" ]]; then
|
||||
ewarn "If you are using raw targets, make sure to run the"
|
||||
ewarn "\"raw_suffix2sidecar\" utility in each target directory."
|
||||
fi
|
||||
if [[ "${upgrade_0_27_0_warning}" == "1" ]]; then
|
||||
ewarn 'Due to a bugfix in the scheduler [1] [2], previously preserved'
|
||||
ewarn 'monthly/yearly backups could get deleted when upgrading to'
|
||||
ewarn 'btrbk-0.27.0.'
|
||||
ewarn ''
|
||||
ewarn 'Before upgrading to btrbk-0.27.0, make sure to stop all cron jobs'
|
||||
ewarn 'or systemd timers calling btrbk.'
|
||||
ewarn ''
|
||||
ewarn 'After upgrading, run "btrbk prune --dry-run --print-schedule" and'
|
||||
ewarn 'check if any snapshots/backups would get deleted. If you want to'
|
||||
ewarn 'forcibly preserve a snapshot/backup forever, rename it:'
|
||||
ewarn ''
|
||||
ewarn ' mv mysubvol.YYYYMMDD mysubvol.YYYYMMDD.keep_forever'
|
||||
ewarn ''
|
||||
ewarn 'Note that btrbk ignores subvolumes with unknown naming scheme, e.g.'
|
||||
ewarn '(".keep_forever" suffix in the example above).'
|
||||
ewarn ''
|
||||
ewarn ' [1] https://github.com/digint/btrbk/issues/217'
|
||||
ewarn ' [2] https://github.com/digint/btrbk/commit/719fb5f'
|
||||
fi
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit readme.gentoo
|
||||
|
||||
DESCRIPTION="A shell frontend for duplicity"
|
||||
HOMEPAGE="http://duply.net"
|
||||
SRC_URI="mirror://sourceforge/project/ftplicity/duply%20%28simple%20duplicity%29/1.11.x/${PN}_${PV}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="app-text/txt2man"
|
||||
RDEPEND="app-backup/duplicity"
|
||||
|
||||
S=${WORKDIR}/${PN}_${PV}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
./${PN} txt2man > ${PN}.1 || die
|
||||
doman ${PN}.1
|
||||
dodoc CHANGELOG.txt
|
||||
readme.gentoo_create_doc
|
||||
}
|
@ -1,4 +1 @@
|
||||
DIST rear-1.15.tar.gz 258153 BLAKE2B 1172806962df7d1a5f278d1aeb696e38d482f1710c6b13dba6b00f60f51fd3c02ba6d28c9c5e4b1a648468f9a6f5987b47ca1f819c8e66c9b6f209c75b0ba0b6 SHA512 dc953c33b82f221de6c2acd7ffbb26c34b86aebcd7f8a4d7d520a1d08c15c723fed75326b8e19614f5e09f6436d392091b362b350ffad06caf10c711eb97fcb2
|
||||
DIST rear-1.17.0.tar.gz 299444 BLAKE2B bbada2b5705a5ff0f82b97974f14de728a779847a6b410e0be71033404ae08f0ba6c4bd76c07aba0195aa677c174ebf016bbb6a17f3aa2698bed24bcb50618f3 SHA512 4b9991dc14138e6a2cd28c9fb9f1dcf46ea1a580454bb2c966024481657a102cc849baf6af5ebfa0793ac3f5ebff5b07abc87d1e4b02e1496a0f87b8cf79284e
|
||||
DIST rear-1.17.1.tar.gz 303253 BLAKE2B 3c84a76b0aaf1ef72191a49976aa86ce4fcf7c9aee1c6c85af3d68d80e0c6a7ba0d16e109847c7753a626ef34df9ee05f2912b30df5e205303c194831bd5af77 SHA512 66595e962345c0e61c5152f11aee6745ec348acc02d0cbc717faaca8618c83211d8c45ec5e80a17ba9d8c8ad9c6d2ecb109f827d976eb0d126bfc44cf4b49afc
|
||||
DIST rear-2.4.tar.gz 611731 BLAKE2B f7cb6955302e0be6178393a678f050729b827f822df91d28245655d414892f225e25125f7e3bfad080e139ddc9c728121894b4ebde48c4dff2a8071fb4a5d46e SHA512 8a20c0ffd913b1b4c27f6125c1ca31404daaceccb2bfff7932f1ea402806657252afc3f6719c75dcab2de18b7975f83544dac92f43a742654f90494454d7c088
|
||||
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="A setup-and-forget Linux bare metal disaster recovery solution"
|
||||
HOMEPAGE="http://relax-and-recover.org/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="libressl udev"
|
||||
|
||||
RDEPEND="
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
net-dialup/mingetty
|
||||
net-fs/nfs-utils
|
||||
sys-apps/iproute2
|
||||
sys-apps/lsb-release
|
||||
sys-apps/util-linux
|
||||
sys-block/parted
|
||||
sys-boot/syslinux
|
||||
virtual/cdrtools
|
||||
udev? ( virtual/udev )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}-add-support-for-gentoo-kernels.patch"
|
||||
}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
# Deploy udev USB rule and udev will autostart ReaR workflows in case a USB
|
||||
# drive with the label 'REAR_000' is connected, which in turn is the
|
||||
# default label when running the `rear format` command.
|
||||
if use udev ; then
|
||||
insinto /lib/udev/rules.d
|
||||
doins etc/udev/rules.d/62-${PN}-usb.rules
|
||||
fi
|
||||
|
||||
# Copy main script-file and documentation.
|
||||
dosbin usr/sbin/${PN}
|
||||
doman doc/${PN}.8
|
||||
dodoc README
|
||||
|
||||
# Copy configurations files.
|
||||
insinto /etc
|
||||
doins -r etc/${PN}/
|
||||
|
||||
insinto /usr/share/
|
||||
doins -r usr/share/${PN}/
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="A setup-and-forget Linux bare metal disaster recovery solution"
|
||||
HOMEPAGE="http://relax-and-recover.org/"
|
||||
MY_PV=${PV%.*}
|
||||
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${MY_PV}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="libressl udev"
|
||||
|
||||
RDEPEND="
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
net-dialup/mingetty
|
||||
net-fs/nfs-utils
|
||||
sys-apps/gawk
|
||||
sys-apps/iproute2
|
||||
sys-apps/lsb-release
|
||||
sys-apps/util-linux
|
||||
sys-block/parted
|
||||
sys-boot/syslinux
|
||||
virtual/cdrtools
|
||||
udev? ( virtual/udev )
|
||||
"
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
# Deploy udev USB rule and udev will autostart ReaR workflows in case a USB
|
||||
# drive with the label 'REAR_000' is connected, which in turn is the
|
||||
# default label when running the `rear format` command.
|
||||
if use udev ; then
|
||||
insinto /lib/udev/rules.d
|
||||
doins etc/udev/rules.d/62-${PN}-usb.rules
|
||||
fi
|
||||
|
||||
# Copy main script-file and documentation.
|
||||
dosbin usr/sbin/${PN}
|
||||
doman doc/${PN}.8
|
||||
dodoc README
|
||||
|
||||
# Copy configurations files.
|
||||
insinto /etc
|
||||
doins -r etc/${PN}/
|
||||
|
||||
insinto /usr/share/
|
||||
doins -r usr/share/${PN}/
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="A setup-and-forget Linux bare metal disaster recovery solution"
|
||||
HOMEPAGE="http://relax-and-recover.org/"
|
||||
MY_PV=${PV%.*}
|
||||
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${MY_PV}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="libressl udev"
|
||||
|
||||
RDEPEND="
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
net-dialup/mingetty
|
||||
net-fs/nfs-utils
|
||||
sys-apps/gawk
|
||||
sys-apps/iproute2
|
||||
sys-apps/lsb-release
|
||||
sys-apps/util-linux
|
||||
sys-block/parted
|
||||
sys-boot/syslinux
|
||||
virtual/cdrtools
|
||||
udev? ( virtual/udev )
|
||||
"
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
# Deploy udev USB rule and udev will autostart ReaR workflows in case a USB
|
||||
# drive with the label 'REAR_000' is connected, which in turn is the
|
||||
# default label when running the `rear format` command.
|
||||
if use udev ; then
|
||||
insinto /lib/udev/rules.d
|
||||
doins etc/udev/rules.d/62-${PN}-usb.rules
|
||||
fi
|
||||
|
||||
# Copy main script-file and documentation.
|
||||
dosbin usr/sbin/${PN}
|
||||
doman doc/${PN}.8
|
||||
dodoc README
|
||||
|
||||
# Copy configurations files.
|
||||
insinto /etc
|
||||
doins -r etc/${PN}/
|
||||
|
||||
insinto /usr/share/
|
||||
doins -r usr/share/${PN}/
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST acme.sh-2.8.3.tar.gz 163573 BLAKE2B 7436932d79e732b8c419a588f4677ec0338c63d0dfc227e7410b151731e2fc4c028df81f459f7ad140dab857ebdebddab3173095e3efcfad0a971ff6762c8608 SHA512 15e147d0f07af91eab7274df50e274ae41a411c30ee7f6ebc8bcbcb601b66094fc1d8126bfb816caa27dbeb5222da20a25d1c79227bc70ddb6b5d0ce0dcb389e
|
||||
DIST acme.sh-2.8.5.tar.gz 176854 BLAKE2B 74eb9bbf4b99984ba77725c6751b713d6971503d1a8542472e75192afc9139705607f629e673af75b6ec7dab68b1a9ad2fd4676cda26871daf475487e28e0848 SHA512 db355d8c60c61b632c62dda376e71c438035d3eaf5630a6dc3ca241f6d988216f046e1588ccfe3da955aacb7897cefac5a8c7b6868f12af8f422182c52ed7b72
|
||||
DIST acme.sh-2.8.7.tar.gz 206475 BLAKE2B ac1d51efac6301210ffd8b6e5ff6ed490cbf80e7dd154ec7a2ad0b6a2dd08ac73a325e332192214c964a873ba7c6f01a43a2157963d7edec9e0ec45b47e5b689 SHA512 45599f50a4a45b6fdea58d7a5759e4eb5f8e33acc53d60b264c15662e6bdc1e353af610845056fc67b127242c4ad15eaaf60a2113f2cb0245d4e4861dac6e1c3
|
||||
|
@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MY_PN="${PN/-/.}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="An ACME Shell script"
|
||||
HOMEPAGE="https://github.com/Neilpang/acme.sh"
|
||||
SRC_URI="https://github.com/Neilpang/${MY_PN}/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="net-misc/curl
|
||||
|| ( dev-libs/libressl dev-libs/openssl:0 )
|
||||
|| ( net-analyzer/netcat net-analyzer/openbsd-netcat )
|
||||
|| ( net-misc/socat www-servers/apache:2 www-servers/nginx )
|
||||
virtual/cron"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
newdoc dnsapi/README.md README-dnsapi.md
|
||||
newdoc deploy/README.md README-deploy.md
|
||||
|
||||
keepdir /etc/acme-sh
|
||||
doenvd "${FILESDIR}"/99acme-sh
|
||||
insinto /etc/bash/bashrc.d
|
||||
doins "${FILESDIR}"/acme.sh
|
||||
|
||||
exeinto /usr/share/acme.sh
|
||||
doexe acme.sh
|
||||
insinto /usr/share/acme.sh/dnsapi
|
||||
doins -r dnsapi/*.sh
|
||||
insinto /usr/share/acme.sh/deploy
|
||||
doins -r deploy/*.sh
|
||||
insinto /usr/share/acme.sh/notify
|
||||
doins -r notify/*.sh
|
||||
|
||||
dosym ../share/acme.sh/acme.sh usr/bin/acme.sh
|
||||
}
|
@ -1,7 +1,3 @@
|
||||
DIST monkeysphere_0.36.orig.tar.gz 98876 BLAKE2B 5f8dcd5349cd038208fcc00dff19c7d001ca8b763f223e832c820bc4f09391ff78667f80af691c0234aed810f4d5aa77d26a378a88b41a4b115ab528e0cdd9ed SHA512 eb6776bd9996db8a5d6a1d16b5b06e6733069cbb3cb35f4e3965508575e084c6f08576f31c71429432daf93910d145804ecf155c3d7550a0f4550a056cb4f0c8
|
||||
DIST monkeysphere_0.37.orig.tar.gz 99557 BLAKE2B d32d127927bcf3494933282fcc343ffd32841a8afe84c78b9b29ae30fa374328295d3610475aacd8e2cf0962130c2a73b338c702dff4f904b6fd23b33ad0331b SHA512 ebf636caaa0985a2495314375a9d78d131173ccedc116993e02b7bbc0ddc8c43c718dc65cb725619ecf7e72e0b7e11b941f3eb342d7c23d17ca0507b2ab28512
|
||||
DIST monkeysphere_0.38.orig.tar.gz 107546 BLAKE2B 627b0fbed52e651d57fd359e79b91689eeca47ea58335125061cba72f863a582d39536504124e18805c39b3c43e5096edb6db0e32c5c80570689bd55e2936a3b SHA512 fd87460fe16b0133fd507ff93926a5dea6419343b45c3ba33e6e981333646f4fa840c127bb1f3e7750bc3ede66c5e07f4155557a8354cf38d89159422dca390f
|
||||
DIST monkeysphere_0.39.orig.tar.gz 107735 BLAKE2B 5e4df72c8c78f6325f79c93b7de1407af2ceb1d2b6be43476d3e0dc5b2505ae97c589deec2bcb64a7dbb3a661221891b89e126086d08df09aef07b07452344f7 SHA512 069acbc3e4f1409a130d4efc95875c72b9e4c55af6ff211fb954a90ff26605ecf9cdbbe7d7f7849de479cafaab7957a33fccefd5f2d54a2317f18bc5454190c2
|
||||
DIST monkeysphere_0.41.orig.tar.gz 109040 BLAKE2B dadbd65c879bc8e73e7dd1360ebe7f7242aef125af3907d4487f8d0711afda6d87736ab82938867201eead5c1008d192dbd90602eff5a4843d990b3c87ee2949 SHA512 fcc3dd6c191635ed7ef27a8219d4c9d7043629dc8a02de947fcc4dfc8e612ec767f68d4e4c41252a0c0fc80e4184018e53991d85fcde50cb5def75b925341962
|
||||
DIST monkeysphere_0.42.orig.tar.gz 110415 BLAKE2B 281ce2841b9f088f632aa6f487dc6b669911dc343bd2cbbe3dddfcc2ace9a1f2f747bfbb6d831c071a5ebae9c34d4809b1b1f90277e7d3fe1e8f0d42f363f52f SHA512 82e3b0f5f5532c75c1ccf2bd6269f7f4292f38956236fdb7813117a85ef36852b7d7c000552555ab0e233df9a84d7f4e5e86edd007bfcebdd6cde2e808f489f5
|
||||
DIST monkeysphere_0.44.orig.tar.gz 110289 BLAKE2B 8a067035d3a40436fd5c27291ab25f15d475d9a0f17b51259c0431c77841807af93cb04d045b77c5f5dda3cd0061ab52561fdb62a704715d0d8cbbf96cb43259 SHA512 cb3c655a08b1c0a382502f8609f57d0c870fe4491b1b967e9931bdfd146b3926470496577949630452e073f04442b91a1ef679254c0f3091a834f3429e0f8e93
|
||||
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="Leverage the OpenPGP web of trust for OpenSSH and Web authentication"
|
||||
HOMEPAGE="http://web.monkeysphere.info/"
|
||||
SRC_URI="http://archive.${PN}.info/debian/pool/${PN}/${PN::1}/${PN}/${PN}_${PV}.orig.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="test"
|
||||
|
||||
# Tests do weird things with network and fail OOTB.
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
app-crypt/gnupg
|
||||
app-misc/lockfile-progs
|
||||
dev-perl/Crypt-OpenSSL-RSA
|
||||
dev-perl/Digest-SHA1
|
||||
|| ( net-analyzer/netcat net-misc/socat )"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( net-misc/socat )"
|
||||
|
||||
pkg_setup()
|
||||
{
|
||||
einfo "Creating named group and user"
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
|
||||
}
|
||||
|
||||
src_prepare()
|
||||
{
|
||||
epatch "${FILESDIR}/${P}_default_shell.patch" \
|
||||
"${FILESDIR}/${P}_non_default_port.patch" \
|
||||
"${FILESDIR}/${P}_userid_empty_line.patch"
|
||||
|
||||
sed -i "s#share/doc/${PN}#share/doc/${PF}#" Makefile || die
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
default
|
||||
|
||||
dodir /var/lib/${PN}
|
||||
fowners root:${PN} /var/lib/${PN}
|
||||
fperms 751 /var/lib/${PN}
|
||||
}
|
||||
|
||||
pkg_postinst()
|
||||
{
|
||||
${PN}-authentication setup || die
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="Leverage the OpenPGP web of trust for OpenSSH and Web authentication"
|
||||
HOMEPAGE="http://web.monkeysphere.info/"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0/0"
|
||||
IUSE=""
|
||||
SRC_URI="mirror://debian/pool/monkeysphere/m/monkeysphere/monkeysphere_${PV}.orig.tar.gz http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/monkeysphere_${PV}.orig.tar.gz"
|
||||
KEYWORDS="amd64 ~arm x86"
|
||||
|
||||
DOCS=( README Changelog )
|
||||
|
||||
# Tests fail upstream for SSH connection. Issue has been reported.
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="app-crypt/gnupg:0=
|
||||
net-misc/socat:0=
|
||||
dev-perl/Crypt-OpenSSL-RSA:0=
|
||||
dev-perl/Digest-SHA1:0=
|
||||
app-misc/lockfile-progs:0="
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup()
|
||||
{
|
||||
einfo "Creating named group and user"
|
||||
enewgroup monkeysphere
|
||||
enewuser monkeysphere -1 -1 /var/lib/monkeysphere monkeysphere
|
||||
# Using fperms and fowner in src_install leave unusable config with error
|
||||
# Authentication refused: bad ownership or modes for directory /var/lib/monkeysphere
|
||||
chown root:monkeysphere /var/lib/monkeysphere
|
||||
chmod 751 /var/lib/monkeysphere
|
||||
}
|
||||
|
||||
src_prepare()
|
||||
{
|
||||
epatch "${FILESDIR}/${P}_default_shell.patch"\
|
||||
"${FILESDIR}/${P}_hd_od.patch"
|
||||
|
||||
sed -i "s#share/doc/monkeysphere#share/doc/${PF}#" Makefile || die
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
default
|
||||
dodir /var/lib/monkeysphere
|
||||
}
|
||||
|
||||
pkg_postinst()
|
||||
{
|
||||
monkeysphere-authentication setup || die
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="Leverage the OpenPGP web of trust for OpenSSH and Web authentication"
|
||||
HOMEPAGE="http://web.monkeysphere.info/"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0/0"
|
||||
IUSE=""
|
||||
SRC_URI="mirror://debian/pool/monkeysphere/m/monkeysphere/monkeysphere_${PV}.orig.tar.gz http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/monkeysphere_${PV}.orig.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
|
||||
DOCS=( README Changelog )
|
||||
|
||||
# Tests fail upstream for SSH connection. Issue has been reported.
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="app-crypt/gnupg:0=
|
||||
net-misc/socat:0=
|
||||
dev-perl/Crypt-OpenSSL-RSA:0=
|
||||
dev-perl/Digest-SHA1:0=
|
||||
app-misc/lockfile-progs:0="
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup()
|
||||
{
|
||||
einfo "Creating named group and user"
|
||||
enewgroup monkeysphere
|
||||
enewuser monkeysphere -1 -1 /var/lib/monkeysphere monkeysphere
|
||||
# Using fperms and fowner in src_install leave unusable config with error
|
||||
# Authentication refused: bad ownership or modes for directory /var/lib/monkeysphere
|
||||
chown root:monkeysphere /var/lib/monkeysphere
|
||||
chmod 751 /var/lib/monkeysphere
|
||||
}
|
||||
|
||||
src_prepare()
|
||||
{
|
||||
epatch \
|
||||
"${FILESDIR}/${P}-asprintf.patch" \
|
||||
"${FILESDIR}/${P}-revert-executable-patch.patch" \
|
||||
"${FILESDIR}/${P}-syssharedir-whitespace.patch" \
|
||||
"${FILESDIR}/${PN}-0.37_default_shell.patch" \
|
||||
"${FILESDIR}/${PN}-0.37_hd_od.patch"
|
||||
|
||||
sed -i "s#share/doc/monkeysphere#share/doc/${PF}#" Makefile || die
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
default
|
||||
dodir /var/lib/monkeysphere
|
||||
}
|
||||
|
||||
pkg_postinst()
|
||||
{
|
||||
monkeysphere-authentication setup || die
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="Leverage the OpenPGP web of trust for OpenSSH and Web authentication"
|
||||
HOMEPAGE="http://web.monkeysphere.info/"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0/0"
|
||||
IUSE=""
|
||||
SRC_URI="mirror://debian/pool/monkeysphere/m/monkeysphere/monkeysphere_${PV}.orig.tar.gz http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/monkeysphere_${PV}.orig.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
|
||||
DOCS=( README Changelog )
|
||||
|
||||
# Tests fail upstream for SSH connection. Issue has been reported.
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="app-crypt/gnupg:0=
|
||||
net-misc/socat:0=
|
||||
dev-perl/Crypt-OpenSSL-RSA:0=
|
||||
dev-perl/Digest-SHA1:0=
|
||||
app-misc/lockfile-progs:0="
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup()
|
||||
{
|
||||
einfo "Creating named group and user"
|
||||
enewgroup monkeysphere
|
||||
enewuser monkeysphere -1 -1 /var/lib/monkeysphere monkeysphere
|
||||
# Using fperms and fowner in src_install leave unusable config with error
|
||||
# Authentication refused: bad ownership or modes for directory /var/lib/monkeysphere
|
||||
chown root:monkeysphere /var/lib/monkeysphere
|
||||
chmod 751 /var/lib/monkeysphere
|
||||
}
|
||||
|
||||
src_prepare()
|
||||
{
|
||||
epatch "${FILESDIR}/${P}-make-tests-work-with-gnupg-2.1.15.patch"
|
||||
|
||||
sed -i "s#share/doc/monkeysphere#share/doc/${PF}#" Makefile || die
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
default
|
||||
dodir /var/lib/monkeysphere
|
||||
}
|
||||
|
||||
pkg_postinst()
|
||||
{
|
||||
monkeysphere-authentication setup || die
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="Leverage the OpenPGP web of trust for OpenSSH and Web authentication"
|
||||
HOMEPAGE="http://web.monkeysphere.info/"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0/0"
|
||||
IUSE=""
|
||||
SRC_URI="mirror://debian/pool/monkeysphere/m/monkeysphere/monkeysphere_${PV}.orig.tar.gz http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/monkeysphere_${PV}.orig.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
|
||||
DOCS=( README Changelog )
|
||||
|
||||
## Tests fail upstream for SSH connection. Issue has been reported.
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="app-crypt/gnupg:0=
|
||||
net-misc/socat:0=
|
||||
dev-perl/Crypt-OpenSSL-RSA:0=
|
||||
dev-perl/Digest-SHA1:0=
|
||||
app-misc/lockfile-progs:0="
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup()
|
||||
{
|
||||
einfo "Creating named group and user"
|
||||
enewgroup monkeysphere
|
||||
enewuser monkeysphere -1 -1 /var/lib/monkeysphere monkeysphere
|
||||
# Using fperms and fowner in src_install leave unusable config with error
|
||||
# Authentication refused: bad ownership or modes for directory /var/lib/monkeysphere
|
||||
chown root:monkeysphere /var/lib/monkeysphere
|
||||
chmod 751 /var/lib/monkeysphere
|
||||
}
|
||||
|
||||
src_prepare()
|
||||
{
|
||||
sed -i "s#share/doc/monkeysphere#share/doc/${PF}#" Makefile || die
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
default
|
||||
dodir /var/lib/monkeysphere
|
||||
}
|
||||
|
||||
pkg_postinst()
|
||||
{
|
||||
monkeysphere-authentication setup || die
|
||||
}
|
Binary file not shown.
@ -1,3 +1 @@
|
||||
DIST verbiste-0.1.38.tar.gz 706222 BLAKE2B 2ec6f5da9ae410faf422afc7717db5c77d288c6994ec4076c9ace1f3589ee98cbe624a82601415e2c736e127a96225da5afda8ada6a26b2b926a501316b723df SHA512 b5d99d08a9d1a7c91c1dbb86e0d4465a46403db881cd28d2abaf8d376adef6b4d4f5ac93e528d45beb639b77aff7e1730dbb436624674ff21c1f5781173db787
|
||||
DIST verbiste-0.1.41.tar.gz 751059 BLAKE2B 503411520a2b76463d20cae09af33f28255db5450a6721da248a87f4df102b64084e224261416bff9fba62cf6e1605363c4aae1090e91da06b65892c37ee9e5b SHA512 f89bb1074cd8c65f8516004c89aae50c65b5bd426d78a01b5e6b7418d86b5c348d2c554ab202c9f34cc9c5586a54518160fc225afa237cdb140ff99f78563702
|
||||
DIST verbiste-0.1.44.tar.gz 780465 BLAKE2B 692fd3bdf00323b08d4c8a66baaf9f6800c4593428d36efb4cd4bfc51eea912297154e4b0610b94b66d1354317ac7cf24d6dca083d521c648338a0974f6d0899 SHA512 36c8a2af31f948dc3970bef260d5cd7f9d230f4966f846bcc823f006cd98ab98229544b7470466529344ac5735d1189c859c539f526cd58410d9a521510db5e5
|
||||
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils gnome2-utils fdo-mime ltprune
|
||||
|
||||
DESCRIPTION="French conjugation system"
|
||||
HOMEPAGE="http://sarrazip.com/dev/verbiste.html"
|
||||
SRC_URI="http://sarrazip.com/dev/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
|
||||
IUSE="gtk"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libxml2-2.4.0:2
|
||||
gtk? ( >=x11-libs/gtk+-2.6:2 )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-console-app \
|
||||
--without-gnome-app \
|
||||
--without-gnome-applet \
|
||||
$(use_with gtk gtk-app)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
prune_libtool_files
|
||||
dodoc HACKING LISEZMOI
|
||||
# file is only installed with USE=gnome
|
||||
if use gtk; then
|
||||
sed -e 's/Exec=.*/Exec=verbiste-gtk/' \
|
||||
-i src/gnome/verbiste.desktop || die
|
||||
insinto usr/share/applications
|
||||
doins src/gnome/verbiste.desktop
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if use gtk; then
|
||||
gnome2_icon_savelist
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use gtk; then
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
gnome2_icon_cache_update
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if use gtk; then
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
gnome2_icon_cache_update
|
||||
fi
|
||||
}
|
@ -1,66 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils gnome2-utils ltprune xdg-utils
|
||||
|
||||
DESCRIPTION="French conjugation system"
|
||||
HOMEPAGE="http://sarrazip.com/dev/verbiste.html"
|
||||
SRC_URI="http://sarrazip.com/dev/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
|
||||
IUSE="gtk"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libxml2-2.4.0:2
|
||||
gtk? ( >=x11-libs/gtk+-2.6:2 )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-console-app \
|
||||
--without-gnome-app \
|
||||
--without-gnome-applet \
|
||||
$(use_with gtk gtk-app)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
prune_libtool_files
|
||||
dodoc HACKING LISEZMOI
|
||||
# file is only installed with USE=gnome
|
||||
if use gtk; then
|
||||
sed -e 's/Exec=.*/Exec=verbiste-gtk/' \
|
||||
-i src/gnome/verbiste.desktop || die
|
||||
insinto usr/share/applications
|
||||
doins src/gnome/verbiste.desktop
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if use gtk; then
|
||||
gnome2_icon_savelist
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use gtk; then
|
||||
xdg_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if use gtk; then
|
||||
xdg_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit python-any-r1
|
||||
|
||||
DESCRIPTION="GNU Image Manipulation Program help files"
|
||||
HOMEPAGE="https://docs.gimp.org/"
|
||||
SRC_URI="mirror://gimp/help/${P}.tar.bz2"
|
||||
|
||||
LICENSE="FDL-1.2"
|
||||
SLOT="2"
|
||||
KEYWORDS="~alpha amd64 ~hppa ~ia64 ppc ppc64 sparc x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
$(python_gen_any_dep 'dev-libs/libxml2[python,${PYTHON_USEDEP}]')
|
||||
dev-libs/libxslt
|
||||
sys-devel/gettext
|
||||
"
|
||||
|
||||
python_check_deps() {
|
||||
has_version "dev-libs/libxml2[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --without-gimp
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# see https://bugs.gentoo.org/677198
|
||||
emake -j 1
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST meson-mode-0.2.tar.gz 28194 BLAKE2B a11b7659dfb7883a624706ee3a80ab2de69c3f3830d363a767e2a2fc644a9d1d946269a7d30af4ec93180341807519e5bf0bd55e1500513076e7aa07e0ec888b SHA512 05a9554f2ff1520834648ef6b7c27d09d5f9355fe980d19a67eba39e1e0a4a402e64284e17c6d544b8e95bdee3e204b79d73c6166d6d8c48683036821bad532f
|
||||
DIST meson-mode-0.3.tar.gz 30159 BLAKE2B d4d3256b1b9838d9816433c422207f99b6ad8a61d344d1ba34d00a2b1463c8d6d35cb87fa885667df95cd9622715e2f805f5e0e16bf21d404bbec9244916b70f SHA512 95dbe9b706ff9a25e9b235f5d09cbbca035ad9a9bc67abb5fee791ebf3e51cfc3d16e03cea037e9a810ff2bbd8b77caa515e8a26dbfbfe0b46b4cc019138375b
|
||||
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
NEED_EMACS=26.1
|
||||
|
||||
inherit elisp
|
||||
|
||||
DESCRIPTION="A GNU Emacs major mode for Meson build-system files"
|
||||
HOMEPAGE="https://github.com/wentasah/meson-mode"
|
||||
SRC_URI="https://github.com/wentasah/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
Binary file not shown.
@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
# update on bump, look for https://github.com/docker\
|
||||
# docker-ce/blob/<docker ver OR branch>/components/engine/hack/dockerfile/install/containerd.installer
|
||||
CONTAINERD_COMMIT="8fba4e9a7d01810a393d5d25a3621dc101981175"
|
||||
EGO_PN="github.com/containerd/${PN}"
|
||||
|
||||
inherit golang-vcs-snapshot toolchain-funcs
|
||||
|
||||
DESCRIPTION="A daemon to control runC"
|
||||
HOMEPAGE="https://containerd.io/"
|
||||
SRC_URI="https://github.com/containerd/${PN}/archive/${CONTAINERD_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
IUSE="apparmor btrfs device-mapper +cri hardened +seccomp selinux test"
|
||||
|
||||
DEPEND="
|
||||
btrfs? ( sys-fs/btrfs-progs )
|
||||
seccomp? ( sys-libs/libseccomp )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
~app-emulation/runc-1.0.0_rc10
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
dev-go/go-md2man
|
||||
virtual/pkgconfig
|
||||
test? ( "${RDEPEND}" )
|
||||
"
|
||||
|
||||
# tests require root or docker
|
||||
# upstream does not recommend stripping binary
|
||||
RESTRICT+=" strip test"
|
||||
|
||||
S="${WORKDIR}/${P}/src/${EGO_PN}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s/git describe --match.*$/echo ${PV})/"\
|
||||
-e "s/git rev-parse HEAD.*$/echo ${CONTAINERD_COMMIT})/"\
|
||||
-e "s/-s -w//" \
|
||||
Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local options=(
|
||||
$(usev apparmor)
|
||||
$(usex btrfs "" "no_btrfs")
|
||||
$(usex cri "" "no_cri")
|
||||
$(usex device-mapper "" "no_devmapper")
|
||||
$(usev seccomp)
|
||||
$(usev selinux)
|
||||
)
|
||||
|
||||
myemakeargs=(
|
||||
BUILDTAGS="${options[*]}"
|
||||
DESTDIR="${ED}"
|
||||
LDFLAGS=$(usex hardened '-extldflags -fno-PIC' '')
|
||||
)
|
||||
|
||||
export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor
|
||||
export GOFLAGS="-v -x -mod=vendor"
|
||||
emake "${myemakeargs[@]}" all man
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/*
|
||||
doman man/*
|
||||
newinitd "${FILESDIR}"/${PN}.initd-r1 "${PN}"
|
||||
keepdir /var/lib/containerd
|
||||
|
||||
# we already installed manpages, remove markdown source
|
||||
# before installing docs directory
|
||||
rm -rf docs/man || die
|
||||
local DOCS=( README.md PLUGINS.md docs/. )
|
||||
einstalldocs
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Containerd container runtime"
|
||||
command="/usr/bin/containerd"
|
||||
command_args="${command_args:-}"
|
||||
command_background="true"
|
||||
pidfile="${pidfile:-/run/${RC_SVCNAME}.pid}"
|
||||
start_stop_daemon_args="--stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
|
||||
|
||||
start_pre() {
|
||||
checkpath -m 0750 -d "/var/log/${RC_SVCNAME}"
|
||||
|
||||
ulimit -n 1048576
|
||||
|
||||
# Having non-zero limits causes performance problems due to accounting overhead
|
||||
# in the kernel. We recommend using cgroups to do container-local accounting.
|
||||
ulimit -u unlimited
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
start_post() {
|
||||
ewaitfile 5 /run/containerd/containerd.sock
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
# Copyright 2018-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8,9} )
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
MY_PV=${PV/_/-}
|
||||
DESCRIPTION="Multi-container orchestration for Docker"
|
||||
HOMEPAGE="https://github.com/docker/compose"
|
||||
SRC_URI="https://github.com/docker/compose/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/cached-property-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/distro-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/docker-py-4.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/dockerpty-0.4.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/docopt-0.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dotenv-0.13.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-2.5.1[${PYTHON_USEDEP}]
|
||||
dev-python/paramiko[${PYTHON_USEDEP}]
|
||||
>=dev-python/PySocks-1.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/texttable-0.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/websocket-client-0.32.0[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
>=dev-python/pytest-5[${PYTHON_USEDEP}]
|
||||
>=dev-python/ddt-1.2.2[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/compose-${MY_PV}"
|
||||
|
||||
PATCHES=(
|
||||
# Bug #679968 -- https://bugs.gentoo.org/679968
|
||||
# Bug #681002 -- https://bugs.gentoo.org/681002
|
||||
"${FILESDIR}"/${PN}-1.27.0_rc3-setup-py.patch
|
||||
)
|
||||
|
||||
DOCS=( CHANGELOG.md README.md )
|
||||
|
||||
src_prepare() {
|
||||
# Address QA issue "docker-compose.exe: missing alias (symlink) for completed command."
|
||||
sed 's,^\(complete.*\) docker-compose\.exe\(.*\),\1\2,' -i contrib/completion/bash/docker-compose || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
${PYTHON} -m pytest tests/unit/ || die "tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
newbashcomp contrib/completion/bash/docker-compose ${PN}
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins contrib/completion/zsh/*
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EGO_PN="github.com/docker/libnetwork"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
EGIT_COMMIT="026aabaa659832804b01754aaadd2c0f420c68b6"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
|
||||
DESCRIPTION="Docker container networking"
|
||||
HOMEPAGE="https://github.com/docker/libnetwork"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${P}/src/${EGO_PN}
|
||||
|
||||
# needs dockerd
|
||||
RESTRICT="test"
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${WORKDIR}/${P}" go build -o "bin/docker-proxy" ./cmd/proxy || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc README.md CHANGELOG.md
|
||||
dobin bin/docker-proxy
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST docker-19.03.12.tar.gz 18218138 BLAKE2B a018a1677d36c01a9eb8d9c597e6b264304a742929bf7f8bb3c12b03c75748bc6f3313f8e7c293323bc3ae013b5555044f7cf1ad7a8750a5794418bee05e405a SHA512 6ede7e0c5494882d88dae5b4ae45049937dfc65b9d655988ae4c0d6f9759bcac8799251f37a3e4ce49cdfbb04e31f9a6a05d131fb5005b382d2306ca0d5fcfa3
|
||||
DIST docker-19.03.13.tar.gz 18242693 BLAKE2B c19afed62694274298b42fc9af3b36c4cc6429b40f7e5447a996b87636a0d2e916476875652e20abd7aeab4e5e0e1cf887a04dcade1de03ded549fc36d911ac4 SHA512 5f34a14ef0b36a309d4a08926ac482ca82d24cdd873aa359c5ba7c65473cbb2e987fe615c38c1bc1c50135284da78a7eb98a8a0106d7d073aeda0cd8f1c31873
|
||||
|
@ -0,0 +1,316 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGO_PN="github.com/docker/docker-ce"
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Docker cannot be fetched via "go get", thanks to autogenerated code
|
||||
EGIT_REPO_URI="https://${EGO_PN}.git"
|
||||
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/${EGO_PN}"
|
||||
inherit git-r3
|
||||
else
|
||||
DOCKER_GITCOMMIT=4484c46d9d
|
||||
MY_PV=${PV/_/-}
|
||||
SRC_URI="https://${EGO_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||
[ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
inherit bash-completion-r1 golang-base linux-info systemd udev
|
||||
|
||||
DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
|
||||
HOMEPAGE="https://www.docker.com/"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="apparmor aufs btrfs +container-init device-mapper hardened overlay seccomp selinux"
|
||||
|
||||
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
|
||||
BDEPEND="
|
||||
>=dev-lang/go-1.13.12
|
||||
dev-go/go-md2man
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
acct-group/docker
|
||||
>=dev-db/sqlite-3.7.9:3
|
||||
apparmor? ( sys-libs/libapparmor )
|
||||
btrfs? ( >=sys-fs/btrfs-progs-3.16.1 )
|
||||
device-mapper? ( >=sys-fs/lvm2-2.02.89[thin] )
|
||||
seccomp? ( >=sys-libs/libseccomp-2.2.1 )
|
||||
"
|
||||
|
||||
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
|
||||
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#optional-dependencies
|
||||
# https://github.com/docker/docker-ce/tree/master/components/engine/hack/dockerfile/install
|
||||
# make sure containerd, docker-proxy, runc and tini pinned to exact versions from ^,
|
||||
# for appropriate brachch/version of course
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
!sys-apps/systemd[-cgroup-hybrid(+)]
|
||||
>=net-firewall/iptables-1.4
|
||||
sys-process/procps
|
||||
>=dev-vcs/git-1.7
|
||||
>=app-arch/xz-utils-4.9
|
||||
dev-libs/libltdl
|
||||
~app-emulation/containerd-1.3.7[apparmor?,btrfs?,device-mapper?,seccomp?,selinux?]
|
||||
~app-emulation/runc-1.0.0_rc10[apparmor?,seccomp?,selinux(-)?]
|
||||
~app-emulation/docker-proxy-0.8.0_p20200617
|
||||
container-init? ( >=sys-process/tini-0.18.0[static] )
|
||||
"
|
||||
|
||||
RESTRICT="installsources strip"
|
||||
|
||||
S="${WORKDIR}/${P}/src/${EGO_PN}"
|
||||
|
||||
# see "contrib/check-config.sh" from upstream's sources
|
||||
CONFIG_CHECK="
|
||||
~NAMESPACES ~NET_NS ~PID_NS ~IPC_NS ~UTS_NS
|
||||
~CGROUPS ~CGROUP_CPUACCT ~CGROUP_DEVICE ~CGROUP_FREEZER ~CGROUP_SCHED ~CPUSETS ~MEMCG
|
||||
~KEYS
|
||||
~VETH ~BRIDGE ~BRIDGE_NETFILTER
|
||||
~IP_NF_FILTER ~IP_NF_TARGET_MASQUERADE
|
||||
~NETFILTER_XT_MATCH_ADDRTYPE ~NETFILTER_XT_MATCH_CONNTRACK ~NETFILTER_XT_MATCH_IPVS
|
||||
~IP_NF_NAT ~NF_NAT
|
||||
~POSIX_MQUEUE
|
||||
|
||||
~USER_NS
|
||||
~SECCOMP
|
||||
~CGROUP_PIDS
|
||||
~MEMCG_SWAP
|
||||
|
||||
~BLK_CGROUP ~BLK_DEV_THROTTLING
|
||||
~CGROUP_PERF
|
||||
~CGROUP_HUGETLB
|
||||
~NET_CLS_CGROUP
|
||||
~CFS_BANDWIDTH ~FAIR_GROUP_SCHED ~RT_GROUP_SCHED
|
||||
~IP_VS ~IP_VS_PROTO_TCP ~IP_VS_PROTO_UDP ~IP_VS_NFCT ~IP_VS_RR
|
||||
|
||||
~VXLAN
|
||||
~CRYPTO ~CRYPTO_AEAD ~CRYPTO_GCM ~CRYPTO_SEQIV ~CRYPTO_GHASH ~XFRM_ALGO ~XFRM_USER
|
||||
~IPVLAN
|
||||
~MACVLAN ~DUMMY
|
||||
|
||||
~OVERLAY_FS
|
||||
~EXT4_FS_SECURITY
|
||||
~EXT4_FS_POSIX_ACL
|
||||
"
|
||||
|
||||
ERROR_KEYS="CONFIG_KEYS: is mandatory"
|
||||
ERROR_MEMCG_SWAP="CONFIG_MEMCG_SWAP: is required if you wish to limit swap usage of containers"
|
||||
ERROR_RESOURCE_COUNTERS="CONFIG_RESOURCE_COUNTERS: is optional for container statistics gathering"
|
||||
|
||||
ERROR_BLK_CGROUP="CONFIG_BLK_CGROUP: is optional for container statistics gathering"
|
||||
ERROR_IOSCHED_CFQ="CONFIG_IOSCHED_CFQ: is optional for container statistics gathering"
|
||||
ERROR_CGROUP_PERF="CONFIG_CGROUP_PERF: is optional for container statistics gathering"
|
||||
ERROR_CFS_BANDWIDTH="CONFIG_CFS_BANDWIDTH: is optional for container statistics gathering"
|
||||
ERROR_XFRM_ALGO="CONFIG_XFRM_ALGO: is optional for secure networks"
|
||||
ERROR_XFRM_USER="CONFIG_XFRM_USER: is optional for secure networks"
|
||||
|
||||
pkg_setup() {
|
||||
if kernel_is lt 3 10; then
|
||||
ewarn ""
|
||||
ewarn "Using Docker with kernels older than 3.10 is unstable and unsupported."
|
||||
ewarn " - http://docs.docker.com/engine/installation/binaries/#check-kernel-dependencies"
|
||||
fi
|
||||
|
||||
if kernel_is le 3 18; then
|
||||
CONFIG_CHECK+="
|
||||
~RESOURCE_COUNTERS
|
||||
"
|
||||
fi
|
||||
|
||||
if kernel_is le 3 13; then
|
||||
CONFIG_CHECK+="
|
||||
~NETPRIO_CGROUP
|
||||
"
|
||||
else
|
||||
CONFIG_CHECK+="
|
||||
~CGROUP_NET_PRIO
|
||||
"
|
||||
fi
|
||||
|
||||
if kernel_is lt 4 5; then
|
||||
CONFIG_CHECK+="
|
||||
~MEMCG_KMEM
|
||||
"
|
||||
ERROR_MEMCG_KMEM="CONFIG_MEMCG_KMEM: is optional"
|
||||
fi
|
||||
|
||||
if kernel_is lt 4 7; then
|
||||
CONFIG_CHECK+="
|
||||
~DEVPTS_MULTIPLE_INSTANCES
|
||||
"
|
||||
fi
|
||||
|
||||
if kernel_is lt 5 1; then
|
||||
CONFIG_CHECK+="
|
||||
~NF_NAT_IPV4
|
||||
~IOSCHED_CFQ
|
||||
~CFQ_GROUP_IOSCHED
|
||||
"
|
||||
fi
|
||||
|
||||
if kernel_is lt 5 2; then
|
||||
CONFIG_CHECK+="
|
||||
~NF_NAT_NEEDED
|
||||
"
|
||||
fi
|
||||
|
||||
if kernel_is lt 5 8; then
|
||||
CONFIG_CHECK+="
|
||||
~MEMCG_SWAP_ENABLED
|
||||
"
|
||||
fi
|
||||
|
||||
if use aufs; then
|
||||
CONFIG_CHECK+="
|
||||
~AUFS_FS
|
||||
~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
|
||||
"
|
||||
ERROR_AUFS_FS="CONFIG_AUFS_FS: is required to be set if and only if aufs-sources are used instead of aufs4/aufs3"
|
||||
fi
|
||||
|
||||
if use btrfs; then
|
||||
CONFIG_CHECK+="
|
||||
~BTRFS_FS
|
||||
~BTRFS_FS_POSIX_ACL
|
||||
"
|
||||
fi
|
||||
|
||||
if use device-mapper; then
|
||||
CONFIG_CHECK+="
|
||||
~BLK_DEV_DM ~DM_THIN_PROVISIONING ~EXT4_FS ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
|
||||
"
|
||||
fi
|
||||
|
||||
linux-info_pkg_setup
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export GOPATH="${WORKDIR}/${P}"
|
||||
|
||||
# setup CFLAGS and LDFLAGS for separate build target
|
||||
# see https://github.com/tianon/docker-overlay/pull/10
|
||||
export CGO_CFLAGS="-I${ROOT}/usr/include"
|
||||
export CGO_LDFLAGS="-L${ROOT}/usr/$(get_libdir)"
|
||||
|
||||
# if we're building from a tarball, we need the GITCOMMIT value
|
||||
[[ ${DOCKER_GITCOMMIT} ]] && export DOCKER_GITCOMMIT
|
||||
|
||||
# fake golang layout
|
||||
ln -s docker-ce/components/engine ../docker || die
|
||||
ln -s docker-ce/components/cli ../cli || die
|
||||
|
||||
# let's set up some optional features :)
|
||||
export DOCKER_BUILDTAGS=''
|
||||
for gd in aufs btrfs device-mapper overlay; do
|
||||
if ! use $gd; then
|
||||
DOCKER_BUILDTAGS+=" exclude_graphdriver_${gd//-/}"
|
||||
fi
|
||||
done
|
||||
|
||||
for tag in apparmor seccomp selinux; do
|
||||
if use $tag; then
|
||||
DOCKER_BUILDTAGS+=" $tag"
|
||||
fi
|
||||
done
|
||||
|
||||
pushd components/engine || die
|
||||
|
||||
if use hardened; then
|
||||
sed -i "s/EXTLDFLAGS_STATIC='/&-fno-PIC /" hack/make.sh || die
|
||||
grep -q -- '-fno-PIC' hack/make.sh || die 'hardened sed failed'
|
||||
sed "s/LDFLAGS_STATIC_DOCKER='/&-extldflags -fno-PIC /" \
|
||||
-i hack/make/dynbinary-daemon || die
|
||||
grep -q -- '-fno-PIC' hack/make/dynbinary-daemon || die 'hardened sed failed'
|
||||
fi
|
||||
|
||||
# build daemon
|
||||
VERSION="$(cat ../../VERSION)" \
|
||||
./hack/make.sh dynbinary || die 'dynbinary failed'
|
||||
|
||||
popd || die # components/engine
|
||||
|
||||
pushd components/cli || die
|
||||
|
||||
# build cli
|
||||
DISABLE_WARN_OUTSIDE_CONTAINER=1 emake \
|
||||
LDFLAGS="$(usex hardened '-extldflags -fno-PIC' '')" \
|
||||
VERSION="$(cat ../../VERSION)" \
|
||||
GITCOMMIT="${DOCKER_GITCOMMIT}" \
|
||||
dynbinary
|
||||
|
||||
# build man pages
|
||||
go build -o gen-manpages github.com/docker/cli/man || die
|
||||
./gen-manpages --root . --target ./man/man1 || die
|
||||
./man/md2man-all.sh -q || die
|
||||
rm gen-manpages || die
|
||||
# see "components/cli/scripts/docs/generate-man.sh" (which also does "go get" for go-md2man)
|
||||
|
||||
popd || die # components/cli
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosym containerd /usr/bin/docker-containerd
|
||||
dosym containerd-shim /usr/bin/docker-containerd-shim
|
||||
dosym runc /usr/bin/docker-runc
|
||||
use container-init && dosym tini /usr/bin/docker-init
|
||||
|
||||
pushd components/engine || die
|
||||
newbin bundles/dynbinary-daemon/dockerd-${PV} dockerd
|
||||
|
||||
newinitd contrib/init/openrc/docker.initd docker
|
||||
newconfd contrib/init/openrc/docker.confd docker
|
||||
|
||||
systemd_dounit contrib/init/systemd/docker.{service,socket}
|
||||
|
||||
udev_dorules contrib/udev/*.rules
|
||||
|
||||
dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
|
||||
dodoc -r docs/*
|
||||
|
||||
insinto /usr/share/vim/vimfiles
|
||||
doins -r contrib/syntax/vim/ftdetect
|
||||
doins -r contrib/syntax/vim/syntax
|
||||
|
||||
# note: intentionally not using "doins" so that we preserve +x bits
|
||||
dodir /usr/share/${PN}/contrib
|
||||
cp -R contrib/* "${ED}/usr/share/${PN}/contrib"
|
||||
popd || die # components/engine
|
||||
|
||||
pushd components/cli || die
|
||||
|
||||
newbin build/docker-* docker
|
||||
|
||||
doman man/man*/*
|
||||
|
||||
sed -i 's@dockerd\?\.exe@@g' contrib/completion/bash/docker || die
|
||||
dobashcomp contrib/completion/bash/*
|
||||
bashcomp_alias docker dockerd
|
||||
insinto /usr/share/fish/vendor_completions.d/
|
||||
doins contrib/completion/fish/docker.fish
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins contrib/completion/zsh/_*
|
||||
popd || die # components/cli
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
|
||||
elog
|
||||
elog "To use Docker, the Docker daemon must be running as root. To automatically"
|
||||
elog "start the Docker daemon at boot, add Docker to the default runlevel:"
|
||||
elog " rc-update add docker default"
|
||||
elog "Similarly for systemd:"
|
||||
elog " systemctl enable docker.service"
|
||||
elog
|
||||
elog "To use Docker as a non-root user, add yourself to the 'docker' group:"
|
||||
elog " usermod -aG docker youruser"
|
||||
elog
|
||||
|
||||
elog " Devicemapper storage driver has been deprecated"
|
||||
elog " It will be removed in a future release"
|
||||
}
|
@ -1,8 +1 @@
|
||||
DIST libpod-1.8.2.tar.gz 30065262 BLAKE2B 1bf4ca9b9547a710f1882ac40aee0cf295fecdb9d43dc6fa30633331ca9e19d15e6d671075627939167cdf100d30e8299e50bd51425226ff1994778782cf261b SHA512 c6e1426f66299a21be66be033460c44830b422f8a3319f37bbe53030f6a2bf84b140a29f30b83f6b61199f1df373f81a6d73787d16423ad942fc8a9154c68366
|
||||
DIST libpod-1.9.3.tar.gz 8869143 BLAKE2B 52c049c3a9c96729f32c1b7a9fc4b182614d18edd12ee1d5b19730a870b694f5c4489577bbf547cf86baf51b6fadfdf1a1513ff784a4c549f5b737549187f3a3 SHA512 d85cdf49b740f47a341b7717a4bc22ff326d22234e224bd572a3d879b75eaa33139bebdc293c2e7bc41a9902289d89380b9b56975a0826172324e9a54f8f5e03
|
||||
DIST libpod-2.0.0.tar.gz 9126598 BLAKE2B 3c2d18a921b88ef235b14f069e7571f83b1add39ec4ecd20b98f4879d287c481a525e01969c9b62f8b81e0be43eb864266f32f78af3f1a5ca92c4b1c4a9a16ce SHA512 29f7e365dbd4ab6d20ee3e85939804f74dcfe95f65a6d030d1c10a36512c29d3934907cbb014047d659fd96ed3a2946570ef7922cd77cc729370ac099b4b58a2
|
||||
DIST libpod-2.0.1.tar.gz 9136153 BLAKE2B 4c60dc047ae7fd6a2918589a30f6dc94c13251ed0002e77919adfb9dbe0a3c7b14e40e204c5879273589673a573aa318a3d5b972c32236143e166cb96a7cc3c8 SHA512 e52d3eef3d698360a0196dca6338c319511b6685c0237bd4d24a3763eb5e46262946d7609d1f36798dec6eb63d4511efdc8b77fa22c06bd55b666505f4fe6730
|
||||
DIST podman-2.0.2.tar.gz 9192157 BLAKE2B b8635ea5b166082be03a041f74d6c7a5c8bed04131b039ba505f87240a1a2e4503a3dc14c037eeb41955ff7f949dc0978571ec63f011adb9e5a6efa1157b6bce SHA512 5bcdca28021c8b36b5689e69c00232ca20404af0903ea632cea350ecf6b6eed091260f1b8fea8fe6d06caa7a475ba87ef4f3e86e83807ffdd187f9ccc41cb194
|
||||
DIST podman-2.0.3.tar.gz 9303421 BLAKE2B c0882c7fff60f33d1dc6752120a36ce35ce321c661ec29ae940f392b5ef9fb6176fea556a89ca9823b4981997d6e61545531d39d95b31d23602b0d3e1a78870a SHA512 ee6d4f4735196fc07e03e9c1e99aa62650d9651bd5f24657398d42b3f2ebf59240a49fecfbf71a3d90636ea44c243cc4f7504c43d8f48e76ee504b3d10762240
|
||||
DIST podman-2.0.4.tar.gz 9305631 BLAKE2B a6a5760886d112b6cd69625137ec0aa9e368e8ff09f114123ff0b17ad2ef5b26b5eb645a5bbabc30a7cb900d7844587e0051969fefba9d5e8b5652a571857e09 SHA512 39313615b4c0befec3a073b7bf4a689208e39cb7bcba81f6d8982e188402c457cbe4835a128274761e55ab1272a780f9747caa07746fe62af7a568eebc96ad6a
|
||||
DIST podman-2.0.5.tar.gz 9338371 BLAKE2B 8bf86ac438c2a7c250d77df46d315dfa9d3326097a332e32de08b4d9acfeae9ace0b1825f242cddaf6178fd34d4c7542e9c59c4ce462525371c081b60cf0e9a7 SHA512 efe1bdfd1fec61d470c748ac1cfff8ec4a64a47751becac2c35d85e61f1f1d511781f4fafb3463558bd5df347f3ee021c4f9ed00823b6cb5dd8963a2c2bc570b
|
||||
DIST podman-2.1.0.tar.gz 9444707 BLAKE2B 62dacd316a8d6ae8aab0523338d818c69cf1228120e828a89301c9fdbb98082b85328c03c61f9f2a36c7a50105ce5fd025ad2b0e9ba2705c86b0d7e263fc92a6 SHA512 eb9b0cb184138af022e6d8e145fc6c4188c75c0695e0c6e62d54112a6b143424dd0caf9686f83637d08ff1fdbc24afca564c89f8cb4ab68b8f8d07345856398e
|
||||
|
@ -1,141 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGIT_COMMIT="028e3317eb1494b9b2acba4a0a295df80fae66cc"
|
||||
|
||||
inherit bash-completion-r1 flag-o-matic go-module
|
||||
|
||||
DESCRIPTION="Library and podman tool for running OCI-based containers in Pods"
|
||||
HOMEPAGE="https://github.com/containers/libpod/"
|
||||
SRC_URI="https://github.com/containers/libpod/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="apparmor btrfs +rootless selinux"
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
app-crypt/gpgme:=
|
||||
>=app-emulation/conmon-2.0.0
|
||||
|| ( >=app-emulation/runc-1.0.0_rc6 app-emulation/crun )
|
||||
dev-libs/libassuan:=
|
||||
dev-libs/libgpg-error:=
|
||||
>=net-misc/cni-plugins-0.8.6
|
||||
sys-fs/lvm2
|
||||
sys-libs/libseccomp:=
|
||||
|
||||
apparmor? ( sys-libs/libapparmor )
|
||||
btrfs? ( sys-fs/btrfs-progs )
|
||||
rootless? ( app-emulation/slirp4netns )
|
||||
selinux? ( sys-libs/libselinux:= )
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-go/go-md2man"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Disable installation of python modules here, since those are
|
||||
# installed by separate ebuilds.
|
||||
local makefile_sed_args=(
|
||||
-e '/^GIT_.*/d'
|
||||
-e 's/$(GO) build/$(GO) build -v -work -x/'
|
||||
-e 's/^\(install:.*\) install\.python$/\1/'
|
||||
)
|
||||
|
||||
has_version -b '>=dev-lang/go-1.13.9' || makefile_sed_args+=(-e 's:GO111MODULE=off:GO111MODULE=on:')
|
||||
|
||||
sed "${makefile_sed_args[@]}" -i Makefile || die
|
||||
|
||||
sed -e 's|OUTPUT="${CIRRUS_TAG:.*|OUTPUT='v${PV}'|' \
|
||||
-i hack/get_release_info.sh || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Filter unsupported linker flags
|
||||
filter-flags '-Wl,*'
|
||||
|
||||
[[ -f hack/apparmor_tag.sh ]] || die
|
||||
if use apparmor; then
|
||||
echo -e "#!/bin/sh\necho apparmor" > hack/apparmor_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\ntrue" > hack/apparmor_tag.sh || die
|
||||
fi
|
||||
|
||||
[[ -f hack/btrfs_installed_tag.sh ]] || die
|
||||
if use btrfs; then
|
||||
echo -e "#!/bin/sh\ntrue" > hack/btrfs_installed_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \
|
||||
hack/btrfs_installed_tag.sh || die
|
||||
fi
|
||||
|
||||
[[ -f hack/selinux_tag.sh ]] || die
|
||||
if use selinux; then
|
||||
echo -e "#!/bin/sh\necho selinux" > hack/selinux_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\ntrue" > hack/selinux_tag.sh || die
|
||||
fi
|
||||
|
||||
export -n GOCACHE GOPATH XDG_CACHE_HOME
|
||||
GOBIN="${S}/bin" \
|
||||
emake all \
|
||||
GIT_BRANCH=master \
|
||||
GIT_BRANCH_CLEAN=master \
|
||||
COMMIT_NO="${EGIT_COMMIT}" \
|
||||
GIT_COMMIT="${EGIT_COMMIT}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
||||
|
||||
insinto /etc/containers
|
||||
newins test/registries.conf registries.conf.example
|
||||
newins test/policy.json policy.json.example
|
||||
|
||||
insinto /usr/share/containers
|
||||
doins seccomp.json
|
||||
|
||||
newinitd "${FILESDIR}"/podman.initd podman
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/podman.logrotated" podman
|
||||
|
||||
dobashcomp completions/bash/*
|
||||
|
||||
keepdir /var/lib/containers
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
LIBPOD_ROOTLESS_UPGRADE=false
|
||||
if use rootless; then
|
||||
has_version 'app-emulation/libpod[rootless]' || LIBPOD_ROOTLESS_UPGRADE=true
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local want_newline=false
|
||||
if [[ ! ( -e ${EROOT%/*}/etc/containers/policy.json && -e ${EROOT%/*}/etc/containers/registries.conf ) ]]; then
|
||||
elog "You need to create the following config files:"
|
||||
elog "/etc/containers/registries.conf"
|
||||
elog "/etc/containers/policy.json"
|
||||
elog "To copy over default examples, use:"
|
||||
elog "cp /etc/containers/registries.conf{.example,}"
|
||||
elog "cp /etc/containers/policy.json{.example,}"
|
||||
want_newline=true
|
||||
fi
|
||||
if [[ ${LIBPOD_ROOTLESS_UPGRADE} == true ]] ; then
|
||||
${want_newline} && elog ""
|
||||
elog "For rootless operation, you need to configure subuid/subgid"
|
||||
elog "for user running podman. In case subuid/subgid has only been"
|
||||
elog "configured for root, run:"
|
||||
elog "usermod --add-subuids 1065536-1131071 <user>"
|
||||
elog "usermod --add-subgids 1065536-1131071 <user>"
|
||||
want_newline=true
|
||||
fi
|
||||
}
|
@ -1,142 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGIT_COMMIT="5d44534fff6877b1cb15b760242279ae6293154c"
|
||||
|
||||
inherit bash-completion-r1 flag-o-matic go-module
|
||||
|
||||
DESCRIPTION="Library and podman tool for running OCI-based containers in Pods"
|
||||
HOMEPAGE="https://github.com/containers/libpod/"
|
||||
SRC_URI="https://github.com/containers/libpod/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="apparmor btrfs +fuse +rootless selinux"
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
app-crypt/gpgme:=
|
||||
>=app-emulation/conmon-2.0.0
|
||||
|| ( >=app-emulation/runc-1.0.0_rc6 app-emulation/crun )
|
||||
dev-libs/libassuan:=
|
||||
dev-libs/libgpg-error:=
|
||||
>=net-misc/cni-plugins-0.8.6
|
||||
sys-fs/lvm2
|
||||
sys-libs/libseccomp:=
|
||||
|
||||
apparmor? ( sys-libs/libapparmor )
|
||||
btrfs? ( sys-fs/btrfs-progs )
|
||||
rootless? ( app-emulation/slirp4netns )
|
||||
selinux? ( sys-libs/libselinux:= )
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-go/go-md2man"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
fuse? ( sys-fs/fuse-overlayfs )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Disable installation of python modules here, since those are
|
||||
# installed by separate ebuilds.
|
||||
local makefile_sed_args=(
|
||||
-e '/^GIT_.*/d'
|
||||
-e 's/$(GO) build/$(GO) build -v -work -x/'
|
||||
-e 's/^\(install:.*\) install\.python$/\1/'
|
||||
)
|
||||
|
||||
has_version -b '>=dev-lang/go-1.13.9' || makefile_sed_args+=(-e 's:GO111MODULE=off:GO111MODULE=on:')
|
||||
|
||||
sed "${makefile_sed_args[@]}" -i Makefile || die
|
||||
|
||||
sed -e 's|OUTPUT="${CIRRUS_TAG:.*|OUTPUT='v${PV}'|' \
|
||||
-i hack/get_release_info.sh || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Filter unsupported linker flags
|
||||
filter-flags '-Wl,*'
|
||||
|
||||
[[ -f hack/apparmor_tag.sh ]] || die
|
||||
if use apparmor; then
|
||||
echo -e "#!/bin/sh\necho apparmor" > hack/apparmor_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\ntrue" > hack/apparmor_tag.sh || die
|
||||
fi
|
||||
|
||||
[[ -f hack/btrfs_installed_tag.sh ]] || die
|
||||
if use btrfs; then
|
||||
echo -e "#!/bin/sh\ntrue" > hack/btrfs_installed_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \
|
||||
hack/btrfs_installed_tag.sh || die
|
||||
fi
|
||||
|
||||
[[ -f hack/selinux_tag.sh ]] || die
|
||||
if use selinux; then
|
||||
echo -e "#!/bin/sh\necho selinux" > hack/selinux_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\ntrue" > hack/selinux_tag.sh || die
|
||||
fi
|
||||
|
||||
export -n GOCACHE GOPATH XDG_CACHE_HOME
|
||||
GOBIN="${S}/bin" \
|
||||
emake all \
|
||||
GIT_BRANCH=master \
|
||||
GIT_BRANCH_CLEAN=master \
|
||||
COMMIT_NO="${EGIT_COMMIT}" \
|
||||
GIT_COMMIT="${EGIT_COMMIT}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
||||
|
||||
insinto /etc/containers
|
||||
newins test/registries.conf registries.conf.example
|
||||
newins test/policy.json policy.json.example
|
||||
|
||||
insinto /usr/share/containers
|
||||
doins seccomp.json
|
||||
|
||||
newinitd "${FILESDIR}"/podman.initd podman
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/podman.logrotated" podman
|
||||
|
||||
dobashcomp completions/bash/*
|
||||
|
||||
keepdir /var/lib/containers
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
LIBPOD_ROOTLESS_UPGRADE=false
|
||||
if use rootless; then
|
||||
has_version 'app-emulation/libpod[rootless]' || LIBPOD_ROOTLESS_UPGRADE=true
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local want_newline=false
|
||||
if [[ ! ( -e ${EROOT%/*}/etc/containers/policy.json && -e ${EROOT%/*}/etc/containers/registries.conf ) ]]; then
|
||||
elog "You need to create the following config files:"
|
||||
elog "/etc/containers/registries.conf"
|
||||
elog "/etc/containers/policy.json"
|
||||
elog "To copy over default examples, use:"
|
||||
elog "cp /etc/containers/registries.conf{.example,}"
|
||||
elog "cp /etc/containers/policy.json{.example,}"
|
||||
want_newline=true
|
||||
fi
|
||||
if [[ ${LIBPOD_ROOTLESS_UPGRADE} == true ]] ; then
|
||||
${want_newline} && elog ""
|
||||
elog "For rootless operation, you need to configure subuid/subgid"
|
||||
elog "for user running podman. In case subuid/subgid has only been"
|
||||
elog "configured for root, run:"
|
||||
elog "usermod --add-subuids 1065536-1131071 <user>"
|
||||
elog "usermod --add-subgids 1065536-1131071 <user>"
|
||||
want_newline=true
|
||||
fi
|
||||
}
|
@ -1,150 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGIT_COMMIT="5d44534fff6877b1cb15b760242279ae6293154c"
|
||||
|
||||
inherit bash-completion-r1 flag-o-matic go-module
|
||||
|
||||
DESCRIPTION="Library and podman tool for running OCI-based containers in Pods"
|
||||
HOMEPAGE="https://github.com/containers/libpod/"
|
||||
SRC_URI="https://github.com/containers/libpod/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="apparmor btrfs +fuse +rootless selinux"
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
app-crypt/gpgme:=
|
||||
>=app-emulation/conmon-2.0.0
|
||||
|| ( >=app-emulation/runc-1.0.0_rc6 app-emulation/crun )
|
||||
dev-libs/libassuan:=
|
||||
dev-libs/libgpg-error:=
|
||||
>=net-misc/cni-plugins-0.8.6
|
||||
sys-fs/lvm2
|
||||
sys-libs/libseccomp:=
|
||||
|
||||
apparmor? ( sys-libs/libapparmor )
|
||||
btrfs? ( sys-fs/btrfs-progs )
|
||||
rootless? ( app-emulation/slirp4netns )
|
||||
selinux? ( sys-libs/libselinux:= )
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-go/go-md2man"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
fuse? ( sys-fs/fuse-overlayfs )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Disable installation of python modules here, since those are
|
||||
# installed by separate ebuilds.
|
||||
local makefile_sed_args=(
|
||||
-e '/^GIT_.*/d'
|
||||
-e 's/$(GO) build/$(GO) build -v -work -x/'
|
||||
-e 's/^\(install:.*\) install\.python$/\1/'
|
||||
-e 's|^pkg/varlink/iopodman.go: .gopathok pkg/varlink/io.podman.varlink$|pkg/varlink/iopodman.go: pkg/varlink/io.podman.varlink|'
|
||||
)
|
||||
|
||||
has_version -b '>=dev-lang/go-1.13.9' || makefile_sed_args+=(-e 's:GO111MODULE=off:GO111MODULE=on:')
|
||||
|
||||
sed "${makefile_sed_args[@]}" -i Makefile || die
|
||||
|
||||
sed -e 's|OUTPUT="${CIRRUS_TAG:.*|OUTPUT='v${PV}'|' \
|
||||
-i hack/get_release_info.sh || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Filter unsupported linker flags
|
||||
filter-flags '-Wl,*'
|
||||
|
||||
[[ -f hack/apparmor_tag.sh ]] || die
|
||||
if use apparmor; then
|
||||
echo -e "#!/bin/sh\necho apparmor" > hack/apparmor_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\ntrue" > hack/apparmor_tag.sh || die
|
||||
fi
|
||||
|
||||
[[ -f hack/btrfs_installed_tag.sh ]] || die
|
||||
if use btrfs; then
|
||||
echo -e "#!/bin/sh\ntrue" > hack/btrfs_installed_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \
|
||||
hack/btrfs_installed_tag.sh || die
|
||||
fi
|
||||
|
||||
[[ -f hack/selinux_tag.sh ]] || die
|
||||
if use selinux; then
|
||||
echo -e "#!/bin/sh\necho selinux" > hack/selinux_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\ntrue" > hack/selinux_tag.sh || die
|
||||
fi
|
||||
|
||||
# Avoid this error when generating pkg/varlink/iopodman.go:
|
||||
# cannot find package "github.com/varlink/go/varlink/idl"
|
||||
mkdir -p _output || die
|
||||
ln -snf ../vendor _output/src || die
|
||||
GO111MODULE=off GOPATH=${PWD}/_output go generate ./pkg/varlink/... || die
|
||||
rm _output/src || die
|
||||
|
||||
export -n GOCACHE GOPATH XDG_CACHE_HOME
|
||||
GOBIN="${S}/bin" \
|
||||
emake all \
|
||||
GIT_BRANCH=master \
|
||||
GIT_BRANCH_CLEAN=master \
|
||||
COMMIT_NO="${EGIT_COMMIT}" \
|
||||
GIT_COMMIT="${EGIT_COMMIT}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
||||
|
||||
insinto /etc/containers
|
||||
newins test/registries.conf registries.conf.example
|
||||
newins test/policy.json policy.json.example
|
||||
|
||||
insinto /usr/share/containers
|
||||
doins seccomp.json
|
||||
|
||||
newinitd "${FILESDIR}"/podman.initd podman
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/podman.logrotated" podman
|
||||
|
||||
dobashcomp completions/bash/*
|
||||
|
||||
keepdir /var/lib/containers
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
LIBPOD_ROOTLESS_UPGRADE=false
|
||||
if use rootless; then
|
||||
has_version 'app-emulation/libpod[rootless]' || LIBPOD_ROOTLESS_UPGRADE=true
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local want_newline=false
|
||||
if [[ ! ( -e ${EROOT%/*}/etc/containers/policy.json && -e ${EROOT%/*}/etc/containers/registries.conf ) ]]; then
|
||||
elog "You need to create the following config files:"
|
||||
elog "/etc/containers/registries.conf"
|
||||
elog "/etc/containers/policy.json"
|
||||
elog "To copy over default examples, use:"
|
||||
elog "cp /etc/containers/registries.conf{.example,}"
|
||||
elog "cp /etc/containers/policy.json{.example,}"
|
||||
want_newline=true
|
||||
fi
|
||||
if [[ ${LIBPOD_ROOTLESS_UPGRADE} == true ]] ; then
|
||||
${want_newline} && elog ""
|
||||
elog "For rootless operation, you need to configure subuid/subgid"
|
||||
elog "for user running podman. In case subuid/subgid has only been"
|
||||
elog "configured for root, run:"
|
||||
elog "usermod --add-subuids 1065536-1131071 <user>"
|
||||
elog "usermod --add-subgids 1065536-1131071 <user>"
|
||||
want_newline=true
|
||||
fi
|
||||
}
|
@ -1,150 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGIT_COMMIT="a11c4ead10177a66ef2810a0a92ea8ce2299da07"
|
||||
|
||||
inherit bash-completion-r1 flag-o-matic go-module
|
||||
|
||||
DESCRIPTION="Library and podman tool for running OCI-based containers in Pods"
|
||||
HOMEPAGE="https://github.com/containers/libpod/"
|
||||
SRC_URI="https://github.com/containers/libpod/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="apparmor btrfs +fuse +rootless selinux"
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
app-crypt/gpgme:=
|
||||
>=app-emulation/conmon-2.0.0
|
||||
|| ( >=app-emulation/runc-1.0.0_rc6 app-emulation/crun )
|
||||
dev-libs/libassuan:=
|
||||
dev-libs/libgpg-error:=
|
||||
>=net-misc/cni-plugins-0.8.6
|
||||
sys-fs/lvm2
|
||||
sys-libs/libseccomp:=
|
||||
|
||||
apparmor? ( sys-libs/libapparmor )
|
||||
btrfs? ( sys-fs/btrfs-progs )
|
||||
rootless? ( app-emulation/slirp4netns )
|
||||
selinux? ( sys-libs/libselinux:= )
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-go/go-md2man"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
fuse? ( sys-fs/fuse-overlayfs )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Disable installation of python modules here, since those are
|
||||
# installed by separate ebuilds.
|
||||
local makefile_sed_args=(
|
||||
-e '/^GIT_.*/d'
|
||||
-e 's/$(GO) build/$(GO) build -v -work -x/'
|
||||
-e 's/^\(install:.*\) install\.python$/\1/'
|
||||
-e 's|^pkg/varlink/iopodman.go: .gopathok pkg/varlink/io.podman.varlink$|pkg/varlink/iopodman.go: pkg/varlink/io.podman.varlink|'
|
||||
)
|
||||
|
||||
has_version -b '>=dev-lang/go-1.13.9' || makefile_sed_args+=(-e 's:GO111MODULE=off:GO111MODULE=on:')
|
||||
|
||||
sed "${makefile_sed_args[@]}" -i Makefile || die
|
||||
|
||||
sed -e 's|OUTPUT="${CIRRUS_TAG:.*|OUTPUT='v${PV}'|' \
|
||||
-i hack/get_release_info.sh || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Filter unsupported linker flags
|
||||
filter-flags '-Wl,*'
|
||||
|
||||
[[ -f hack/apparmor_tag.sh ]] || die
|
||||
if use apparmor; then
|
||||
echo -e "#!/bin/sh\necho apparmor" > hack/apparmor_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\ntrue" > hack/apparmor_tag.sh || die
|
||||
fi
|
||||
|
||||
[[ -f hack/btrfs_installed_tag.sh ]] || die
|
||||
if use btrfs; then
|
||||
echo -e "#!/bin/sh\ntrue" > hack/btrfs_installed_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \
|
||||
hack/btrfs_installed_tag.sh || die
|
||||
fi
|
||||
|
||||
[[ -f hack/selinux_tag.sh ]] || die
|
||||
if use selinux; then
|
||||
echo -e "#!/bin/sh\necho selinux" > hack/selinux_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\ntrue" > hack/selinux_tag.sh || die
|
||||
fi
|
||||
|
||||
# Avoid this error when generating pkg/varlink/iopodman.go:
|
||||
# cannot find package "github.com/varlink/go/varlink/idl"
|
||||
mkdir -p _output || die
|
||||
ln -snf ../vendor _output/src || die
|
||||
GO111MODULE=off GOPATH=${PWD}/_output go generate ./pkg/varlink/... || die
|
||||
rm _output/src || die
|
||||
|
||||
export -n GOCACHE GOPATH XDG_CACHE_HOME
|
||||
GOBIN="${S}/bin" \
|
||||
emake all \
|
||||
GIT_BRANCH=master \
|
||||
GIT_BRANCH_CLEAN=master \
|
||||
COMMIT_NO="${EGIT_COMMIT}" \
|
||||
GIT_COMMIT="${EGIT_COMMIT}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
||||
|
||||
insinto /etc/containers
|
||||
newins test/registries.conf registries.conf.example
|
||||
newins test/policy.json policy.json.example
|
||||
|
||||
insinto /usr/share/containers
|
||||
doins seccomp.json
|
||||
|
||||
newinitd "${FILESDIR}"/podman.initd podman
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/podman.logrotated" podman
|
||||
|
||||
dobashcomp completions/bash/*
|
||||
|
||||
keepdir /var/lib/containers
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
LIBPOD_ROOTLESS_UPGRADE=false
|
||||
if use rootless; then
|
||||
has_version 'app-emulation/libpod[rootless]' || LIBPOD_ROOTLESS_UPGRADE=true
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local want_newline=false
|
||||
if [[ ! ( -e ${EROOT%/*}/etc/containers/policy.json && -e ${EROOT%/*}/etc/containers/registries.conf ) ]]; then
|
||||
elog "You need to create the following config files:"
|
||||
elog "/etc/containers/registries.conf"
|
||||
elog "/etc/containers/policy.json"
|
||||
elog "To copy over default examples, use:"
|
||||
elog "cp /etc/containers/registries.conf{.example,}"
|
||||
elog "cp /etc/containers/policy.json{.example,}"
|
||||
want_newline=true
|
||||
fi
|
||||
if [[ ${LIBPOD_ROOTLESS_UPGRADE} == true ]] ; then
|
||||
${want_newline} && elog ""
|
||||
elog "For rootless operation, you need to configure subuid/subgid"
|
||||
elog "for user running podman. In case subuid/subgid has only been"
|
||||
elog "configured for root, run:"
|
||||
elog "usermod --add-subuids 1065536-1131071 <user>"
|
||||
elog "usermod --add-subgids 1065536-1131071 <user>"
|
||||
want_newline=true
|
||||
fi
|
||||
}
|
@ -1,154 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGIT_COMMIT="201c9505b88f451ca877d29a73ed0f1836bb96c7"
|
||||
|
||||
inherit bash-completion-r1 flag-o-matic go-module
|
||||
|
||||
DESCRIPTION="Library and podman tool for running OCI-based containers in Pods"
|
||||
HOMEPAGE="https://github.com/containers/podman/"
|
||||
MY_PN=podman
|
||||
MY_P=${MY_PN}-${PV}
|
||||
SRC_URI="https://github.com/containers/podman/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="apparmor btrfs +fuse +rootless selinux"
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
app-crypt/gpgme:=
|
||||
>=app-emulation/conmon-2.0.0
|
||||
|| ( >=app-emulation/runc-1.0.0_rc6 app-emulation/crun )
|
||||
dev-libs/libassuan:=
|
||||
dev-libs/libgpg-error:=
|
||||
>=net-misc/cni-plugins-0.8.6
|
||||
sys-fs/lvm2
|
||||
sys-libs/libseccomp:=
|
||||
|
||||
apparmor? ( sys-libs/libapparmor )
|
||||
btrfs? ( sys-fs/btrfs-progs )
|
||||
rootless? ( app-emulation/slirp4netns )
|
||||
selinux? ( sys-libs/libselinux:= )
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-go/go-md2man"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
fuse? ( sys-fs/fuse-overlayfs )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Disable installation of python modules here, since those are
|
||||
# installed by separate ebuilds.
|
||||
local makefile_sed_args=(
|
||||
-e '/^GIT_.*/d'
|
||||
-e 's/$(GO) build/$(GO) build -v -work -x/'
|
||||
-e 's/^\(install:.*\) install\.python$/\1/'
|
||||
-e 's|^pkg/varlink/iopodman.go: .gopathok pkg/varlink/io.podman.varlink$|pkg/varlink/iopodman.go: pkg/varlink/io.podman.varlink|'
|
||||
)
|
||||
|
||||
has_version -b '>=dev-lang/go-1.13.9' || makefile_sed_args+=(-e 's:GO111MODULE=off:GO111MODULE=on:')
|
||||
|
||||
sed "${makefile_sed_args[@]}" -i Makefile || die
|
||||
|
||||
sed -e 's|OUTPUT="${CIRRUS_TAG:.*|OUTPUT='v${PV}'|' \
|
||||
-i hack/get_release_info.sh || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Filter unsupported linker flags
|
||||
filter-flags '-Wl,*'
|
||||
|
||||
[[ -f hack/apparmor_tag.sh ]] || die
|
||||
if use apparmor; then
|
||||
echo -e "#!/bin/sh\necho apparmor" > hack/apparmor_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\ntrue" > hack/apparmor_tag.sh || die
|
||||
fi
|
||||
|
||||
[[ -f hack/btrfs_installed_tag.sh ]] || die
|
||||
if use btrfs; then
|
||||
echo -e "#!/bin/sh\ntrue" > hack/btrfs_installed_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \
|
||||
hack/btrfs_installed_tag.sh || die
|
||||
fi
|
||||
|
||||
[[ -f hack/selinux_tag.sh ]] || die
|
||||
if use selinux; then
|
||||
echo -e "#!/bin/sh\necho selinux" > hack/selinux_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\ntrue" > hack/selinux_tag.sh || die
|
||||
fi
|
||||
|
||||
# Avoid this error when generating pkg/varlink/iopodman.go:
|
||||
# cannot find package "github.com/varlink/go/varlink/idl"
|
||||
mkdir -p _output || die
|
||||
ln -snf ../vendor _output/src || die
|
||||
GO111MODULE=off GOPATH=${PWD}/_output go generate ./pkg/varlink/... || die
|
||||
rm _output/src || die
|
||||
|
||||
export -n GOCACHE GOPATH XDG_CACHE_HOME
|
||||
GOBIN="${S}/bin" \
|
||||
emake all \
|
||||
GIT_BRANCH=master \
|
||||
GIT_BRANCH_CLEAN=master \
|
||||
COMMIT_NO="${EGIT_COMMIT}" \
|
||||
GIT_COMMIT="${EGIT_COMMIT}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
||||
|
||||
insinto /etc/containers
|
||||
newins test/registries.conf registries.conf.example
|
||||
newins test/policy.json policy.json.example
|
||||
|
||||
insinto /usr/share/containers
|
||||
doins seccomp.json
|
||||
|
||||
newinitd "${FILESDIR}"/podman.initd podman
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/podman.logrotated" podman
|
||||
|
||||
dobashcomp completions/bash/*
|
||||
|
||||
keepdir /var/lib/containers
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
LIBPOD_ROOTLESS_UPGRADE=false
|
||||
if use rootless; then
|
||||
has_version 'app-emulation/libpod[rootless]' || LIBPOD_ROOTLESS_UPGRADE=true
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local want_newline=false
|
||||
if [[ ! ( -e ${EROOT%/*}/etc/containers/policy.json && -e ${EROOT%/*}/etc/containers/registries.conf ) ]]; then
|
||||
elog "You need to create the following config files:"
|
||||
elog "/etc/containers/registries.conf"
|
||||
elog "/etc/containers/policy.json"
|
||||
elog "To copy over default examples, use:"
|
||||
elog "cp /etc/containers/registries.conf{.example,}"
|
||||
elog "cp /etc/containers/policy.json{.example,}"
|
||||
want_newline=true
|
||||
fi
|
||||
if [[ ${LIBPOD_ROOTLESS_UPGRADE} == true ]] ; then
|
||||
${want_newline} && elog ""
|
||||
elog "For rootless operation, you need to configure subuid/subgid"
|
||||
elog "for user running podman. In case subuid/subgid has only been"
|
||||
elog "configured for root, run:"
|
||||
elog "usermod --add-subuids 1065536-1131071 <user>"
|
||||
elog "usermod --add-subgids 1065536-1131071 <user>"
|
||||
want_newline=true
|
||||
fi
|
||||
}
|
@ -1,154 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGIT_COMMIT="2349723f89bdb3033d064f6278ca04da8b8ae42d"
|
||||
|
||||
inherit bash-completion-r1 flag-o-matic go-module
|
||||
|
||||
DESCRIPTION="Library and podman tool for running OCI-based containers in Pods"
|
||||
HOMEPAGE="https://github.com/containers/podman/"
|
||||
MY_PN=podman
|
||||
MY_P=${MY_PN}-${PV}
|
||||
SRC_URI="https://github.com/containers/podman/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="apparmor btrfs +fuse +rootless selinux"
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
app-crypt/gpgme:=
|
||||
>=app-emulation/conmon-2.0.0
|
||||
|| ( >=app-emulation/runc-1.0.0_rc6 app-emulation/crun )
|
||||
dev-libs/libassuan:=
|
||||
dev-libs/libgpg-error:=
|
||||
>=net-misc/cni-plugins-0.8.6
|
||||
sys-fs/lvm2
|
||||
sys-libs/libseccomp:=
|
||||
|
||||
apparmor? ( sys-libs/libapparmor )
|
||||
btrfs? ( sys-fs/btrfs-progs )
|
||||
rootless? ( app-emulation/slirp4netns )
|
||||
selinux? ( sys-libs/libselinux:= )
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-go/go-md2man"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
fuse? ( sys-fs/fuse-overlayfs )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Disable installation of python modules here, since those are
|
||||
# installed by separate ebuilds.
|
||||
local makefile_sed_args=(
|
||||
-e '/^GIT_.*/d'
|
||||
-e 's/$(GO) build/$(GO) build -v -work -x/'
|
||||
-e 's/^\(install:.*\) install\.python$/\1/'
|
||||
-e 's|^pkg/varlink/iopodman.go: .gopathok pkg/varlink/io.podman.varlink$|pkg/varlink/iopodman.go: pkg/varlink/io.podman.varlink|'
|
||||
)
|
||||
|
||||
has_version -b '>=dev-lang/go-1.13.9' || makefile_sed_args+=(-e 's:GO111MODULE=off:GO111MODULE=on:')
|
||||
|
||||
sed "${makefile_sed_args[@]}" -i Makefile || die
|
||||
|
||||
sed -e 's|OUTPUT="${CIRRUS_TAG:.*|OUTPUT='v${PV}'|' \
|
||||
-i hack/get_release_info.sh || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Filter unsupported linker flags
|
||||
filter-flags '-Wl,*'
|
||||
|
||||
[[ -f hack/apparmor_tag.sh ]] || die
|
||||
if use apparmor; then
|
||||
echo -e "#!/bin/sh\necho apparmor" > hack/apparmor_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\ntrue" > hack/apparmor_tag.sh || die
|
||||
fi
|
||||
|
||||
[[ -f hack/btrfs_installed_tag.sh ]] || die
|
||||
if use btrfs; then
|
||||
echo -e "#!/bin/sh\ntrue" > hack/btrfs_installed_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \
|
||||
hack/btrfs_installed_tag.sh || die
|
||||
fi
|
||||
|
||||
[[ -f hack/selinux_tag.sh ]] || die
|
||||
if use selinux; then
|
||||
echo -e "#!/bin/sh\necho selinux" > hack/selinux_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\ntrue" > hack/selinux_tag.sh || die
|
||||
fi
|
||||
|
||||
# Avoid this error when generating pkg/varlink/iopodman.go:
|
||||
# cannot find package "github.com/varlink/go/varlink/idl"
|
||||
mkdir -p _output || die
|
||||
ln -snf ../vendor _output/src || die
|
||||
GO111MODULE=off GOPATH=${PWD}/_output go generate ./pkg/varlink/... || die
|
||||
rm _output/src || die
|
||||
|
||||
export -n GOCACHE GOPATH XDG_CACHE_HOME
|
||||
GOBIN="${S}/bin" \
|
||||
emake all \
|
||||
GIT_BRANCH=master \
|
||||
GIT_BRANCH_CLEAN=master \
|
||||
COMMIT_NO="${EGIT_COMMIT}" \
|
||||
GIT_COMMIT="${EGIT_COMMIT}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
||||
|
||||
insinto /etc/containers
|
||||
newins test/registries.conf registries.conf.example
|
||||
newins test/policy.json policy.json.example
|
||||
|
||||
insinto /usr/share/containers
|
||||
doins seccomp.json
|
||||
|
||||
newinitd "${FILESDIR}"/podman.initd podman
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/podman.logrotated" podman
|
||||
|
||||
dobashcomp completions/bash/*
|
||||
|
||||
keepdir /var/lib/containers
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
LIBPOD_ROOTLESS_UPGRADE=false
|
||||
if use rootless; then
|
||||
has_version 'app-emulation/libpod[rootless]' || LIBPOD_ROOTLESS_UPGRADE=true
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local want_newline=false
|
||||
if [[ ! ( -e ${EROOT%/*}/etc/containers/policy.json && -e ${EROOT%/*}/etc/containers/registries.conf ) ]]; then
|
||||
elog "You need to create the following config files:"
|
||||
elog "/etc/containers/registries.conf"
|
||||
elog "/etc/containers/policy.json"
|
||||
elog "To copy over default examples, use:"
|
||||
elog "cp /etc/containers/registries.conf{.example,}"
|
||||
elog "cp /etc/containers/policy.json{.example,}"
|
||||
want_newline=true
|
||||
fi
|
||||
if [[ ${LIBPOD_ROOTLESS_UPGRADE} == true ]] ; then
|
||||
${want_newline} && elog ""
|
||||
elog "For rootless operation, you need to configure subuid/subgid"
|
||||
elog "for user running podman. In case subuid/subgid has only been"
|
||||
elog "configured for root, run:"
|
||||
elog "usermod --add-subuids 1065536-1131071 <user>"
|
||||
elog "usermod --add-subgids 1065536-1131071 <user>"
|
||||
want_newline=true
|
||||
fi
|
||||
}
|
@ -1,154 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGIT_COMMIT="776abc52106ec7652ced6dbc0869020123ed393d"
|
||||
|
||||
inherit bash-completion-r1 flag-o-matic go-module
|
||||
|
||||
DESCRIPTION="Library and podman tool for running OCI-based containers in Pods"
|
||||
HOMEPAGE="https://github.com/containers/podman/"
|
||||
MY_PN=podman
|
||||
MY_P=${MY_PN}-${PV}
|
||||
SRC_URI="https://github.com/containers/podman/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="apparmor btrfs +fuse +rootless selinux"
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
app-crypt/gpgme:=
|
||||
>=app-emulation/conmon-2.0.0
|
||||
|| ( >=app-emulation/runc-1.0.0_rc6 app-emulation/crun )
|
||||
dev-libs/libassuan:=
|
||||
dev-libs/libgpg-error:=
|
||||
>=net-misc/cni-plugins-0.8.6
|
||||
sys-fs/lvm2
|
||||
sys-libs/libseccomp:=
|
||||
|
||||
apparmor? ( sys-libs/libapparmor )
|
||||
btrfs? ( sys-fs/btrfs-progs )
|
||||
rootless? ( app-emulation/slirp4netns )
|
||||
selinux? ( sys-libs/libselinux:= )
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-go/go-md2man"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
fuse? ( sys-fs/fuse-overlayfs )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Disable installation of python modules here, since those are
|
||||
# installed by separate ebuilds.
|
||||
local makefile_sed_args=(
|
||||
-e '/^GIT_.*/d'
|
||||
-e 's/$(GO) build/$(GO) build -v -work -x/'
|
||||
-e 's/^\(install:.*\) install\.python$/\1/'
|
||||
-e 's|^pkg/varlink/iopodman.go: .gopathok pkg/varlink/io.podman.varlink$|pkg/varlink/iopodman.go: pkg/varlink/io.podman.varlink|'
|
||||
)
|
||||
|
||||
has_version -b '>=dev-lang/go-1.13.9' || makefile_sed_args+=(-e 's:GO111MODULE=off:GO111MODULE=on:')
|
||||
|
||||
sed "${makefile_sed_args[@]}" -i Makefile || die
|
||||
|
||||
sed -e 's|OUTPUT="${CIRRUS_TAG:.*|OUTPUT='v${PV}'|' \
|
||||
-i hack/get_release_info.sh || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Filter unsupported linker flags
|
||||
filter-flags '-Wl,*'
|
||||
|
||||
[[ -f hack/apparmor_tag.sh ]] || die
|
||||
if use apparmor; then
|
||||
echo -e "#!/bin/sh\necho apparmor" > hack/apparmor_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\ntrue" > hack/apparmor_tag.sh || die
|
||||
fi
|
||||
|
||||
[[ -f hack/btrfs_installed_tag.sh ]] || die
|
||||
if use btrfs; then
|
||||
echo -e "#!/bin/sh\ntrue" > hack/btrfs_installed_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \
|
||||
hack/btrfs_installed_tag.sh || die
|
||||
fi
|
||||
|
||||
[[ -f hack/selinux_tag.sh ]] || die
|
||||
if use selinux; then
|
||||
echo -e "#!/bin/sh\necho selinux" > hack/selinux_tag.sh || die
|
||||
else
|
||||
echo -e "#!/bin/sh\ntrue" > hack/selinux_tag.sh || die
|
||||
fi
|
||||
|
||||
# Avoid this error when generating pkg/varlink/iopodman.go:
|
||||
# cannot find package "github.com/varlink/go/varlink/idl"
|
||||
mkdir -p _output || die
|
||||
ln -snf ../vendor _output/src || die
|
||||
GO111MODULE=off GOPATH=${PWD}/_output go generate ./pkg/varlink/... || die
|
||||
rm _output/src || die
|
||||
|
||||
export -n GOCACHE GOPATH XDG_CACHE_HOME
|
||||
GOBIN="${S}/bin" \
|
||||
emake all \
|
||||
GIT_BRANCH=master \
|
||||
GIT_BRANCH_CLEAN=master \
|
||||
COMMIT_NO="${EGIT_COMMIT}" \
|
||||
GIT_COMMIT="${EGIT_COMMIT}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
||||
|
||||
insinto /etc/containers
|
||||
newins test/registries.conf registries.conf.example
|
||||
newins test/policy.json policy.json.example
|
||||
|
||||
insinto /usr/share/containers
|
||||
doins seccomp.json
|
||||
|
||||
newinitd "${FILESDIR}"/podman.initd podman
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/podman.logrotated" podman
|
||||
|
||||
dobashcomp completions/bash/*
|
||||
|
||||
keepdir /var/lib/containers
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
LIBPOD_ROOTLESS_UPGRADE=false
|
||||
if use rootless; then
|
||||
has_version 'app-emulation/libpod[rootless]' || LIBPOD_ROOTLESS_UPGRADE=true
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local want_newline=false
|
||||
if [[ ! ( -e ${EROOT%/*}/etc/containers/policy.json && -e ${EROOT%/*}/etc/containers/registries.conf ) ]]; then
|
||||
elog "You need to create the following config files:"
|
||||
elog "/etc/containers/registries.conf"
|
||||
elog "/etc/containers/policy.json"
|
||||
elog "To copy over default examples, use:"
|
||||
elog "cp /etc/containers/registries.conf{.example,}"
|
||||
elog "cp /etc/containers/policy.json{.example,}"
|
||||
want_newline=true
|
||||
fi
|
||||
if [[ ${LIBPOD_ROOTLESS_UPGRADE} == true ]] ; then
|
||||
${want_newline} && elog ""
|
||||
elog "For rootless operation, you need to configure subuid/subgid"
|
||||
elog "for user running podman. In case subuid/subgid has only been"
|
||||
elog "configured for root, run:"
|
||||
elog "usermod --add-subuids 1065536-1131071 <user>"
|
||||
elog "usermod --add-subgids 1065536-1131071 <user>"
|
||||
want_newline=true
|
||||
fi
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue