parent
3fc51b269d
commit
b43abb6668
@ -1,6 +1,5 @@
|
||||
DIST sysstat-11.0.2.tar.xz 291256 SHA256 acd87fdfbe7c796480f14fc26119d8f785d26827d74a0f5bced6c492a91f1b96 SHA512 4bb5f2ee14346d83c59bd4da36ae8fc6c13197eabb808b1b5db84b593f07d8b366b1f6329abed8d43e2a8497a89de0f89a398b741d4ca23b4a3a95973b5f0f54 WHIRLPOOL 98daee288e22f803f19bbe423eb999f527e8997f2ffd3fe1fe784363260365ee833dd33b755f44d6bfcc685f70b47cb8fd70fdd9a3fa679829c1e608bd65f8e2
|
||||
DIST sysstat-11.4.0.tar.xz 343968 SHA256 b8518ca88acfcbc474a406022ee9c0c3210ccef4f0ec80e5b3e8c41dda8c16f2 SHA512 4a5c81d75fdbc8dcaf80685f302688c39bd7143554e5a06cb324532ddb5180caac19b261182d5320f40b317bdb1e81664887acc7cedfeb5a95dc6ad37a898604 WHIRLPOOL 39f48929040405f83a0d3c49dcf2aac471deeadd10d31181ee03809a30573868a7da43df160688ad553d305221bd21c2e253f56913f8f8a53020fb66f62c05ba
|
||||
DIST sysstat-11.4.1.tar.xz 343920 SHA256 6430718e6c90356f63ea384e9b25264dd72a4e7c971977fed9a1292f0d84ec26 SHA512 74e2bdbff70928f28bfe9a3019b678c595002b402a32529cf4c8082bc63d36a72ac22ff80573f830f19ac6214d9f409820f6807146f32213cbad0433c47c4096 WHIRLPOOL e985772172febed155cf2a723de514aae1ac13c3a38efd6b9803e46545e913229b15f808bce6051634d44c3409156f75f6a33e0b6b4b5ea707005f27712100db
|
||||
DIST sysstat-11.4.2.tar.xz 344168 SHA256 1fd407f8971f5854bc853d931dd85bcbea08658130f3f8510a730d5561980f39 SHA512 8da43fcaccbce0333c16ba1fd508540213252fbd8f730b0b31edf7450c123377b08a43cc06cc74776d7a54a8bb3e7cb848b6353f17aa6583328ade7f18111fbf WHIRLPOOL bf82fc2eeeb1b9900435d1ed9b06a251c6a1f84713d5e709a831de6c3c7d9d5e4bf19449a988ac62a12e9320d680d41449830b26584595fef41623a556bc229f
|
||||
DIST sysstat-11.5.2.tar.xz 348164 SHA256 5b923f0461ed72d8d534abb45fd0c42275f928d4b91c386918e6de6cd81fc6e4 SHA512 32288a040bb0895ee86645762d9db4e4ca9a3c23b93d6011c54e5ab0e5be7682f59a63713f032ec443b3afe1ced983facc2adb42c487c206b4f2838e8a308b71 WHIRLPOOL 6ea4b6af5bf3bdf04bfa3084932154f44193eee51ac31fd291f505653dd3363bd53a5463e316416d6bd93230009f74982577f7ace0fd0f3ab1cbd809122caac6
|
||||
DIST sysstat-11.4.3.tar.xz 344572 SHA256 02e9cafa5557fbae435d33e592373655df929d817ae711d31142dd2f7d4dcee7 SHA512 20862a6fd735aa0a6d571ffe0e1aa755ce9c5d8a704739f0095d19861394ea3a45c93e9f46ac5f42b6719ba1aa21e33261ac28fde643d7f5c315d7f0a7b0d74d WHIRLPOOL 64df9bf1a375ce7ebf727b07b10caa3b72ba3630a5a238e72dca017e09a65dbf3f1623f5e1115fb037974609e39c4fb4e3f2790c444b23eae4fb7af591bfd389
|
||||
DIST sysstat-11.5.3.tar.xz 350468 SHA256 f8229d14819e2d461ede83894648e03c8a2ad14a1ba200d68cda9816c42f41ea SHA512 41af196dec7b13e2496ae0a59ec5dfb4da7e996ee38ac633964460dcc8c008f16af7524c79d770a197662add6821b8b60de2b118507e06f0ccb84280aee13cb0 WHIRLPOOL ae8737af473fab427e7710406c207e57526e476915b5bfe19bb8043bf8038da5f887d5a1f99d9270fd4074d7d9c58745a5a397f814ae544396447f7d42b10302
|
||||
DIST sysstat-11.5.4.tar.xz 356996 SHA256 1e1008656575e70486b456e79775e98d3b8732d7e2cb408559209bd0318e0807 SHA512 323c6239dadb0608aae0a98407a61ef5a3ef25f181b5442e285fa77c787fafb7a650936d48a5f4e45caabed76e657d956d28a5bc7a53e8f9a607793ed7c0f3f5 WHIRLPOOL 451d2de3adf631183aa28c6c6c4bd99f49ca537412bf5e532edcee8e4d4f470eb69cfab6df2ca20bdb1e9d2c9cebcd2cc23ed0f695f65d4440e91c4785502fae
|
||||
|
@ -1,87 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils multilib systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="System performance tools for Linux"
|
||||
HOMEPAGE="http://pagesperso-orange.fr/sebastien.godard/"
|
||||
SRC_URI="${HOMEPAGE}${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~arm ~arm64 hppa ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86"
|
||||
IUSE="cron debug +doc isag nls lm_sensors selinux"
|
||||
|
||||
CDEPEND="
|
||||
cron? ( sys-process/cronbase )
|
||||
isag? (
|
||||
dev-lang/tk:0
|
||||
dev-vcs/rcs
|
||||
sci-visualization/gnuplot
|
||||
)
|
||||
nls? ( virtual/libintl )
|
||||
lm_sensors? ( sys-apps/lm_sensors )
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-sysstat )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
if use nls; then
|
||||
strip-linguas -i nls/
|
||||
local lingua pofile
|
||||
for pofile in nls/*.po; do
|
||||
lingua=${pofile/nls\/}
|
||||
lingua=${lingua/.po}
|
||||
if ! has ${lingua} ${LINGUAS}; then
|
||||
rm "nls/${lingua}.po" || die
|
||||
fi
|
||||
done
|
||||
fi
|
||||
epatch "${FILESDIR}"/${PN}-10.0.4-flags.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export AR
|
||||
sa_lib_dir=/usr/$(get_libdir)/sa \
|
||||
conf_dir=/etc \
|
||||
rcdir=Gentoo-does-not-use-rc.d \
|
||||
econf \
|
||||
--enable-copy-only \
|
||||
--with-systemdsystemunitdir=$(systemd_get_unitdir) \
|
||||
$(use_enable cron install-cron) \
|
||||
$(use_enable debug debuginfo) \
|
||||
$(use_enable doc documentation ) \
|
||||
$(use_enable isag install-isag) \
|
||||
$(use_enable lm_sensors sensors) \
|
||||
$(use_enable nls)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake LFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /var/log/sa
|
||||
|
||||
use cron && dodir /etc/cron.d
|
||||
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
DOC_DIR=/usr/share/doc/${PF} \
|
||||
install
|
||||
|
||||
dodoc contrib/sargraph/sargraph
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}.init.d ${PN}
|
||||
systemd_dounit ${PN}.service
|
||||
|
||||
use doc && rm -f "${D}"usr/share/doc/${PF}/COPYING
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
@ -1 +1 @@
|
||||
Mon, 16 Jan 2017 14:13:20 +0000
|
||||
Mon, 16 Jan 2017 17:13:28 +0000
|
||||
|
@ -1 +1 @@
|
||||
Mon, 16 Jan 2017 14:13:20 +0000
|
||||
Mon, 16 Jan 2017 17:13:29 +0000
|
||||
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install prepare
|
||||
DEPEND=cron? ( sys-process/cronbase ) isag? ( dev-lang/tk:0 dev-vcs/rcs sci-visualization/gnuplot ) nls? ( virtual/libintl ) lm_sensors? ( sys-apps/lm_sensors ) nls? ( sys-devel/gettext ) virtual/pkgconfig
|
||||
DESCRIPTION=System performance tools for Linux
|
||||
EAPI=5
|
||||
HOMEPAGE=http://pagesperso-orange.fr/sebastien.godard/
|
||||
IUSE=cron debug +doc isag nls lm_sensors selinux
|
||||
KEYWORDS=alpha amd64 ~arm ~arm64 hppa ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=cron? ( sys-process/cronbase ) isag? ( dev-lang/tk:0 dev-vcs/rcs sci-visualization/gnuplot ) nls? ( virtual/libintl ) lm_sensors? ( sys-apps/lm_sensors ) selinux? ( sec-policy/selinux-sysstat )
|
||||
SLOT=0
|
||||
SRC_URI=http://pagesperso-orange.fr/sebastien.godard/sysstat-11.0.2.tar.xz
|
||||
_eclasses_=eutils 017377e73405d964cd0137088cddb9c3 multilib 165fc17c38d1b11dac2008280dab6e80 systemd 5b6ca8b2fc1307ca593223f327342c96 toolchain-funcs 1b1da0c45c555989dc5d832b54880783
|
||||
_md5_=aadf73b7ff189908310bfedc262b2874
|
@ -1,13 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install prepare
|
||||
DEPEND=isag? ( dev-lang/tk:0 dev-vcs/rcs sci-visualization/gnuplot ) nls? ( virtual/libintl ) lm_sensors? ( sys-apps/lm_sensors ) nls? ( sys-devel/gettext ) virtual/pkgconfig
|
||||
DESCRIPTION=System performance tools for Linux
|
||||
EAPI=5
|
||||
EAPI=6
|
||||
HOMEPAGE=http://pagesperso-orange.fr/sebastien.godard/
|
||||
IUSE=debug isag nls lm_sensors selinux static
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=isag? ( dev-lang/tk:0 dev-vcs/rcs sci-visualization/gnuplot ) nls? ( virtual/libintl ) lm_sensors? ( sys-apps/lm_sensors ) selinux? ( sec-policy/selinux-sysstat )
|
||||
SLOT=0
|
||||
SRC_URI=http://pagesperso-orange.fr/sebastien.godard/sysstat-11.4.1.tar.xz
|
||||
SRC_URI=http://pagesperso-orange.fr/sebastien.godard/sysstat-11.4.3.tar.xz
|
||||
_eclasses_=eutils 017377e73405d964cd0137088cddb9c3 flag-o-matic 7366202dd55cb8f018f5d450d54e7749 multilib 165fc17c38d1b11dac2008280dab6e80 systemd 5b6ca8b2fc1307ca593223f327342c96 toolchain-funcs 1b1da0c45c555989dc5d832b54880783
|
||||
_md5_=051415d45260f0405ec8171d59a7c98a
|
||||
_md5_=6367506775b9b746e3ae9e359b301652
|
@ -1,13 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=virtual/pkgconfig ~dev-libs/icu-58.1 dev-libs/icu-le-hb !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DEPEND=virtual/pkgconfig[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ~dev-libs/icu-58.1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] dev-libs/icu-le-hb[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=External layout part of International Components for Unicode
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.icu-project.org/
|
||||
IUSE=debug static-libs abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||
KEYWORDS=amd64 ~x86
|
||||
LICENSE=BSD
|
||||
RDEPEND=~dev-libs/icu-58.1 dev-libs/icu-le-hb
|
||||
RDEPEND=~dev-libs/icu-58.1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] dev-libs/icu-le-hb[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]
|
||||
SLOT=0/58.1
|
||||
SRC_URI=http://download.icu-project.org/files/icu4c/58.1/icu4c-58_1-src.tgz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils 017377e73405d964cd0137088cddb9c3 flag-o-matic 7366202dd55cb8f018f5d450d54e7749 libtool 4890219c51da247200223277f993e054 multibuild 742139c87a9fa3766f0c2b155e5522bf multilib 165fc17c38d1b11dac2008280dab6e80 multilib-build 8fe2e81aeb36cdf8a6cc5f50443879cc multilib-minimal 0224dee31c0f98405d572e14ad6dee65 toolchain-funcs 1b1da0c45c555989dc5d832b54880783
|
||||
_md5_=85e1849ab0f2eca48bdad80be874abc2
|
||||
_md5_=07f4359db07c0ed400b6e336eb396f60
|
||||
|
@ -1,13 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=virtual/pkgconfig ~dev-libs/icu-58.2 dev-libs/icu-le-hb !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DEPEND=virtual/pkgconfig[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ~dev-libs/icu-58.2[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] dev-libs/icu-le-hb[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=External layout part of International Components for Unicode
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.icu-project.org/
|
||||
IUSE=debug static-libs abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=BSD
|
||||
RDEPEND=~dev-libs/icu-58.2 dev-libs/icu-le-hb
|
||||
RDEPEND=~dev-libs/icu-58.2[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] dev-libs/icu-le-hb[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]
|
||||
SLOT=0/58.2
|
||||
SRC_URI=http://download.icu-project.org/files/icu4c/58.2/icu4c-58_2-src.tgz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils 017377e73405d964cd0137088cddb9c3 flag-o-matic 7366202dd55cb8f018f5d450d54e7749 libtool 4890219c51da247200223277f993e054 multibuild 742139c87a9fa3766f0c2b155e5522bf multilib 165fc17c38d1b11dac2008280dab6e80 multilib-build 8fe2e81aeb36cdf8a6cc5f50443879cc multilib-minimal 0224dee31c0f98405d572e14ad6dee65 toolchain-funcs 1b1da0c45c555989dc5d832b54880783
|
||||
_md5_=8a29cd0abe3f037ac4cd019b483120aa
|
||||
_md5_=5e723c3b242cc1bfc327522a722eb646
|
||||
|
@ -1,13 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=media-libs/harfbuzz:= >=dev-libs/icu-58.1 virtual/pkgconfig !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DEPEND=media-libs/harfbuzz:=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] >=dev-libs/icu-58.1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] virtual/pkgconfig[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||
DESCRIPTION=ICU Layout Engine API on top of HarfBuzz shaping library
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.harfbuzz.org https://github.com/behdad/icu-le-hb
|
||||
IUSE=abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||
KEYWORDS=amd64 x86
|
||||
LICENSE=icu
|
||||
RDEPEND=media-libs/harfbuzz:=
|
||||
RDEPEND=media-libs/harfbuzz:=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]
|
||||
SLOT=0
|
||||
SRC_URI=https://github.com/behdad/icu-le-hb/archive/1.0.3.tar.gz -> icu-le-hb-1.0.3.tar.gz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c libtool 4890219c51da247200223277f993e054 multibuild 742139c87a9fa3766f0c2b155e5522bf multilib 165fc17c38d1b11dac2008280dab6e80 multilib-build 8fe2e81aeb36cdf8a6cc5f50443879cc multilib-minimal 0224dee31c0f98405d572e14ad6dee65 toolchain-funcs 1b1da0c45c555989dc5d832b54880783
|
||||
_md5_=d7730cad5244d806dc21daee30901a33
|
||||
_md5_=311701a260b5a294d4ebe5656dfad53c
|
||||
|
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=configure install prepare test
|
||||
DEPEND=acl? ( virtual/acl ) caps? ( sys-libs/libcap ) clamav? ( app-antivirus/clamav ) kerberos? ( virtual/krb5 ) ldap? ( net-nds/openldap ) memcache? ( >=dev-libs/libmemcached-0.41 ) mysql? ( virtual/mysql ) nls? ( virtual/libiconv ) ncurses? ( sys-libs/ncurses:0= ) ssl? ( !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:= ) ) pam? ( virtual/pam ) pcre? ( dev-libs/libpcre ) postgres? ( dev-db/postgresql:= ) sqlite? ( dev-db/sqlite:3 ) xinetd? ( virtual/inetd ) test? ( dev-libs/check ) virtual/pkgconfig
|
||||
DESCRIPTION=An advanced and very configurable FTP server
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.proftpd.org/ http://www.castaglia.org/proftpd/ http://www.thrallingpenguin.com/resources/mod_clamav.htm http://gssmod.sourceforge.net/
|
||||
IUSE=acl authfile ban +caps case clamav copy ctrls deflate diskuse doc dso dynmasq exec ifsession ifversion ident ipv6 kerberos ldap libressl linguas_bg_BG linguas_en_US linguas_fr_FR linguas_it_IT linguas_ja_JP linguas_ko_KR linguas_ru_RU linguas_zh_CN linguas_zh_TW log_forensic memcache msg mysql ncurses nls pam +pcre postgres qos radius ratio readme rewrite selinux sftp shaper sitemisc snmp softquota sqlite ssl tcpd test trace unique_id vroot xinetd
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=acl? ( virtual/acl ) caps? ( sys-libs/libcap ) clamav? ( app-antivirus/clamav ) kerberos? ( virtual/krb5 ) ldap? ( net-nds/openldap ) memcache? ( >=dev-libs/libmemcached-0.41 ) mysql? ( virtual/mysql ) nls? ( virtual/libiconv ) ncurses? ( sys-libs/ncurses:0= ) ssl? ( !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:= ) ) pam? ( virtual/pam ) pcre? ( dev-libs/libpcre ) postgres? ( dev-db/postgresql:= ) sqlite? ( dev-db/sqlite:3 ) xinetd? ( virtual/inetd ) net-ftp/ftpbase selinux? ( sec-policy/selinux-ftp )
|
||||
REQUIRED_USE=ban? ( ctrls ) msg? ( ctrls ) sftp? ( ssl ) shaper? ( ctrls )
|
||||
SLOT=0
|
||||
SRC_URI=ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.5d.tar.gz case? ( http://www.castaglia.org/proftpd/modules/proftpd-mod-case-0.7.tar.gz ) clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-0.11rc.tar.gz ) diskuse? ( http://www.castaglia.org/proftpd/modules/proftpd-mod-diskuse-0.9.tar.gz ) kerberos? ( mirror://sourceforge/gssmod/mod_gss-1.3.6.tar.gz ) msg? ( http://www.castaglia.org/proftpd/modules/proftpd-mod-msg-0.4.1.tar.gz ) vroot? ( https://github.com/Castaglia/proftpd-mod_vroot/archive/v0.9.4.tar.gz -> mod_vroot-0.9.4.tar.gz )
|
||||
_eclasses_=multilib 165fc17c38d1b11dac2008280dab6e80 systemd 5b6ca8b2fc1307ca593223f327342c96 toolchain-funcs 1b1da0c45c555989dc5d832b54880783
|
||||
_md5_=85f917360d06d4453f2749a9bdfccd9b
|
@ -0,0 +1,10 @@
|
||||
DEFINED_PHASES=compile install
|
||||
DESCRIPTION=Cygwin Encryption/Decryption utility and library
|
||||
EAPI=5
|
||||
HOMEPAGE=https://sourceware.org/cygwin-apps/
|
||||
KEYWORDS=~x64-cygwin ~x86-cygwin
|
||||
LICENSE=GPL-2+
|
||||
SLOT=0
|
||||
SRC_URI=mirror://gentoo/cygwin-crypt-1.4.tar.bz2
|
||||
_eclasses_=multilib 165fc17c38d1b11dac2008280dab6e80 toolchain-funcs 1b1da0c45c555989dc5d832b54880783
|
||||
_md5_=517fcbd5bfe74ae04380d0f174d32285
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=minizip? ( !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 )
|
||||
DESCRIPTION=Standard (de)compression library
|
||||
EAPI=5
|
||||
HOMEPAGE=http://www.zlib.net/
|
||||
IUSE=minizip static-libs abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||
KEYWORDS=alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=ZLIB
|
||||
RDEPEND=abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] ) !<dev-libs/libxml2-2.7.7
|
||||
SLOT=0
|
||||
SRC_URI=http://zlib.net/zlib-1.2.10.tar.gz http://www.gzip.org/zlib/zlib-1.2.10.tar.gz http://www.zlib.net/current/beta/zlib-1.2.10.tar.gz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils 017377e73405d964cd0137088cddb9c3 libtool 4890219c51da247200223277f993e054 multibuild 742139c87a9fa3766f0c2b155e5522bf multilib 165fc17c38d1b11dac2008280dab6e80 multilib-build 8fe2e81aeb36cdf8a6cc5f50443879cc multilib-minimal 0224dee31c0f98405d572e14ad6dee65 toolchain-funcs 1b1da0c45c555989dc5d832b54880783
|
||||
_md5_=db0e4b18f61f998d9056b2e93afb3329
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=minizip? ( !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 )
|
||||
DESCRIPTION=Standard (de)compression library
|
||||
EAPI=4
|
||||
HOMEPAGE=http://www.zlib.net/
|
||||
IUSE=minizip static-libs abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||
KEYWORDS=alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd
|
||||
LICENSE=ZLIB
|
||||
RDEPEND=abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] ) !<dev-libs/libxml2-2.7.7
|
||||
SLOT=0
|
||||
SRC_URI=http://zlib.net/zlib-1.2.8.tar.gz http://www.gzip.org/zlib/zlib-1.2.8.tar.gz http://www.zlib.net/current/beta/zlib-1.2.8.tar.gz
|
||||
_eclasses_=autotools 07e71b3b5690738ef7e8bc097077e00c eutils 017377e73405d964cd0137088cddb9c3 libtool 4890219c51da247200223277f993e054 multibuild 742139c87a9fa3766f0c2b155e5522bf multilib 165fc17c38d1b11dac2008280dab6e80 multilib-build 8fe2e81aeb36cdf8a6cc5f50443879cc multilib-minimal 0224dee31c0f98405d572e14ad6dee65 toolchain-funcs 1b1da0c45c555989dc5d832b54880783
|
||||
_md5_=fa83425e74d8d690575563dc5f65b1c7
|
@ -1 +1 @@
|
||||
Mon, 16 Jan 2017 14:13:20 +0000
|
||||
Mon, 16 Jan 2017 17:13:29 +0000
|
||||
|
@ -1 +1 @@
|
||||
Mon Jan 16 14:09:26 UTC 2017
|
||||
Mon Jan 16 17:09:35 UTC 2017
|
||||
|
@ -1 +1 @@
|
||||
Mon, 16 Jan 2017 15:30:02 +0000
|
||||
Mon, 16 Jan 2017 17:30:01 +0000
|
||||
|
@ -1 +1 @@
|
||||
1484575801 Mon 16 Jan 2017 02:10:01 PM UTC
|
||||
1484586601 Mon 16 Jan 2017 05:10:01 PM UTC
|
||||
|
@ -1 +1 @@
|
||||
Mon, 16 Jan 2017 14:13:20 +0000
|
||||
Mon, 16 Jan 2017 17:13:28 +0000
|
||||
|
@ -1,7 +1,10 @@
|
||||
DIST mod_clamav-0.11rc.tar.gz 5115 SHA256 87630eb1866066d6320ee711897d8998b8f4915c0498b2e78cc0464abd34855a SHA512 6d33ee7b1c9c8e3fb0a0014dde90cfb1d37daa0f4914f147bb800a8318bcf0e03c7c6748d84cda36c5e5c7cd11ee8114bad9978362f581f367db54d3563f4636 WHIRLPOOL b15024d1011a83a10ce52fb676f1f2162d67750dc137600b624cd04ebd498bb3c9242e4889fd7b73c18224eb483286cb543fc627b27e6a8ff4c9bf35468218b9
|
||||
DIST mod_gss-1.3.3.tar.gz 115098 SHA256 24702cf0333720730cc269eb30529061365b1384fdce274bc3d46ccfc300934e SHA512 61473f3102e2204a27d691907482a3e86108bb423be54ba47a79ef0d2a0313bcdc022529f8e620bd868453bee1b1169fce74cc454d835fdfd4be964e342bdedb WHIRLPOOL 90a15ca919326fa2b2e21fb2928e5ac39b912681bce015f3bff0b0b0c47241f41cc3c78789797ba2d8a61dafc24a9f1d18bf085808350301c228b6ed62721e80
|
||||
DIST mod_gss-1.3.6.tar.gz 117294 SHA256 bd1cb3f8ba0668981beb54d8b4de10ab204199327a464debd9da19196bbb23c4 SHA512 a7e2f201bc7706f47f583317899bf4bc6a75d5e284b20a4cd9019020d3427334ada92fa3bbb4e153a2cd68e04f76185472b46ed3d3d168bf52a4c200e70ed8e4 WHIRLPOOL 96dce4cf8027961d0358a6f6f7ab33a606bfeb9bfe52702663e6c176e21d1ec357617e2d7f780247895f489700d129b03a62712ffc945c1104b53508ea1fca32
|
||||
DIST mod_vroot-0.9.3.tar.gz 28352 SHA256 f16c61ed7fe2d7231e1421f8f1a484f29972e0efe0e8e065ab373c388b0c073c SHA512 08a3e5df26bb4d5875b57af9e97e7e7cf27b2ad6983bfae0fac8a21f4a5be0a487cf0d9d03e9e1c08701eb3f22f2cb51a14c05fe1cba5f4085eb8a31d5142776 WHIRLPOOL be30931f117fc4f0b7de87579b483e41d86ad3ecd2999267a726664b32090cd32e6a7e748d66ddec525ee784ee2974212fd2455af313c13b67ab61625efa29d0
|
||||
DIST mod_vroot-0.9.4.tar.gz 29461 SHA256 80c82c18639909a3b5219cbb76363584c0eb311535de38adb5d9040a9b12bde8 SHA512 f5de392c9fe39f0a03b0783a7092bbfe17ea6db991f4b4e4a2d8f092f073d27ef2c64dd6484d5665b5abc808c0caba016d4fc3fab3da3810f5ebe5249bb4cbce WHIRLPOOL a3e086812e270d96dd659bbb1c3afb7e84adfe8db525adb08ecaabe02afb972032b413b8e16e2a26a8d99f2a599a3901010a6d1201c964164559aacf6105dc2a
|
||||
DIST proftpd-1.3.5b.tar.gz 29992107 SHA256 afc1789f2478acf88dfdc7d70da90a4fa2786d628218e9574273295d044b4fc8 SHA512 5bdb9718c85c26b92256d7b3791a6a5456bec3826801b7b68f4d493d202ac77179c8378ad06efc1a805efce639db266561d3beb4bc7af61ca1352fb4bdfd4e6a WHIRLPOOL bb1a9fef464d2070c7dc1204cf2a8682e4f2719d682b0b1e541fff11f5c8a4a9a133011a607831fd30548b201531c3534248ed0eb36d0b4708e7b5b75353fc6f
|
||||
DIST proftpd-1.3.5d.tar.gz 29966560 SHA256 f4e2997be7f22a5b31d7ac72497ed4f4471d24d32385978350410713e76129ac SHA512 3297ddd1f11d46123bbe46488d75fa7a6dcdf2c2d6e7e880a78a427f9f1e9901878dab179e41092e0b9864a615d8ba0b0bf444d4f829870e993e3169c7141c37 WHIRLPOOL d20c43368ad9d3e79e4e7a7590a808974ad4059592f183a325aa05650ee4c4d874b6fe2723c289678df84eb5be4d4888b6a523abd1e0c6a8817333daa12af463
|
||||
DIST proftpd-mod-case-0.7.tar.gz 13184 SHA256 c3f65588250fea7771439933fa754927794f664e99b8d20f99b1e400fea62111 SHA512 c08d13ef82fec36ae75aa3213dd02e0ce4045904849f422e152f039a9da66a45e4423751074b8bcf8ce347a40ce0e7bde798a85cbadc962fd872aeaa898261fc WHIRLPOOL 27f49e9f34099c081add803aa679fd9abe7afa652dffe5d8e42889fef49aeaefd499e1009fc564d6c8f882b3c6dc31d4c6dd08cc06a42b770e7ef76a2ebfcf8a
|
||||
DIST proftpd-mod-diskuse-0.9.tar.gz 18596 SHA256 424f3fd49237245ec176d27ade0965fe21a0db1d645979d5ae3e55497e3da036 SHA512 d41976bf2810e4b783e775e8c767ca2030c3b5df116219fd31cbbac7feaf9922c315bf4ea092881b0d6cf43f2f4c5dbcae61be3c3a833058d12f962a3024b975 WHIRLPOOL aabd1dc23d6c38d308e859ff778beffd0dabfe70d3530c093cf2f95e80b5e9c94b97b6b5ae5109d031f76ff94dffc3822a7aa60fa30df04523d37ebed99730d6
|
||||
DIST proftpd-mod-msg-0.4.1.tar.gz 8082 SHA256 255b79d31dc509ffad5d0fbcd469f833a8481e880aa962910c2bc8aa608ca6da SHA512 38ea63b1d355e1e10a6a4477596bf3fa28529a871c9fb8dbf093b5317f0743ef9cb59b986d0b8c1c7ed932dad5d5d571883d596fad2d3b793431824db4487012 WHIRLPOOL ff907e26a354f53231fed94515eb60050dec77118be6f49147e0eb8b79e50c9d73354618bca19d98d32a3fb79d7ba87507cc6c8b269f259c5fcf23d44ad3a906
|
||||
|
@ -0,0 +1,235 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit multilib systemd
|
||||
|
||||
MOD_CASE="0.7"
|
||||
MOD_CLAMAV="0.11rc"
|
||||
MOD_DISKUSE="0.9"
|
||||
MOD_GSS="1.3.6"
|
||||
MOD_MSG="0.4.1"
|
||||
MOD_VROOT="0.9.4"
|
||||
|
||||
DESCRIPTION="An advanced and very configurable FTP server"
|
||||
HOMEPAGE="http://www.proftpd.org/
|
||||
http://www.castaglia.org/proftpd/
|
||||
http://www.thrallingpenguin.com/resources/mod_clamav.htm
|
||||
http://gssmod.sourceforge.net/"
|
||||
SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.gz
|
||||
case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${MOD_CASE}.tar.gz )
|
||||
clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${MOD_CLAMAV}.tar.gz )
|
||||
diskuse? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-diskuse-${MOD_DISKUSE}.tar.gz )
|
||||
kerberos? ( mirror://sourceforge/gssmod/mod_gss-${MOD_GSS}.tar.gz )
|
||||
msg? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-msg-${MOD_MSG}.tar.gz )
|
||||
vroot? ( https://github.com/Castaglia/${PN}-mod_vroot/archive/v${MOD_VROOT}.tar.gz -> mod_vroot-${MOD_VROOT}.tar.gz )"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="acl authfile ban +caps case clamav copy ctrls deflate diskuse doc dso dynmasq exec ifsession ifversion ident ipv6
|
||||
kerberos ldap libressl linguas_bg_BG linguas_en_US linguas_fr_FR linguas_it_IT linguas_ja_JP linguas_ko_KR
|
||||
linguas_ru_RU linguas_zh_CN linguas_zh_TW log_forensic memcache msg mysql ncurses nls pam +pcre postgres qos radius
|
||||
ratio readme rewrite selinux sftp shaper sitemisc snmp softquota sqlite ssl tcpd test trace unique_id vroot xinetd"
|
||||
# TODO: geoip
|
||||
REQUIRED_USE="ban? ( ctrls )
|
||||
msg? ( ctrls )
|
||||
sftp? ( ssl )
|
||||
shaper? ( ctrls )"
|
||||
|
||||
CDEPEND="acl? ( virtual/acl )
|
||||
caps? ( sys-libs/libcap )
|
||||
clamav? ( app-antivirus/clamav )
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
memcache? ( >=dev-libs/libmemcached-0.41 )
|
||||
mysql? ( virtual/mysql )
|
||||
nls? ( virtual/libiconv )
|
||||
ncurses? ( sys-libs/ncurses:0= )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
pam? ( virtual/pam )
|
||||
pcre? ( dev-libs/libpcre )
|
||||
postgres? ( dev-db/postgresql:= )
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
xinetd? ( virtual/inetd )"
|
||||
DEPEND="${CDEPEND}
|
||||
test? ( dev-libs/check )"
|
||||
RDEPEND="${CDEPEND}
|
||||
net-ftp/ftpbase
|
||||
selinux? ( sec-policy/selinux-ftp )"
|
||||
|
||||
S="${WORKDIR}/${P/_/}"
|
||||
|
||||
__prepare_module() {
|
||||
local mod_name=$1
|
||||
local mod_topdir=${WORKDIR}/${2:-${mod_name}}
|
||||
|
||||
mv "${mod_topdir}/${mod_name}.c" contrib || die
|
||||
mv "${mod_topdir}/${mod_name}.html" doc/contrib || die
|
||||
rm -r "${mod_topdir}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Skip 'install-conf' / Support LINGUAS
|
||||
sed -i -e "/install-all/s/ install-conf//" Makefile.in
|
||||
sed -i -e "s/^LANGS=.*$/LANGS=${LINGUAS}/" locale/Makefile.in
|
||||
|
||||
# Prepare external modules
|
||||
use case && __prepare_module mod_case
|
||||
if use clamav ; then
|
||||
mv "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}/mod_clamav.{c,h} contrib
|
||||
eapply "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}/${PN}.patch
|
||||
rm -r "${WORKDIR}"/mod_clamav-${MOD_CLAMAV}
|
||||
fi
|
||||
use msg && __prepare_module mod_msg
|
||||
use vroot && __prepare_module mod_vroot ${PN}-mod_vroot-${MOD_VROOT}
|
||||
|
||||
# Prepare external kerberos module
|
||||
if use kerberos ; then
|
||||
cd "${WORKDIR}"/mod_gss-${MOD_GSS}
|
||||
|
||||
# Support app-crypt/heimdal / Gentoo Bug #284853
|
||||
sed -i -e "s/krb5_principal2principalname/_\0/" mod_auth_gss.c.in
|
||||
|
||||
# Remove obsolete DES / Gentoo Bug #324903
|
||||
# Replace 'rpm' lookups / Gentoo Bug #391021
|
||||
sed -i -e "/ac_gss_libs/s/ -ldes425//" \
|
||||
-e "s/ac_libdir=\`rpm -q -l.*$/ac_libdir=\/usr\/$(get_libdir)\//" \
|
||||
-e "s/ac_includedir=\`rpm -q -l.*$/ac_includedir=\/usr\/include\//" configure{,.in}
|
||||
fi
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local c m
|
||||
|
||||
use acl && m="${m}:mod_facl"
|
||||
use ban && m="${m}:mod_ban"
|
||||
use case && m="${m}:mod_case"
|
||||
use clamav && m="${m}:mod_clamav"
|
||||
use copy && m="${m}:mod_copy"
|
||||
use ctrls && m="${m}:mod_ctrls_admin"
|
||||
use deflate && m="${m}:mod_deflate"
|
||||
if use diskuse ; then
|
||||
cd "${WORKDIR}"/mod_diskuse
|
||||
econf
|
||||
mv mod_diskuse.{c,h} "${S}"/contrib
|
||||
mv mod_diskuse.html "${S}"/doc/contrib
|
||||
cd "${S}"
|
||||
rm -r "${WORKDIR}"/mod_diskuse
|
||||
m="${m}:mod_diskuse"
|
||||
fi
|
||||
use dynmasq && m="${m}:mod_dynmasq"
|
||||
use exec && m="${m}:mod_exec"
|
||||
use ifsession && m="${m}:mod_ifsession"
|
||||
use ifversion && m="${m}:mod_ifversion"
|
||||
if use kerberos ; then
|
||||
cd "${WORKDIR}"/mod_gss-${MOD_GSS}
|
||||
econf
|
||||
mv mod_{auth_gss,gss}.c "${S}"/contrib
|
||||
mv mod_gss.h "${S}"/include
|
||||
mv README.mod_{auth_gss,gss} "${S}"
|
||||
mv mod_gss.html "${S}"/doc/contrib
|
||||
mv rfc{1509,2228}.txt "${S}"/doc/rfc
|
||||
cd "${S}"
|
||||
rm -r "${WORKDIR}"/mod_gss-${MOD_GSS}
|
||||
m="${m}:mod_gss:mod_auth_gss"
|
||||
fi
|
||||
use ldap && m="${m}:mod_ldap"
|
||||
use log_forensic && m="${m}:mod_log_forensic"
|
||||
use msg && m="${m}:mod_msg"
|
||||
if use mysql || use postgres || use sqlite ; then
|
||||
m="${m}:mod_sql:mod_sql_passwd"
|
||||
use mysql && m="${m}:mod_sql_mysql"
|
||||
use postgres && m="${m}:mod_sql_postgres"
|
||||
use sqlite && m="${m}:mod_sql_sqlite"
|
||||
fi
|
||||
use qos && m="${m}:mod_qos"
|
||||
use radius && m="${m}:mod_radius"
|
||||
use ratio && m="${m}:mod_ratio"
|
||||
use readme && m="${m}:mod_readme"
|
||||
use rewrite && m="${m}:mod_rewrite"
|
||||
if use sftp ; then
|
||||
m="${m}:mod_sftp"
|
||||
use pam && m="${m}:mod_sftp_pam"
|
||||
use mysql || use postgres || use sqlite && m="${m}:mod_sftp_sql"
|
||||
fi
|
||||
use shaper && m="${m}:mod_shaper"
|
||||
use sitemisc && m="${m}:mod_site_misc"
|
||||
use snmp && m="${m}:mod_snmp"
|
||||
if use softquota ; then
|
||||
m="${m}:mod_quotatab:mod_quotatab_file"
|
||||
use ldap && m="${m}:mod_quotatab_ldap"
|
||||
use radius && m="${m}:mod_quotatab_radius"
|
||||
use mysql || use postgres || use sqlite && m="${m}:mod_quotatab_sql"
|
||||
fi
|
||||
if use ssl ; then
|
||||
m="${m}:mod_tls:mod_tls_shmcache"
|
||||
use memcache && m="${m}:mod_tls_memcache"
|
||||
fi
|
||||
if use tcpd ; then
|
||||
m="${m}:mod_wrap2:mod_wrap2_file"
|
||||
use mysql || use postgres || use sqlite && m="${m}:mod_wrap2_sql"
|
||||
fi
|
||||
use unique_id && m="${m}:mod_unique_id"
|
||||
use vroot && m="${m}:mod_vroot"
|
||||
|
||||
if [[ -n ${PROFTP_CUSTOM_MODULES} ]]; then
|
||||
einfo "Adding user-specified extra modules: '${PROFTP_CUSTOM_MODULES}'"
|
||||
m="${m}:${PROFTP_CUSTOM_MODULES}"
|
||||
fi
|
||||
|
||||
[[ -z ${m} ]] || c="${c} --with-modules=${m:1}"
|
||||
econf --localstatedir=/var/run/proftpd --sysconfdir=/etc/proftpd --disable-strip \
|
||||
$(use_enable acl facl) \
|
||||
$(use_enable authfile auth-file) \
|
||||
$(use_enable caps cap) \
|
||||
$(use_enable ctrls) \
|
||||
$(use_enable dso) \
|
||||
$(use_enable ident) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable memcache) \
|
||||
$(use_enable ncurses) \
|
||||
$(use_enable nls) \
|
||||
$(use_enable ssl openssl) \
|
||||
$(use_enable pam auth-pam) \
|
||||
$(use_enable pcre) \
|
||||
$(use_enable test tests) \
|
||||
$(use_enable trace) \
|
||||
$(use_enable userland_GNU shadow) \
|
||||
$(use_enable userland_GNU autoshadow) \
|
||||
${c:1}
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake api-tests -C tests
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
[[ -z ${LINGUAS} ]] && rm -r "${ED}"/usr/share/locale
|
||||
rm -rf "${ED}"/var/run
|
||||
|
||||
newinitd "${FILESDIR}"/proftpd.initd proftpd
|
||||
insinto /etc/proftpd
|
||||
doins "${FILESDIR}"/proftpd.conf.sample
|
||||
|
||||
if use xinetd ; then
|
||||
insinto /etc/xinetd.d
|
||||
newins "${FILESDIR}"/proftpd.xinetd proftpd
|
||||
fi
|
||||
|
||||
dodoc ChangeLog CREDITS INSTALL NEWS README* RELEASE_NOTES
|
||||
if use doc ; then
|
||||
dohtml doc/*.html doc/contrib/*.html doc/howto/*.html doc/modules/*.html
|
||||
docinto rfc
|
||||
dodoc doc/rfc/*.txt
|
||||
fi
|
||||
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
systemd_newtmpfilesd "${FILESDIR}"/${PN}-tmpfiles.d.conf ${PN}.conf
|
||||
}
|
@ -0,0 +1,302 @@
|
||||
From 016fb3b83b861cfe58694996076a9764dcb46475 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Gilbert <floppymaster@gmail.com>
|
||||
Date: Tue, 10 Jan 2017 02:39:05 -0500
|
||||
Subject: [PATCH 2/2] build-sys: add check for gperf lookup function signature
|
||||
(#5055)
|
||||
|
||||
gperf-3.1 generates lookup functions that take a size_t length
|
||||
parameter instead of unsigned int. Test for this at configure time.
|
||||
|
||||
Fixes: https://github.com/systemd/systemd/issues/5039
|
||||
---
|
||||
configure.ac | 22 ++++++++++++++++++++++
|
||||
src/basic/af-list.c | 2 +-
|
||||
src/basic/arphrd-list.c | 2 +-
|
||||
src/basic/cap-list.c | 2 +-
|
||||
src/basic/errno-list.c | 2 +-
|
||||
src/core/load-fragment.h | 2 +-
|
||||
src/journal/journald-server.h | 2 +-
|
||||
src/login/logind.h | 2 +-
|
||||
src/network/networkd-conf.h | 2 +-
|
||||
src/network/networkd-netdev.h | 2 +-
|
||||
src/network/networkd-network.h | 2 +-
|
||||
src/nspawn/nspawn-settings.h | 2 +-
|
||||
src/resolve/dns-type.c | 2 +-
|
||||
src/resolve/resolved-conf.h | 2 +-
|
||||
src/test/test-af-list.c | 2 +-
|
||||
src/test/test-arphrd-list.c | 2 +-
|
||||
src/timesync/timesyncd-conf.h | 2 +-
|
||||
src/udev/net/link-config.h | 2 +-
|
||||
src/udev/udev-builtin-keyboard.c | 2 +-
|
||||
19 files changed, 40 insertions(+), 18 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 1928e65bd..5c639e32d 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -258,6 +258,28 @@ AC_CHECK_SIZEOF(rlim_t,,[
|
||||
#include <sys/resource.h>
|
||||
])
|
||||
|
||||
+GPERF_TEST="$(echo foo,bar | ${GPERF} -L ANSI-C)"
|
||||
+
|
||||
+AC_COMPILE_IFELSE(
|
||||
+ [AC_LANG_PROGRAM([
|
||||
+ #include <string.h>
|
||||
+ const char * in_word_set(const char *, size_t);
|
||||
+ $GPERF_TEST]
|
||||
+ )],
|
||||
+ [GPERF_LEN_TYPE=size_t],
|
||||
+ [AC_COMPILE_IFELSE(
|
||||
+ [AC_LANG_PROGRAM([
|
||||
+ #include <string.h>
|
||||
+ const char * in_word_set(const char *, unsigned);
|
||||
+ $GPERF_TEST]
|
||||
+ )],
|
||||
+ [GPERF_LEN_TYPE=unsigned],
|
||||
+ [AC_MSG_ERROR([** unable to determine gperf len type])]
|
||||
+ )]
|
||||
+)
|
||||
+
|
||||
+AC_DEFINE_UNQUOTED([GPERF_LEN_TYPE], [$GPERF_LEN_TYPE], [gperf len type])
|
||||
+
|
||||
# ------------------------------------------------------------------------------
|
||||
# we use python to build the man page index
|
||||
have_python=no
|
||||
diff --git a/src/basic/af-list.c b/src/basic/af-list.c
|
||||
index 3fac9c508..4b291d177 100644
|
||||
--- a/src/basic/af-list.c
|
||||
+++ b/src/basic/af-list.c
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "af-list.h"
|
||||
#include "macro.h"
|
||||
|
||||
-static const struct af_name* lookup_af(register const char *str, register unsigned int len);
|
||||
+static const struct af_name* lookup_af(register const char *str, register GPERF_LEN_TYPE len);
|
||||
|
||||
#include "af-from-name.h"
|
||||
#include "af-to-name.h"
|
||||
diff --git a/src/basic/arphrd-list.c b/src/basic/arphrd-list.c
|
||||
index 6792d1ee3..2d598dc66 100644
|
||||
--- a/src/basic/arphrd-list.c
|
||||
+++ b/src/basic/arphrd-list.c
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "arphrd-list.h"
|
||||
#include "macro.h"
|
||||
|
||||
-static const struct arphrd_name* lookup_arphrd(register const char *str, register unsigned int len);
|
||||
+static const struct arphrd_name* lookup_arphrd(register const char *str, register GPERF_LEN_TYPE len);
|
||||
|
||||
#include "arphrd-from-name.h"
|
||||
#include "arphrd-to-name.h"
|
||||
diff --git a/src/basic/cap-list.c b/src/basic/cap-list.c
|
||||
index 3e773a06f..d68cc78d0 100644
|
||||
--- a/src/basic/cap-list.c
|
||||
+++ b/src/basic/cap-list.c
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "parse-util.h"
|
||||
#include "util.h"
|
||||
|
||||
-static const struct capability_name* lookup_capability(register const char *str, register unsigned int len);
|
||||
+static const struct capability_name* lookup_capability(register const char *str, register GPERF_LEN_TYPE len);
|
||||
|
||||
#include "cap-from-name.h"
|
||||
#include "cap-to-name.h"
|
||||
diff --git a/src/basic/errno-list.c b/src/basic/errno-list.c
|
||||
index 31b66bad5..c6a01eec8 100644
|
||||
--- a/src/basic/errno-list.c
|
||||
+++ b/src/basic/errno-list.c
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "macro.h"
|
||||
|
||||
static const struct errno_name* lookup_errno(register const char *str,
|
||||
- register unsigned int len);
|
||||
+ register GPERF_LEN_TYPE len);
|
||||
|
||||
#include "errno-from-name.h"
|
||||
#include "errno-to-name.h"
|
||||
diff --git a/src/core/load-fragment.h b/src/core/load-fragment.h
|
||||
index c05f205c3..ede6b1f73 100644
|
||||
--- a/src/core/load-fragment.h
|
||||
+++ b/src/core/load-fragment.h
|
||||
@@ -118,7 +118,7 @@ int config_parse_user_group(const char *unit, const char *filename, unsigned lin
|
||||
int config_parse_user_group_strv(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
|
||||
/* gperf prototypes */
|
||||
-const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
extern const char load_fragment_gperf_nulstr[];
|
||||
|
||||
typedef enum Disabled {
|
||||
diff --git a/src/journal/journald-server.h b/src/journal/journald-server.h
|
||||
index 99d91496b..d1520c45d 100644
|
||||
--- a/src/journal/journald-server.h
|
||||
+++ b/src/journal/journald-server.h
|
||||
@@ -179,7 +179,7 @@ void server_dispatch_message(Server *s, struct iovec *iovec, unsigned n, unsigne
|
||||
void server_driver_message(Server *s, sd_id128_t message_id, const char *format, ...) _printf_(3,0) _sentinel_;
|
||||
|
||||
/* gperf lookup function */
|
||||
-const struct ConfigPerfItem* journald_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* journald_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
int config_parse_storage(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
|
||||
diff --git a/src/login/logind.h b/src/login/logind.h
|
||||
index 086fa1eeb..7556ee2e4 100644
|
||||
--- a/src/login/logind.h
|
||||
+++ b/src/login/logind.h
|
||||
@@ -182,7 +182,7 @@ int manager_unit_is_active(Manager *manager, const char *unit);
|
||||
int manager_job_is_active(Manager *manager, const char *path);
|
||||
|
||||
/* gperf lookup function */
|
||||
-const struct ConfigPerfItem* logind_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* logind_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
int manager_set_lid_switch_ignore(Manager *m, usec_t until);
|
||||
|
||||
diff --git a/src/network/networkd-conf.h b/src/network/networkd-conf.h
|
||||
index c7bfb42a7..00ddb7672 100644
|
||||
--- a/src/network/networkd-conf.h
|
||||
+++ b/src/network/networkd-conf.h
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
int manager_parse_config_file(Manager *m);
|
||||
|
||||
-const struct ConfigPerfItem* networkd_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* networkd_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
int config_parse_duid_type(
|
||||
const char *unit,
|
||||
diff --git a/src/network/networkd-netdev.h b/src/network/networkd-netdev.h
|
||||
index 70ff947b9..37c743121 100644
|
||||
--- a/src/network/networkd-netdev.h
|
||||
+++ b/src/network/networkd-netdev.h
|
||||
@@ -175,7 +175,7 @@ NetDevKind netdev_kind_from_string(const char *d) _pure_;
|
||||
int config_parse_netdev_kind(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
|
||||
/* gperf */
|
||||
-const struct ConfigPerfItem* network_netdev_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* network_netdev_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
/* Macros which append INTERFACE= to the message */
|
||||
|
||||
diff --git a/src/network/networkd-network.h b/src/network/networkd-network.h
|
||||
index 42fc82d39..09c3b3a3a 100644
|
||||
--- a/src/network/networkd-network.h
|
||||
+++ b/src/network/networkd-network.h
|
||||
@@ -236,7 +236,7 @@ int config_parse_dhcp_route_table(const char *unit, const char *filename, unsign
|
||||
/* Legacy IPv4LL support */
|
||||
int config_parse_ipv4ll(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
|
||||
-const struct ConfigPerfItem* network_network_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* network_network_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
extern const sd_bus_vtable network_vtable[];
|
||||
|
||||
diff --git a/src/nspawn/nspawn-settings.h b/src/nspawn/nspawn-settings.h
|
||||
index 231e6d726..4ae34f8e2 100644
|
||||
--- a/src/nspawn/nspawn-settings.h
|
||||
+++ b/src/nspawn/nspawn-settings.h
|
||||
@@ -103,7 +103,7 @@ bool settings_private_network(Settings *s);
|
||||
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC(Settings*, settings_free);
|
||||
|
||||
-const struct ConfigPerfItem* nspawn_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* nspawn_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
int config_parse_capability(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
int config_parse_id128(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
diff --git a/src/resolve/dns-type.c b/src/resolve/dns-type.c
|
||||
index aaf5ed62c..d89ae28dc 100644
|
||||
--- a/src/resolve/dns-type.c
|
||||
+++ b/src/resolve/dns-type.c
|
||||
@@ -29,7 +29,7 @@ typedef const struct {
|
||||
} dns_type;
|
||||
|
||||
static const struct dns_type_name *
|
||||
-lookup_dns_type (register const char *str, register unsigned int len);
|
||||
+lookup_dns_type (register const char *str, register GPERF_LEN_TYPE len);
|
||||
|
||||
#include "dns_type-from-name.h"
|
||||
#include "dns_type-to-name.h"
|
||||
diff --git a/src/resolve/resolved-conf.h b/src/resolve/resolved-conf.h
|
||||
index fc425a36b..8184d6cad 100644
|
||||
--- a/src/resolve/resolved-conf.h
|
||||
+++ b/src/resolve/resolved-conf.h
|
||||
@@ -41,7 +41,7 @@ int manager_parse_search_domains_and_warn(Manager *m, const char *string);
|
||||
int manager_add_dns_server_by_string(Manager *m, DnsServerType type, const char *word);
|
||||
int manager_parse_dns_server_string_and_warn(Manager *m, DnsServerType type, const char *string);
|
||||
|
||||
-const struct ConfigPerfItem* resolved_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* resolved_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
int config_parse_dns_servers(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
int config_parse_search_domains(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
diff --git a/src/test/test-af-list.c b/src/test/test-af-list.c
|
||||
index aeaa0929b..e2479133d 100644
|
||||
--- a/src/test/test-af-list.c
|
||||
+++ b/src/test/test-af-list.c
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "string-util.h"
|
||||
#include "util.h"
|
||||
|
||||
-static const struct af_name* lookup_af(register const char *str, register unsigned int len);
|
||||
+static const struct af_name* lookup_af(register const char *str, register GPERF_LEN_TYPE len);
|
||||
|
||||
#include "af-from-name.h"
|
||||
#include "af-list.h"
|
||||
diff --git a/src/test/test-arphrd-list.c b/src/test/test-arphrd-list.c
|
||||
index f3989ad20..8f4f342fa 100644
|
||||
--- a/src/test/test-arphrd-list.c
|
||||
+++ b/src/test/test-arphrd-list.c
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "string-util.h"
|
||||
#include "util.h"
|
||||
|
||||
-static const struct arphrd_name* lookup_arphrd(register const char *str, register unsigned int len);
|
||||
+static const struct arphrd_name* lookup_arphrd(register const char *str, register GPERF_LEN_TYPE len);
|
||||
|
||||
#include "arphrd-from-name.h"
|
||||
#include "arphrd-list.h"
|
||||
diff --git a/src/timesync/timesyncd-conf.h b/src/timesync/timesyncd-conf.h
|
||||
index cba0724b1..0280697e9 100644
|
||||
--- a/src/timesync/timesyncd-conf.h
|
||||
+++ b/src/timesync/timesyncd-conf.h
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "conf-parser.h"
|
||||
#include "timesyncd-manager.h"
|
||||
|
||||
-const struct ConfigPerfItem* timesyncd_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* timesyncd_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
int manager_parse_server_string(Manager *m, ServerType type, const char *string);
|
||||
|
||||
diff --git a/src/udev/net/link-config.h b/src/udev/net/link-config.h
|
||||
index 91cc0357c..b0d8ceb76 100644
|
||||
--- a/src/udev/net/link-config.h
|
||||
+++ b/src/udev/net/link-config.h
|
||||
@@ -93,7 +93,7 @@ const char *mac_policy_to_string(MACPolicy p) _const_;
|
||||
MACPolicy mac_policy_from_string(const char *p) _pure_;
|
||||
|
||||
/* gperf lookup function */
|
||||
-const struct ConfigPerfItem* link_config_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* link_config_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
int config_parse_mac_policy(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
int config_parse_name_policy(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
diff --git a/src/udev/udev-builtin-keyboard.c b/src/udev/udev-builtin-keyboard.c
|
||||
index aa10beafb..09024116f 100644
|
||||
--- a/src/udev/udev-builtin-keyboard.c
|
||||
+++ b/src/udev/udev-builtin-keyboard.c
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "string-util.h"
|
||||
#include "udev.h"
|
||||
|
||||
-static const struct key *keyboard_lookup_key(const char *str, unsigned len);
|
||||
+static const struct key *keyboard_lookup_key(const char *str, GPERF_LEN_TYPE len);
|
||||
#include "keyboard-keys-from-name.h"
|
||||
|
||||
static int install_force_release(struct udev_device *dev, const unsigned *release, unsigned release_count) {
|
||||
--
|
||||
2.11.0
|
||||
|
@ -0,0 +1,302 @@
|
||||
From 016fb3b83b861cfe58694996076a9764dcb46475 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Gilbert <floppymaster@gmail.com>
|
||||
Date: Tue, 10 Jan 2017 02:39:05 -0500
|
||||
Subject: [PATCH 2/2] build-sys: add check for gperf lookup function signature
|
||||
(#5055)
|
||||
|
||||
gperf-3.1 generates lookup functions that take a size_t length
|
||||
parameter instead of unsigned int. Test for this at configure time.
|
||||
|
||||
Fixes: https://github.com/systemd/systemd/issues/5039
|
||||
---
|
||||
configure.ac | 22 ++++++++++++++++++++++
|
||||
src/basic/af-list.c | 2 +-
|
||||
src/basic/arphrd-list.c | 2 +-
|
||||
src/basic/cap-list.c | 2 +-
|
||||
src/basic/errno-list.c | 2 +-
|
||||
src/core/load-fragment.h | 2 +-
|
||||
src/journal/journald-server.h | 2 +-
|
||||
src/login/logind.h | 2 +-
|
||||
src/network/networkd-conf.h | 2 +-
|
||||
src/network/networkd-netdev.h | 2 +-
|
||||
src/network/networkd-network.h | 2 +-
|
||||
src/nspawn/nspawn-settings.h | 2 +-
|
||||
src/resolve/dns-type.c | 2 +-
|
||||
src/resolve/resolved-conf.h | 2 +-
|
||||
src/test/test-af-list.c | 2 +-
|
||||
src/test/test-arphrd-list.c | 2 +-
|
||||
src/timesync/timesyncd-conf.h | 2 +-
|
||||
src/udev/net/link-config.h | 2 +-
|
||||
src/udev/udev-builtin-keyboard.c | 2 +-
|
||||
19 files changed, 40 insertions(+), 18 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 1928e65bd..5c639e32d 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -258,6 +258,28 @@ AC_CHECK_SIZEOF(rlim_t,,[
|
||||
#include <sys/resource.h>
|
||||
])
|
||||
|
||||
+GPERF_TEST="$(echo foo,bar | ${GPERF} -L ANSI-C)"
|
||||
+
|
||||
+AC_COMPILE_IFELSE(
|
||||
+ [AC_LANG_PROGRAM([
|
||||
+ #include <string.h>
|
||||
+ const char * in_word_set(const char *, size_t);
|
||||
+ $GPERF_TEST]
|
||||
+ )],
|
||||
+ [GPERF_LEN_TYPE=size_t],
|
||||
+ [AC_COMPILE_IFELSE(
|
||||
+ [AC_LANG_PROGRAM([
|
||||
+ #include <string.h>
|
||||
+ const char * in_word_set(const char *, unsigned);
|
||||
+ $GPERF_TEST]
|
||||
+ )],
|
||||
+ [GPERF_LEN_TYPE=unsigned],
|
||||
+ [AC_MSG_ERROR([** unable to determine gperf len type])]
|
||||
+ )]
|
||||
+)
|
||||
+
|
||||
+AC_DEFINE_UNQUOTED([GPERF_LEN_TYPE], [$GPERF_LEN_TYPE], [gperf len type])
|
||||
+
|
||||
# ------------------------------------------------------------------------------
|
||||
# we use python to build the man page index
|
||||
have_python=no
|
||||
diff --git a/src/basic/af-list.c b/src/basic/af-list.c
|
||||
index 3fac9c508..4b291d177 100644
|
||||
--- a/src/basic/af-list.c
|
||||
+++ b/src/basic/af-list.c
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "af-list.h"
|
||||
#include "macro.h"
|
||||
|
||||
-static const struct af_name* lookup_af(register const char *str, register unsigned int len);
|
||||
+static const struct af_name* lookup_af(register const char *str, register GPERF_LEN_TYPE len);
|
||||
|
||||
#include "af-from-name.h"
|
||||
#include "af-to-name.h"
|
||||
diff --git a/src/basic/arphrd-list.c b/src/basic/arphrd-list.c
|
||||
index 6792d1ee3..2d598dc66 100644
|
||||
--- a/src/basic/arphrd-list.c
|
||||
+++ b/src/basic/arphrd-list.c
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "arphrd-list.h"
|
||||
#include "macro.h"
|
||||
|
||||
-static const struct arphrd_name* lookup_arphrd(register const char *str, register unsigned int len);
|
||||
+static const struct arphrd_name* lookup_arphrd(register const char *str, register GPERF_LEN_TYPE len);
|
||||
|
||||
#include "arphrd-from-name.h"
|
||||
#include "arphrd-to-name.h"
|
||||
diff --git a/src/basic/cap-list.c b/src/basic/cap-list.c
|
||||
index 3e773a06f..d68cc78d0 100644
|
||||
--- a/src/basic/cap-list.c
|
||||
+++ b/src/basic/cap-list.c
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "parse-util.h"
|
||||
#include "util.h"
|
||||
|
||||
-static const struct capability_name* lookup_capability(register const char *str, register unsigned int len);
|
||||
+static const struct capability_name* lookup_capability(register const char *str, register GPERF_LEN_TYPE len);
|
||||
|
||||
#include "cap-from-name.h"
|
||||
#include "cap-to-name.h"
|
||||
diff --git a/src/basic/errno-list.c b/src/basic/errno-list.c
|
||||
index 31b66bad5..c6a01eec8 100644
|
||||
--- a/src/basic/errno-list.c
|
||||
+++ b/src/basic/errno-list.c
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "macro.h"
|
||||
|
||||
static const struct errno_name* lookup_errno(register const char *str,
|
||||
- register unsigned int len);
|
||||
+ register GPERF_LEN_TYPE len);
|
||||
|
||||
#include "errno-from-name.h"
|
||||
#include "errno-to-name.h"
|
||||
diff --git a/src/core/load-fragment.h b/src/core/load-fragment.h
|
||||
index c05f205c3..ede6b1f73 100644
|
||||
--- a/src/core/load-fragment.h
|
||||
+++ b/src/core/load-fragment.h
|
||||
@@ -118,7 +118,7 @@ int config_parse_user_group(const char *unit, const char *filename, unsigned lin
|
||||
int config_parse_user_group_strv(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
|
||||
/* gperf prototypes */
|
||||
-const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
extern const char load_fragment_gperf_nulstr[];
|
||||
|
||||
typedef enum Disabled {
|
||||
diff --git a/src/journal/journald-server.h b/src/journal/journald-server.h
|
||||
index 99d91496b..d1520c45d 100644
|
||||
--- a/src/journal/journald-server.h
|
||||
+++ b/src/journal/journald-server.h
|
||||
@@ -179,7 +179,7 @@ void server_dispatch_message(Server *s, struct iovec *iovec, unsigned n, unsigne
|
||||
void server_driver_message(Server *s, sd_id128_t message_id, const char *format, ...) _printf_(3,0) _sentinel_;
|
||||
|
||||
/* gperf lookup function */
|
||||
-const struct ConfigPerfItem* journald_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* journald_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
int config_parse_storage(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
|
||||
diff --git a/src/login/logind.h b/src/login/logind.h
|
||||
index 086fa1eeb..7556ee2e4 100644
|
||||
--- a/src/login/logind.h
|
||||
+++ b/src/login/logind.h
|
||||
@@ -182,7 +182,7 @@ int manager_unit_is_active(Manager *manager, const char *unit);
|
||||
int manager_job_is_active(Manager *manager, const char *path);
|
||||
|
||||
/* gperf lookup function */
|
||||
-const struct ConfigPerfItem* logind_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* logind_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
int manager_set_lid_switch_ignore(Manager *m, usec_t until);
|
||||
|
||||
diff --git a/src/network/networkd-conf.h b/src/network/networkd-conf.h
|
||||
index c7bfb42a7..00ddb7672 100644
|
||||
--- a/src/network/networkd-conf.h
|
||||
+++ b/src/network/networkd-conf.h
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
int manager_parse_config_file(Manager *m);
|
||||
|
||||
-const struct ConfigPerfItem* networkd_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* networkd_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
int config_parse_duid_type(
|
||||
const char *unit,
|
||||
diff --git a/src/network/networkd-netdev.h b/src/network/networkd-netdev.h
|
||||
index 70ff947b9..37c743121 100644
|
||||
--- a/src/network/networkd-netdev.h
|
||||
+++ b/src/network/networkd-netdev.h
|
||||
@@ -175,7 +175,7 @@ NetDevKind netdev_kind_from_string(const char *d) _pure_;
|
||||
int config_parse_netdev_kind(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
|
||||
/* gperf */
|
||||
-const struct ConfigPerfItem* network_netdev_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* network_netdev_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
/* Macros which append INTERFACE= to the message */
|
||||
|
||||
diff --git a/src/network/networkd-network.h b/src/network/networkd-network.h
|
||||
index 42fc82d39..09c3b3a3a 100644
|
||||
--- a/src/network/networkd-network.h
|
||||
+++ b/src/network/networkd-network.h
|
||||
@@ -236,7 +236,7 @@ int config_parse_dhcp_route_table(const char *unit, const char *filename, unsign
|
||||
/* Legacy IPv4LL support */
|
||||
int config_parse_ipv4ll(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
|
||||
-const struct ConfigPerfItem* network_network_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* network_network_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
extern const sd_bus_vtable network_vtable[];
|
||||
|
||||
diff --git a/src/nspawn/nspawn-settings.h b/src/nspawn/nspawn-settings.h
|
||||
index 231e6d726..4ae34f8e2 100644
|
||||
--- a/src/nspawn/nspawn-settings.h
|
||||
+++ b/src/nspawn/nspawn-settings.h
|
||||
@@ -103,7 +103,7 @@ bool settings_private_network(Settings *s);
|
||||
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC(Settings*, settings_free);
|
||||
|
||||
-const struct ConfigPerfItem* nspawn_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* nspawn_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
int config_parse_capability(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
int config_parse_id128(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
diff --git a/src/resolve/dns-type.c b/src/resolve/dns-type.c
|
||||
index aaf5ed62c..d89ae28dc 100644
|
||||
--- a/src/resolve/dns-type.c
|
||||
+++ b/src/resolve/dns-type.c
|
||||
@@ -29,7 +29,7 @@ typedef const struct {
|
||||
} dns_type;
|
||||
|
||||
static const struct dns_type_name *
|
||||
-lookup_dns_type (register const char *str, register unsigned int len);
|
||||
+lookup_dns_type (register const char *str, register GPERF_LEN_TYPE len);
|
||||
|
||||
#include "dns_type-from-name.h"
|
||||
#include "dns_type-to-name.h"
|
||||
diff --git a/src/resolve/resolved-conf.h b/src/resolve/resolved-conf.h
|
||||
index fc425a36b..8184d6cad 100644
|
||||
--- a/src/resolve/resolved-conf.h
|
||||
+++ b/src/resolve/resolved-conf.h
|
||||
@@ -41,7 +41,7 @@ int manager_parse_search_domains_and_warn(Manager *m, const char *string);
|
||||
int manager_add_dns_server_by_string(Manager *m, DnsServerType type, const char *word);
|
||||
int manager_parse_dns_server_string_and_warn(Manager *m, DnsServerType type, const char *string);
|
||||
|
||||
-const struct ConfigPerfItem* resolved_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* resolved_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
int config_parse_dns_servers(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
int config_parse_search_domains(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
diff --git a/src/test/test-af-list.c b/src/test/test-af-list.c
|
||||
index aeaa0929b..e2479133d 100644
|
||||
--- a/src/test/test-af-list.c
|
||||
+++ b/src/test/test-af-list.c
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "string-util.h"
|
||||
#include "util.h"
|
||||
|
||||
-static const struct af_name* lookup_af(register const char *str, register unsigned int len);
|
||||
+static const struct af_name* lookup_af(register const char *str, register GPERF_LEN_TYPE len);
|
||||
|
||||
#include "af-from-name.h"
|
||||
#include "af-list.h"
|
||||
diff --git a/src/test/test-arphrd-list.c b/src/test/test-arphrd-list.c
|
||||
index f3989ad20..8f4f342fa 100644
|
||||
--- a/src/test/test-arphrd-list.c
|
||||
+++ b/src/test/test-arphrd-list.c
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "string-util.h"
|
||||
#include "util.h"
|
||||
|
||||
-static const struct arphrd_name* lookup_arphrd(register const char *str, register unsigned int len);
|
||||
+static const struct arphrd_name* lookup_arphrd(register const char *str, register GPERF_LEN_TYPE len);
|
||||
|
||||
#include "arphrd-from-name.h"
|
||||
#include "arphrd-list.h"
|
||||
diff --git a/src/timesync/timesyncd-conf.h b/src/timesync/timesyncd-conf.h
|
||||
index cba0724b1..0280697e9 100644
|
||||
--- a/src/timesync/timesyncd-conf.h
|
||||
+++ b/src/timesync/timesyncd-conf.h
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "conf-parser.h"
|
||||
#include "timesyncd-manager.h"
|
||||
|
||||
-const struct ConfigPerfItem* timesyncd_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* timesyncd_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
int manager_parse_server_string(Manager *m, ServerType type, const char *string);
|
||||
|
||||
diff --git a/src/udev/net/link-config.h b/src/udev/net/link-config.h
|
||||
index 91cc0357c..b0d8ceb76 100644
|
||||
--- a/src/udev/net/link-config.h
|
||||
+++ b/src/udev/net/link-config.h
|
||||
@@ -93,7 +93,7 @@ const char *mac_policy_to_string(MACPolicy p) _const_;
|
||||
MACPolicy mac_policy_from_string(const char *p) _pure_;
|
||||
|
||||
/* gperf lookup function */
|
||||
-const struct ConfigPerfItem* link_config_gperf_lookup(const char *key, unsigned length);
|
||||
+const struct ConfigPerfItem* link_config_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
||||
|
||||
int config_parse_mac_policy(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
int config_parse_name_policy(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
||||
diff --git a/src/udev/udev-builtin-keyboard.c b/src/udev/udev-builtin-keyboard.c
|
||||
index aa10beafb..09024116f 100644
|
||||
--- a/src/udev/udev-builtin-keyboard.c
|
||||
+++ b/src/udev/udev-builtin-keyboard.c
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "string-util.h"
|
||||
#include "udev.h"
|
||||
|
||||
-static const struct key *keyboard_lookup_key(const char *str, unsigned len);
|
||||
+static const struct key *keyboard_lookup_key(const char *str, GPERF_LEN_TYPE len);
|
||||
#include "keyboard-keys-from-name.h"
|
||||
|
||||
static int install_force_release(struct udev_device *dev, const unsigned *release, unsigned release_count) {
|
||||
--
|
||||
2.11.0
|
||||
|
@ -0,0 +1 @@
|
||||
DIST cygwin-crypt-1.4.tar.bz2 4446 SHA256 26767faae5dab6a8e4103df0d41cd2b07cda97c48a31dfab73949b4df198818b SHA512 1ecc4256730f13161a651cfdf71b27c1042e6f56fb859943426c371d4b37b8b2bd6ea768f86e45f7b8cf3478e97ff9578b79e5c37178c8794ff9b87799f2cab3 WHIRLPOOL def38d196a7cdbcc2fcb307b5aaf45e76a703fb4557475f157f00eb63ca693e02f126f101552a424abb3a19bb8e342c777747b443295551fac637716ea5482a3
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Cygwin Encryption/Decryption utility and library"
|
||||
HOMEPAGE="https://sourceware.org/cygwin-apps/"
|
||||
# Upstream provides the git repo only, so we do:
|
||||
# git clone git://cygwin.com/git/cygwin-apps/crypt.git
|
||||
# cd crypt
|
||||
# git archive -o cygwin-crypt-${PV}.tar --prefix=cygwin-crypt-${PV}/ crypt-${PV}-release
|
||||
# bzip2 cygwin-crypt-${PV}.tar
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x64-cygwin ~x86-cygwin"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
mymake() {
|
||||
emake \
|
||||
CC="$(tc-getCC)" \
|
||||
AR="$(tc-getAR)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
prefix="${EPREFIX}/usr" \
|
||||
docdir="${EPREFIX}/share/doc/${P}" \
|
||||
"$@"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
mymake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
mymake install DESTDIR="${D}"
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>haubi@gentoo.org</email>
|
||||
<name>Michael Haubenwallner</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
This packages provides a library which exports the functions crypt(3),
|
||||
encrypt(3), and setkey(3). The created passwords are 56 bit DES
|
||||
encrypted and are 100% identical to those created by the Linux crypt(3).
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
@ -1,117 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
AUTOTOOLS_AUTO_DEPEND="no"
|
||||
|
||||
inherit autotools toolchain-funcs multilib multilib-minimal
|
||||
|
||||
DESCRIPTION="Standard (de)compression library"
|
||||
HOMEPAGE="http://www.zlib.net/"
|
||||
SRC_URI="http://zlib.net/${P}.tar.gz
|
||||
http://www.gzip.org/zlib/${P}.tar.gz
|
||||
http://www.zlib.net/current/beta/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="minizip static-libs"
|
||||
|
||||
DEPEND="minizip? ( ${AUTOTOOLS_DEPEND} )"
|
||||
RDEPEND="abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20130224
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)
|
||||
!<dev-libs/libxml2-2.7.7" #309623
|
||||
|
||||
src_prepare() {
|
||||
if use minizip ; then
|
||||
cd contrib/minizip || die
|
||||
eautoreconf
|
||||
fi
|
||||
}
|
||||
|
||||
echoit() { echo "$@"; "$@"; }
|
||||
|
||||
multilib_src_configure() {
|
||||
case ${CHOST} in
|
||||
*-mingw*|mingw*)
|
||||
;;
|
||||
*) # not an autoconf script, so can't use econf
|
||||
local uname=$("${EPREFIX}"/usr/share/gnuconfig/config.sub "${CHOST}" | cut -d- -f3) #347167
|
||||
echoit "${S}"/configure \
|
||||
--shared \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
${uname:+--uname=${uname}} \
|
||||
|| die
|
||||
;;
|
||||
esac
|
||||
|
||||
if use minizip ; then
|
||||
local minizipdir="contrib/minizip"
|
||||
mkdir -p "${BUILD_DIR}/${minizipdir}" || die
|
||||
cd ${minizipdir} || die
|
||||
ECONF_SOURCE="${S}/${minizipdir}" \
|
||||
econf $(use_enable static-libs static)
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
case ${CHOST} in
|
||||
*-mingw*|mingw*)
|
||||
emake -f win32/Makefile.gcc STRIP=true PREFIX=${CHOST}-
|
||||
sed \
|
||||
-e 's|@prefix@|${EPREFIX}/usr|g' \
|
||||
-e 's|@exec_prefix@|${prefix}|g' \
|
||||
-e 's|@libdir@|${exec_prefix}/'$(get_libdir)'|g' \
|
||||
-e 's|@sharedlibdir@|${exec_prefix}/'$(get_libdir)'|g' \
|
||||
-e 's|@includedir@|${prefix}/include|g' \
|
||||
-e 's|@VERSION@|'${PV}'|g' \
|
||||
zlib.pc.in > zlib.pc || die
|
||||
;;
|
||||
*)
|
||||
emake
|
||||
;;
|
||||
esac
|
||||
use minizip && emake -C contrib/minizip
|
||||
}
|
||||
|
||||
sed_macros() {
|
||||
# clean up namespace a little #383179
|
||||
# we do it here so we only have to tweak 2 files
|
||||
sed -i -r 's:\<(O[FN])\>:_Z_\1:g' "$@" || die
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
case ${CHOST} in
|
||||
*-mingw*|mingw*)
|
||||
emake -f win32/Makefile.gcc install \
|
||||
BINARY_PATH="${ED}/usr/bin" \
|
||||
LIBRARY_PATH="${ED}/usr/$(get_libdir)" \
|
||||
INCLUDE_PATH="${ED}/usr/include" \
|
||||
SHARED_MODE=1
|
||||
insinto /usr/share/pkgconfig
|
||||
doins zlib.pc
|
||||
;;
|
||||
|
||||
*)
|
||||
emake install DESTDIR="${D}" LDCONFIG=:
|
||||
gen_usr_ldscript -a z
|
||||
;;
|
||||
esac
|
||||
sed_macros "${ED}"/usr/include/*.h
|
||||
|
||||
if use minizip ; then
|
||||
emake -C contrib/minizip install DESTDIR="${D}"
|
||||
sed_macros "${ED}"/usr/include/minizip/*.h
|
||||
fi
|
||||
|
||||
use static-libs || rm -f "${ED}"/usr/$(get_libdir)/lib{z,minizip}.{a,la} #419645
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
dodoc FAQ README ChangeLog doc/*.txt
|
||||
use minizip && dodoc contrib/minizip/*.txt
|
||||
}
|
@ -1,116 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
AUTOTOOLS_AUTO_DEPEND="no"
|
||||
|
||||
inherit autotools toolchain-funcs multilib multilib-minimal
|
||||
|
||||
DESCRIPTION="Standard (de)compression library"
|
||||
HOMEPAGE="http://www.zlib.net/"
|
||||
SRC_URI="http://zlib.net/${P}.tar.gz
|
||||
http://www.gzip.org/zlib/${P}.tar.gz
|
||||
http://www.zlib.net/current/beta/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="minizip static-libs"
|
||||
|
||||
DEPEND="minizip? ( ${AUTOTOOLS_DEPEND} )"
|
||||
RDEPEND="abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20130224
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)
|
||||
!<dev-libs/libxml2-2.7.7" #309623
|
||||
|
||||
src_prepare() {
|
||||
if use minizip ; then
|
||||
cd contrib/minizip || die
|
||||
eautoreconf
|
||||
fi
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
echoit() { echo "$@"; "$@"; }
|
||||
|
||||
multilib_src_configure() {
|
||||
case ${CHOST} in
|
||||
*-mingw*|mingw*)
|
||||
;;
|
||||
*) # not an autoconf script, so can't use econf
|
||||
local uname=$("${EPREFIX}"/usr/share/gnuconfig/config.sub "${CHOST}" | cut -d- -f3) #347167
|
||||
echoit ./configure \
|
||||
--shared \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
${uname:+--uname=${uname}} \
|
||||
|| die
|
||||
;;
|
||||
esac
|
||||
|
||||
if use minizip ; then
|
||||
cd contrib/minizip || die
|
||||
econf $(use_enable static-libs static)
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
case ${CHOST} in
|
||||
*-mingw*|mingw*)
|
||||
emake -f win32/Makefile.gcc STRIP=true PREFIX=${CHOST}-
|
||||
sed \
|
||||
-e 's|@prefix@|${EPREFIX}/usr|g' \
|
||||
-e 's|@exec_prefix@|${prefix}|g' \
|
||||
-e 's|@libdir@|${exec_prefix}/'$(get_libdir)'|g' \
|
||||
-e 's|@sharedlibdir@|${exec_prefix}/'$(get_libdir)'|g' \
|
||||
-e 's|@includedir@|${prefix}/include|g' \
|
||||
-e 's|@VERSION@|'${PV}'|g' \
|
||||
zlib.pc.in > zlib.pc || die
|
||||
;;
|
||||
*)
|
||||
emake
|
||||
;;
|
||||
esac
|
||||
use minizip && emake -C contrib/minizip
|
||||
}
|
||||
|
||||
sed_macros() {
|
||||
# clean up namespace a little #383179
|
||||
# we do it here so we only have to tweak 2 files
|
||||
sed -i -r 's:\<(O[FN])\>:_Z_\1:g' "$@" || die
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
case ${CHOST} in
|
||||
*-mingw*|mingw*)
|
||||
emake -f win32/Makefile.gcc install \
|
||||
BINARY_PATH="${ED}/usr/bin" \
|
||||
LIBRARY_PATH="${ED}/usr/$(get_libdir)" \
|
||||
INCLUDE_PATH="${ED}/usr/include" \
|
||||
SHARED_MODE=1
|
||||
insinto /usr/share/pkgconfig
|
||||
doins zlib.pc
|
||||
;;
|
||||
|
||||
*)
|
||||
emake install DESTDIR="${D}" LDCONFIG=:
|
||||
gen_usr_ldscript -a z
|
||||
;;
|
||||
esac
|
||||
sed_macros "${ED}"/usr/include/*.h
|
||||
|
||||
if use minizip ; then
|
||||
emake -C contrib/minizip install DESTDIR="${D}"
|
||||
sed_macros "${ED}"/usr/include/minizip/*.h
|
||||
fi
|
||||
|
||||
use static-libs || rm -f "${ED}"/usr/$(get_libdir)/lib{z,minizip}.{a,la} #419645
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
dodoc FAQ README ChangeLog doc/*.txt
|
||||
use minizip && dodoc contrib/minizip/*.txt
|
||||
}
|
Loading…
Reference in new issue