parent
3dd828b11b
commit
d75619daae
@ -1,2 +1 @@
|
|||||||
DIST ncompress-4.2.4.3.tar.gz 32473 SHA256 d410210742ee85470135b1d49dad17086d4e2565b3914a83dc6e0b1e588f84f8 SHA512 261156061852b79f2f6bee3ffe8423dcd540e038f1dfdb9f2dc16d1de691982cfef8a196d69dad4507ed525d787b6f1d3fdef2827f29935bdbb75a5f30f89963 WHIRLPOOL 8926e93ebce0a85e2a4f71c1d0f848a4e616fb645c5021a1119d12af74ad0c89addf5dfb499067fb307e6c52ae5a3bc7ebb11886236f1d4b656890502c614812
|
|
||||||
DIST ncompress-4.2.4.4.tar.gz 32571 SHA256 b00ba28d3f332b38aa75478a15c1b789957aa6c02d6453471f452c0ec3e6517a SHA512 abc7bd96daaab0b83d5ca18ef4b8b4c6528632653a0882a4e0eda4fb3f99e23aae60ee30193e79104ea2ac8fb5816ac3b0bdebb08322db6bde6b8ef1639527be WHIRLPOOL 8050829ca7010f9a8cd777e9d628c2d1f12205325db3aafb4d11eb9efb9839fa026366803306907fdbfc9fbfc29693c47317535ede220c784fc934fbe121c42f
|
DIST ncompress-4.2.4.4.tar.gz 32571 SHA256 b00ba28d3f332b38aa75478a15c1b789957aa6c02d6453471f452c0ec3e6517a SHA512 abc7bd96daaab0b83d5ca18ef4b8b4c6528632653a0882a4e0eda4fb3f99e23aae60ee30193e79104ea2ac8fb5816ac3b0bdebb08322db6bde6b8ef1639527be WHIRLPOOL 8050829ca7010f9a8cd777e9d628c2d1f12205325db3aafb4d11eb9efb9839fa026366803306907fdbfc9fbfc29693c47317535ede220c784fc934fbe121c42f
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
inherit toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="Another uncompressor for compatibility"
|
|
||||||
HOMEPAGE="https://github.com/vapier/ncompress"
|
|
||||||
SRC_URI="mirror://sourceforge/ncompress/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="public-domain"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
tc-export CC
|
|
||||||
emake || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin compress || die
|
|
||||||
dosym compress /usr/bin/uncompress
|
|
||||||
doman compress.1
|
|
||||||
echo '.so compress.1' > "${D}"/usr/share/man/man1/uncompress.1
|
|
||||||
dodoc Acknowleds Changes LZW.INFO README
|
|
||||||
}
|
|
@ -1,2 +1 @@
|
|||||||
DIST unmakeself-1.0.tar.bz2 3015 SHA256 076be9222830d36b4ce32ec1b0349284380dd1c35297332db51d8d994cfeee7e SHA512 d9722c6de549d30a9901174515e100ab2dfeeed2900af52031adc8d8a265e62414aee7b005068e6d2c2d9b24766b5e220b84deee34f3e21abadcd977814b1c02 WHIRLPOOL e1a2e5b1b548ad65e84b6f91f8f456d5f6220d4ccb8818f223998db3d61ae633f54f8b01b8b7da6af64623e36e0058e80994b75d5e67947b3af0b7a2052a34ee
|
|
||||||
DIST unmakeself-1.1.tar.gz 3635 SHA256 b89e3f8406050050c04d2f4dced4e0bc6d5e2e7062ab5c640357a11e4a6ec48e SHA512 3e8a05a907b8807080208300f6c20577587a0e87000c6746ba457c276e4dff37c8d61227bd1db37e60ac20d9532290c4110a1204c8389a8a1e97a121b68c682b WHIRLPOOL 5cda3534bf5db9d3624d501d9a41cb67581a3c6911a8c44f70584cdfc8d4040d7195000efbdbdf5d0337b24d5082b0c1908820cfc26383c72cfa606a3c7ce209
|
DIST unmakeself-1.1.tar.gz 3635 SHA256 b89e3f8406050050c04d2f4dced4e0bc6d5e2e7062ab5c640357a11e4a6ec48e SHA512 3e8a05a907b8807080208300f6c20577587a0e87000c6746ba457c276e4dff37c8d61227bd1db37e60ac20d9532290c4110a1204c8389a8a1e97a121b68c682b WHIRLPOOL 5cda3534bf5db9d3624d501d9a41cb67581a3c6911a8c44f70584cdfc8d4040d7195000efbdbdf5d0337b24d5082b0c1908820cfc26383c72cfa606a3c7ce209
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
# Copyright 1999-2008 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
inherit toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="extracting Makeself archives without having to run the self-extracting shell script"
|
|
||||||
HOMEPAGE="http://www.freshports.org/archivers/unmakeself"
|
|
||||||
SRC_URI="http://gentooexperimental.org/~genstef/dist/${P}.tar.bz2"
|
|
||||||
#http://cvsup.pt.freebsd.org/cgi-bin/cvsweb/cvsweb.cgi/~checkout~/root/ports/ports/archivers/unmakeself/files/unmakeself.c
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="app-arch/bzip2
|
|
||||||
sys-libs/zlib
|
|
||||||
app-arch/libarchive"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
$(tc-getCC) ${CFLAGS} ${LDFLAGS} unmakeself.c -larchive -lbz2 -lz -o unmakeself
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin unmakeself
|
|
||||||
}
|
|
@ -1,70 +0,0 @@
|
|||||||
# Copyright 1999-2010 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
inherit eutils toolchain-funcs flag-o-matic
|
|
||||||
|
|
||||||
MY_P="${PN}${PV/.}"
|
|
||||||
|
|
||||||
DESCRIPTION="unzipper for pkzip-compressed files"
|
|
||||||
HOMEPAGE="http://www.info-zip.org/"
|
|
||||||
SRC_URI="mirror://sourceforge/infozip/${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="Info-ZIP"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm hppa ~ia64 m68k ppc ppc64 s390 sh ~sparc x86"
|
|
||||||
IUSE="bzip2 unicode"
|
|
||||||
|
|
||||||
DEPEND="bzip2? ( app-arch/bzip2 )"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
cd "${S}"
|
|
||||||
epatch "${FILESDIR}"/${P}-no-exec-stack.patch
|
|
||||||
sed -i \
|
|
||||||
-e '/^CFLAGS/d' \
|
|
||||||
-e '/CFLAGS/s:-O[0-9]\?:$(CFLAGS) $(CPPFLAGS):' \
|
|
||||||
-e '/^STRIP/s:=.*:=true:' \
|
|
||||||
-e "s:\<CC=gcc\>:CC=\"$(tc-getCC)\":" \
|
|
||||||
-e "s:\<LD=gcc\>:LD=\"$(tc-getCC)\":" \
|
|
||||||
-e "s:\<AS=gcc\>:AS=\"$(tc-getCC)\":" \
|
|
||||||
-e 's:LF2 = -s:LF2 = :' \
|
|
||||||
-e 's:LF = :LF = $(LDFLAGS) :' \
|
|
||||||
-e 's:SL = :SL = $(LDFLAGS) :' \
|
|
||||||
-e 's:FL = :FL = $(LDFLAGS) :' \
|
|
||||||
-e "/^#L_BZ2/s:^$(use bzip2 && echo .)::" \
|
|
||||||
unix/Makefile \
|
|
||||||
|| die "sed unix/Makefile failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local TARGET
|
|
||||||
case ${CHOST} in
|
|
||||||
i?86*-*linux*) TARGET=linux_asm ;;
|
|
||||||
*linux*) TARGET=linux_noasm ;;
|
|
||||||
i?86*-*bsd* | \
|
|
||||||
i?86*-dragonfly*) TARGET=freebsd ;; # mislabelled bsd with x86 asm
|
|
||||||
*bsd* | *dragonfly*) TARGET=bsd ;;
|
|
||||||
*-darwin*) TARGET=macosx ;;
|
|
||||||
*) die "Unknown target, you suck" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
[[ ${CHOST} == *linux* ]] && append-cppflags -DNO_LCHMOD
|
|
||||||
use bzip2 && append-cppflags -DUSE_BZIP2
|
|
||||||
use unicode && append-cppflags -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE
|
|
||||||
append-cppflags -DLARGE_FILE_SUPPORT #281473
|
|
||||||
|
|
||||||
emake \
|
|
||||||
-f unix/Makefile \
|
|
||||||
${TARGET} || die "emake failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin unzip funzip unzipsfx unix/zipgrep || die "dobin failed"
|
|
||||||
dosym unzip /usr/bin/zipinfo || die
|
|
||||||
doman man/*.1
|
|
||||||
dodoc BUGS History* README ToDo WHERE
|
|
||||||
}
|
|
@ -1,71 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="2"
|
|
||||||
inherit eutils toolchain-funcs flag-o-matic
|
|
||||||
|
|
||||||
MY_P="${PN}${PV/.}"
|
|
||||||
|
|
||||||
DESCRIPTION="unzipper for pkzip-compressed files"
|
|
||||||
HOMEPAGE="http://www.info-zip.org/"
|
|
||||||
SRC_URI="mirror://sourceforge/infozip/${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="Info-ZIP"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
|
||||||
IUSE="bzip2 natspec unicode"
|
|
||||||
|
|
||||||
DEPEND="bzip2? ( app-arch/bzip2 )
|
|
||||||
natspec? ( dev-libs/libnatspec )"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${P}-no-exec-stack.patch
|
|
||||||
use natspec && epatch "${FILESDIR}/${PN}-6.0-natspec.patch" #275244
|
|
||||||
sed -i \
|
|
||||||
-e '/^CFLAGS/d' \
|
|
||||||
-e '/CFLAGS/s:-O[0-9]\?:$(CFLAGS) $(CPPFLAGS):' \
|
|
||||||
-e '/^STRIP/s:=.*:=true:' \
|
|
||||||
-e "s:\<CC=gcc\>:CC=\"$(tc-getCC)\":" \
|
|
||||||
-e "s:\<LD=gcc\>:LD=\"$(tc-getCC)\":" \
|
|
||||||
-e "s:\<AS=gcc\>:AS=\"$(tc-getCC)\":" \
|
|
||||||
-e 's:LF2 = -s:LF2 = :' \
|
|
||||||
-e 's:LF = :LF = $(LDFLAGS) :' \
|
|
||||||
-e 's:SL = :SL = $(LDFLAGS) :' \
|
|
||||||
-e 's:FL = :FL = $(LDFLAGS) :' \
|
|
||||||
-e "/^#L_BZ2/s:^$(use bzip2 && echo .)::" \
|
|
||||||
unix/Makefile \
|
|
||||||
|| die "sed unix/Makefile failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local TARGET
|
|
||||||
case ${CHOST} in
|
|
||||||
i?86*-*linux*) TARGET=linux_asm ;;
|
|
||||||
*linux*) TARGET=linux_noasm ;;
|
|
||||||
i?86*-*bsd* | \
|
|
||||||
i?86*-dragonfly*) TARGET=freebsd ;; # mislabelled bsd with x86 asm
|
|
||||||
*bsd* | *dragonfly*) TARGET=bsd ;;
|
|
||||||
*-darwin*) TARGET=macosx ;;
|
|
||||||
*) die "Unknown target, you suck" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
[[ ${CHOST} == *linux* ]] && append-cppflags -DNO_LCHMOD
|
|
||||||
use bzip2 && append-cppflags -DUSE_BZIP2
|
|
||||||
use unicode && append-cppflags -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE
|
|
||||||
append-cppflags -DLARGE_FILE_SUPPORT #281473
|
|
||||||
|
|
||||||
emake \
|
|
||||||
-f unix/Makefile \
|
|
||||||
${TARGET} || die "emake failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin unzip funzip unzipsfx unix/zipgrep || die "dobin failed"
|
|
||||||
dosym unzip /usr/bin/zipinfo || die
|
|
||||||
doman man/*.1
|
|
||||||
dodoc BUGS History* README ToDo WHERE
|
|
||||||
}
|
|
@ -1 +1 @@
|
|||||||
DIST rdumpfs-20131002.tar.gz 2373 SHA256 bb02e119e2248ae95eecfbade77370093a544a24b5078132856c70da6d6c3a1d SHA512 29aa4a3ac9a3d22cff24a84fb1db86aa53d78514bb16f25e70f801a83fce9eb9a523929170eaa9562aa76bce682eb52e400c7468220e0ec876978032bf174969 WHIRLPOOL 24a2556514804d11f84c97617882da2740926dc4c1d1970657635df258bf189f0fb81ce48bd953743fcf2e24b0b3213b914c65d0864506efbf723b00569693c2
|
DIST rdumpfs-0.1.tar.gz 3054 SHA256 c8c590eae705aedbc386d78e9cd040fb611c39b6948fb218c8559d1fb3147c26 SHA512 54add203d09bff1190c3bd292bd5fde3b81f4b6810f4dc8d1be18f9abfb5334bcbca1aebc00795f4bdce861f356a7b9e5d809cd80475a3c50a21752380570853 WHIRLPOOL e9fb8749d7b2a0c39923828c9dec1eaca67a1e2ee834b392283795cd685c9f72fefc1664bc57680efe12e745204779d85e634c883a02592e26ddbf7fd5dcdcfd
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
DIST ltp-20130503.tar.bz2 3819156 SHA256 afdb1479e73d4da7f0d4d5d3fe1570bc5fc96e3317d4a5c10c59c046d3dfa4a0 SHA512 efe7c3e5ffba51b03f01ee66d940d400f4f007dcc42ca45f9597fc1a325950ee14f663762280d63004080c717f16f39bc0d53b5905290470952ef5af3725f089 WHIRLPOOL 924cdc730e85d66d8d7655461e0a59a563b7a9039133b4e991a115d20453f46dda158ac82f474fc8d9ea720a4d03fc67d4d55c231c11d35dc3bfdc5b10a7258b
|
DIST ltp-20130503.tar.gz 4698775 SHA256 34519b6365cae24f8d8bb8a4ec0955d83999b1a4685d87305191cf2be7a2b5a1 SHA512 36ad9f808b41f6f4ee983cd697415ab8883e569268759c249eb680e8aab4147a1425407769af2b3643c117889b8b5da385cbabffe55d2fe04c00e46ef6f71a0e WHIRLPOOL a69888c7e887ba1fbb60811cb5e7b41a7444e0b367fe72fd4ec1c0e6d8f2931577edeac40d8008dae8d8a547cbff013f14dda6540da03f8017cc27ee528c9a66
|
||||||
DIST ltp-20140828.tar.bz2 3914567 SHA256 046069523f04d8be8689c9e3f7f475e11d21c3d97506189a4a5e23c80b77492a SHA512 4963184624c8d6686dd9bda171bb2917a16b782f575e73ac18641ee66070b72f34c1e222936c52e529038854bd8d67d05b286d5f1319fd73098823ddbfe29545 WHIRLPOOL 32ec59ccd3cea3e4cfe8f73c4eb2bf8f8a86fd2fd0f82df8afabe8b62fd8e92fc9d3dbde52875d2be241542a6e3608ea5507d5f6495b11c92bcda475f6a69302
|
DIST ltp-20140828.tar.gz 4690629 SHA256 95febd3db2c33d74b180c532f8bf9a9bac3ce27e2603aee28cad15f85834cde9 SHA512 e685f109d0e74bfd2bcd7604c744872967d3a6d34d5fa8ee87867501da1162b27777f0c3c099836d9d14b2eab319bad6da87cb2e3fabec478cf95b692b4e2fe8 WHIRLPOOL 5cff0a5ef887135f8b1baa4f10df54f5422a22f71a5d417b1c25f0c2b8c9e40d238d743216e2128b6f30ab97b1949df168320198e991a20c455e3c669efb626b
|
||||||
DIST ltp-20150119.tar.bz2 3920104 SHA256 e0433cb184c57bf4e5493bfbceef3e9ee51a1a9778990fe4e74e62b17b94232f SHA512 ab7a76d700279895442a35507c58d2d1d2e727f3f7dfec067109a8f04bd23d18d0466c20bb1a37af8691bab9260353431e642b493a218b4317357ba8f6aace3a WHIRLPOOL 69c3e79ca8ceb68197ac8905fa7251a31207465d3992c997b4feb4bbd175657b71f667960aed5658aa5e477edf8388ded34a75476d827fb0fa337f4210975f54
|
DIST ltp-20150119.tar.gz 4695541 SHA256 6cba3476e5bef74d21979c45d0629632bfaeaafc4dbbebccd187ba7b6b9dca52 SHA512 5e5624738da08a3f5f5b08d821a73666d6ef9957b62ff72bd12aba0d021c304dae5652956a6af60aa593256cadd98f061759d5a65045ff5b1864956ea5ad5186 WHIRLPOOL 0417bf1c41347aca68b9e9fb3b203c209f36112ecdf7f020d32060ac637949b1cf40e437f976352ebca1d4566394abe2149b14ad946e1fa2f37cf68397c3e610
|
||||||
DIST ltp-20150420.tar.bz2 3893685 SHA256 483a6896b526a2972bc76598c8f1c17f7bc875df2dcb239ad5433a6d5977b79d SHA512 ffdf86a0bd63bb08f59c09e41ccf9b5aa2ac1d407fe39fa37dc3874b9cd60fcea9bf8bbe9481bdf1be4f08973e36b35027463db7da686abaf6233c82865f8215 WHIRLPOOL dd78a04c9084894277f56461992fbe118f20fa8b93b0d5452962eb803d71c611c90f3de2187bdc4fbe80b1078b9602f3e8044e0e6312672020c35a998f492edf
|
DIST ltp-20150420.tar.gz 4673384 SHA256 65a6ed64d55edc77f0ff690e269dc3ef32290d4499ccbb8f24b2cf59dd974408 SHA512 a5d259cf2a984eae1a0e6b7be538f06eb6021e0f961bb7683aaafc1bad347e73690fa5d6ae39beb6c92c9ea69e4160841d0e46ac49ccfa77053f1c7a0a854099 WHIRLPOOL 7d0b26c8a1f99cea1a609545671d6160278cf81c4654fff7dba84688e37b6f6349e3a2b90cb44ef7abf5c7cfad2187543431df23dd5833917f8b446db8425aec
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
diff -ru nano-1.3.12/src/rcfile.c nano-1.3.12-fix2/src/rcfile.c
|
|
||||||
--- nano-1.3.12/src/rcfile.c 2006-06-07 22:50:56.000000000 -0400
|
|
||||||
+++ nano-1.3.12-fix2/src/rcfile.c 2006-07-18 19:22:30.000000000 -0400
|
|
||||||
@@ -834,9 +834,11 @@
|
|
||||||
rcfile_error(N_("Unknown flag \"%s\""), option);
|
|
||||||
}
|
|
||||||
|
|
||||||
+#ifdef ENABLE_COLOR
|
|
||||||
if (endsyntax != NULL && endcolor == NULL)
|
|
||||||
rcfile_error(N_("Syntax \"%s\" has no color commands"),
|
|
||||||
endsyntax->desc);
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
free(buf);
|
|
||||||
fclose(rcstream);
|
|
@ -1,199 +0,0 @@
|
|||||||
diff -ur nano-1.3.12/src/files.c nano-1.3.12-fixed/src/files.c
|
|
||||||
--- nano-1.3.12/src/files.c 2006-06-14 09:19:43.000000000 -0400
|
|
||||||
+++ nano-1.3.12-fixed/src/files.c 2006-07-05 11:44:17.000000000 -0400
|
|
||||||
@@ -902,21 +902,29 @@
|
|
||||||
* able to go there. */
|
|
||||||
char *get_full_path(const char *origpath)
|
|
||||||
{
|
|
||||||
- char *d_here, *d_there = NULL;
|
|
||||||
+ struct stat fileinfo;
|
|
||||||
+ char *d_here, *d_there, *d_there_file = NULL;
|
|
||||||
+ const char *last_slash;
|
|
||||||
+ bool path_only;
|
|
||||||
|
|
||||||
if (origpath == NULL)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
- /* Get the current directory. */
|
|
||||||
+ /* Get the current directory. If it doesn't exist, back up and try
|
|
||||||
+ * again until we get a directory that does, and use that as the
|
|
||||||
+ * current directory. */
|
|
||||||
d_here = charalloc(PATH_MAX + 1);
|
|
||||||
d_here = getcwd(d_here, PATH_MAX + 1);
|
|
||||||
|
|
||||||
- if (d_here != NULL) {
|
|
||||||
- const char *last_slash;
|
|
||||||
- char *d_there_file = NULL;
|
|
||||||
- bool path_only;
|
|
||||||
- struct stat fileinfo;
|
|
||||||
+ while (d_here == NULL) {
|
|
||||||
+ if (chdir("..") == -1)
|
|
||||||
+ break;
|
|
||||||
+
|
|
||||||
+ d_here = getcwd(d_here, PATH_MAX + 1);
|
|
||||||
+ }
|
|
||||||
|
|
||||||
+ /* If we succeeded, canonicalize it in d_here. */
|
|
||||||
+ if (d_here != NULL) {
|
|
||||||
align(&d_here);
|
|
||||||
|
|
||||||
/* If the current directory isn't "/", tack a slash onto the end
|
|
||||||
@@ -925,89 +933,91 @@
|
|
||||||
d_here = charealloc(d_here, strlen(d_here) + 2);
|
|
||||||
strcat(d_here, "/");
|
|
||||||
}
|
|
||||||
+ /* Otherwise, set d_here to "". */
|
|
||||||
+ } else
|
|
||||||
+ d_here = mallocstrcpy(NULL, "");
|
|
||||||
|
|
||||||
- d_there = real_dir_from_tilde(origpath);
|
|
||||||
+ d_there = real_dir_from_tilde(origpath);
|
|
||||||
|
|
||||||
- assert(d_there != NULL);
|
|
||||||
+ assert(d_there != NULL);
|
|
||||||
|
|
||||||
- /* Stat d_there. If stat() fails, assume that d_there refers to
|
|
||||||
- * a new file that hasn't been saved to disk yet. Set path_only
|
|
||||||
- * to TRUE if d_there refers to a directory, and FALSE if
|
|
||||||
- * d_there refers to a file. */
|
|
||||||
- path_only = !stat(d_there, &fileinfo) &&
|
|
||||||
- S_ISDIR(fileinfo.st_mode);
|
|
||||||
-
|
|
||||||
- /* If path_only is TRUE, make sure d_there ends in a slash. */
|
|
||||||
- if (path_only) {
|
|
||||||
- size_t d_there_len = strlen(d_there);
|
|
||||||
-
|
|
||||||
- if (d_there[d_there_len - 1] != '/') {
|
|
||||||
- d_there = charealloc(d_there, d_there_len + 2);
|
|
||||||
- strcat(d_there, "/");
|
|
||||||
- }
|
|
||||||
- }
|
|
||||||
+ /* If stat()ing d_there fails, assume that d_there refers to a new
|
|
||||||
+ * file that hasn't been saved to disk yet. Set path_only to TRUE
|
|
||||||
+ * if d_there refers to a directory, and FALSE otherwise. */
|
|
||||||
+ path_only = stat(d_there, &fileinfo) == 0 &&
|
|
||||||
+ S_ISDIR(fileinfo.st_mode);
|
|
||||||
|
|
||||||
- /* Search for the last slash in d_there. */
|
|
||||||
- last_slash = strrchr(d_there, '/');
|
|
||||||
+ /* If path_only is TRUE, make sure d_there ends in a slash. */
|
|
||||||
+ if (path_only) {
|
|
||||||
+ size_t d_there_len = strlen(d_there);
|
|
||||||
|
|
||||||
- /* If we didn't find one, then make sure the answer is in the
|
|
||||||
- * format "d_here/d_there". */
|
|
||||||
- if (last_slash == NULL) {
|
|
||||||
- assert(!path_only);
|
|
||||||
+ if (d_there[d_there_len - 1] != '/') {
|
|
||||||
+ d_there = charealloc(d_there, d_there_len + 2);
|
|
||||||
+ strcat(d_there, "/");
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
|
|
||||||
- d_there_file = d_there;
|
|
||||||
- d_there = d_here;
|
|
||||||
- } else {
|
|
||||||
- /* If path_only is FALSE, then save the filename portion of
|
|
||||||
- * the answer, everything after the last slash, in
|
|
||||||
- * d_there_file. */
|
|
||||||
- if (!path_only)
|
|
||||||
- d_there_file = mallocstrcpy(NULL, last_slash + 1);
|
|
||||||
-
|
|
||||||
- /* And remove the filename portion of the answer from
|
|
||||||
- * d_there. */
|
|
||||||
- null_at(&d_there, last_slash - d_there + 1);
|
|
||||||
-
|
|
||||||
- /* Go to the path specified in d_there. */
|
|
||||||
- if (chdir(d_there) == -1) {
|
|
||||||
- free(d_there);
|
|
||||||
- d_there = NULL;
|
|
||||||
- } else {
|
|
||||||
- /* Get the full path and save it in d_there. */
|
|
||||||
- free(d_there);
|
|
||||||
+ /* Search for the last slash in d_there. */
|
|
||||||
+ last_slash = strrchr(d_there, '/');
|
|
||||||
|
|
||||||
- d_there = charalloc(PATH_MAX + 1);
|
|
||||||
- d_there = getcwd(d_there, PATH_MAX + 1);
|
|
||||||
+ /* If we didn't find one, then make sure the answer is in the format
|
|
||||||
+ * "d_here/d_there". */
|
|
||||||
+ if (last_slash == NULL) {
|
|
||||||
+ assert(!path_only);
|
|
||||||
|
|
||||||
- if (d_there != NULL) {
|
|
||||||
- align(&d_there);
|
|
||||||
+ d_there_file = d_there;
|
|
||||||
+ d_there = d_here;
|
|
||||||
+ } else {
|
|
||||||
+ /* If path_only is FALSE, then save the filename portion of the
|
|
||||||
+ * answer (everything after the last slash) in d_there_file. */
|
|
||||||
+ if (!path_only)
|
|
||||||
+ d_there_file = mallocstrcpy(NULL, last_slash + 1);
|
|
||||||
+
|
|
||||||
+ /* And remove the filename portion of the answer from
|
|
||||||
+ * d_there. */
|
|
||||||
+ null_at(&d_there, last_slash - d_there + 1);
|
|
||||||
+
|
|
||||||
+ /* Go to the path specified in d_there. */
|
|
||||||
+ if (chdir(d_there) == -1) {
|
|
||||||
+ free(d_there);
|
|
||||||
+ d_there = NULL;
|
|
||||||
+ } else {
|
|
||||||
+ free(d_there);
|
|
||||||
|
|
||||||
- if (strcmp(d_there, "/") != 0) {
|
|
||||||
- /* Make sure d_there ends in a slash. */
|
|
||||||
- d_there = charealloc(d_there,
|
|
||||||
- strlen(d_there) + 2);
|
|
||||||
- strcat(d_there, "/");
|
|
||||||
- }
|
|
||||||
- } else
|
|
||||||
- /* If we couldn't get the full path, set path_only
|
|
||||||
- * to TRUE so that we clean up correctly, free all
|
|
||||||
- * allocated memory, and return NULL. */
|
|
||||||
- path_only = TRUE;
|
|
||||||
-
|
|
||||||
- /* Finally, go back to the path specified in d_here,
|
|
||||||
- * where we were before. */
|
|
||||||
- chdir(d_here);
|
|
||||||
- }
|
|
||||||
+ /* Get the full path. */
|
|
||||||
+ d_there = charalloc(PATH_MAX + 1);
|
|
||||||
+ d_there = getcwd(d_there, PATH_MAX + 1);
|
|
||||||
+
|
|
||||||
+ /* If we succeeded, canonicalize it in d_there. */
|
|
||||||
+ if (d_there != NULL) {
|
|
||||||
+ align(&d_there);
|
|
||||||
+
|
|
||||||
+ /* If the current directory isn't "/", tack a slash onto
|
|
||||||
+ * the end of it. */
|
|
||||||
+ if (strcmp(d_there, "/") != 0) {
|
|
||||||
+ d_there = charealloc(d_there, strlen(d_there) + 2);
|
|
||||||
+ strcat(d_there, "/");
|
|
||||||
+ }
|
|
||||||
+ } else
|
|
||||||
+ /* Otherwise, set path_only to TRUE, so that we clean up
|
|
||||||
+ * correctly, free all allocated memory, and return
|
|
||||||
+ * NULL. */
|
|
||||||
+ path_only = TRUE;
|
|
||||||
+
|
|
||||||
+ /* Finally, go back to the path specified in d_here,
|
|
||||||
+ * where we were before. We don't check for a chdir()
|
|
||||||
+ * error, since we can do nothing then. */
|
|
||||||
+ chdir(d_here);
|
|
||||||
|
|
||||||
/* Free d_here, since we're done using it. */
|
|
||||||
free(d_here);
|
|
||||||
}
|
|
||||||
|
|
||||||
- /* At this point, if path_only is FALSE and d_there exists,
|
|
||||||
+ /* At this point, if path_only is FALSE and d_there isn't NULL,
|
|
||||||
* d_there contains the path portion of the answer and
|
|
||||||
* d_there_file contains the filename portion of the answer. If
|
|
||||||
- * this is the case, tack d_there_file onto the end of
|
|
||||||
- * d_there, so that d_there contains the complete answer. */
|
|
||||||
+ * this is the case, tack the latter onto the end of the former.
|
|
||||||
+ * d_there will then contain the complete answer. */
|
|
||||||
if (!path_only && d_there != NULL) {
|
|
||||||
d_there = charealloc(d_there, strlen(d_there) +
|
|
||||||
strlen(d_there_file) + 1);
|
|
@ -1,39 +0,0 @@
|
|||||||
fix from upstream
|
|
||||||
|
|
||||||
diff -ur nano-1.3.12/src/move.c nano-1.3.12-fixed/src/move.c
|
|
||||||
--- nano-1.3.12/src/move.c 2006-05-21 22:08:49.000000000 -0400
|
|
||||||
+++ nano-1.3.12-fixed/src/move.c 2006-07-06 17:01:03.000000000 -0400
|
|
||||||
@@ -521,6 +521,16 @@
|
|
||||||
|
|
||||||
/* Scroll the edit window up one line. */
|
|
||||||
edit_scroll(UP, 1);
|
|
||||||
+
|
|
||||||
+ /* If we're not on the first line of the edit window, update the
|
|
||||||
+ * line we were on before and the line we're on now. The former
|
|
||||||
+ * needs to be redrawn if we're not on the first page, and the
|
|
||||||
+ * latter needs to be drawn unconditionally. */
|
|
||||||
+ if (openfile->current_y > 0) {
|
|
||||||
+ if (need_vertical_update(0))
|
|
||||||
+ update_line(openfile->current->next, 0);
|
|
||||||
+ update_line(openfile->current, openfile->current_x);
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
#endif /* !NANO_TINY */
|
|
||||||
|
|
||||||
@@ -574,6 +584,16 @@
|
|
||||||
|
|
||||||
/* Scroll the edit window down one line. */
|
|
||||||
edit_scroll(DOWN, 1);
|
|
||||||
+
|
|
||||||
+ /* If we're not on the last line of the edit window, update the line
|
|
||||||
+ * we were on before and the line we're on now. The former needs to
|
|
||||||
+ * be redrawn if we're not on the first page, and the latter needs
|
|
||||||
+ * to be drawn unconditionally. */
|
|
||||||
+ if (openfile->current_y < editwinrows - 1) {
|
|
||||||
+ if (need_vertical_update(0))
|
|
||||||
+ update_line(openfile->current->prev, 0);
|
|
||||||
+ update_line(openfile->current, openfile->current_x);
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
#endif /* !NANO_TINY */
|
|
||||||
|
|
@ -1,118 +0,0 @@
|
|||||||
From 5afd6d3e9558f8295496f7c59c765947e7f19d8a Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
Date: Mon, 28 Nov 2011 15:37:02 -0500
|
|
||||||
Subject: [PATCH 1/2] nanorc(5): fix bind/unbind documentation
|
|
||||||
|
|
||||||
The unbind section is listed after valid key/menu/functions, but tries
|
|
||||||
to say those sections come after it. So reorganization the section so
|
|
||||||
that bind/unbind comes first, and then we cover the key/menu/functions
|
|
||||||
after both of them.
|
|
||||||
|
|
||||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
---
|
|
||||||
doc/man/nanorc.5 | 32 +++++++++++++++++++-------------
|
|
||||||
1 file changed, 19 insertions(+), 13 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/doc/man/nanorc.5 b/doc/man/nanorc.5
|
|
||||||
index da33179..2da71ab 100644
|
|
||||||
--- a/doc/man/nanorc.5
|
|
||||||
+++ b/doc/man/nanorc.5
|
|
||||||
@@ -282,9 +282,19 @@ Read in self-contained color syntaxes from \fIsyntaxfile\fP. Note that
|
|
||||||
.SH KEY BINDINGS
|
|
||||||
Key bindings may be reassigned via the following commands:
|
|
||||||
.TP
|
|
||||||
-.B bind \fIkey\fP \fIfunction\fP \fImenu\fP
|
|
||||||
+.B bind \fIkey\fP \fIfunction\fP \fImenu\fP
|
|
||||||
Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the
|
|
||||||
-context of menu \fImenu\fP. The format of \fIkey\fP should be one of:
|
|
||||||
+context of menu \fImenu\fP.
|
|
||||||
+.TP
|
|
||||||
+.B unbind \fIkey\fP \fImenu\fP
|
|
||||||
+Unbind the key \fIkey\fP from the menu named \fImenu\fP or from all
|
|
||||||
+menus by using \fIall\fP. Same key syntax as for binding.
|
|
||||||
+Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the
|
|
||||||
+context of menu \fImenu\fP.
|
|
||||||
+.TP
|
|
||||||
+
|
|
||||||
+The format of \fIkey\fP should be one of:
|
|
||||||
+
|
|
||||||
.TP
|
|
||||||
.B ^
|
|
||||||
followed by an alpha character or the word "Space".
|
|
||||||
@@ -298,8 +308,10 @@ Example: M-C
|
|
||||||
followed by a numeric value from 1 to 16.
|
|
||||||
Example: F10
|
|
||||||
.TP
|
|
||||||
-Valid function names to be bound include:
|
|
||||||
-.TP 3
|
|
||||||
+
|
|
||||||
+Valid \fIfunction\fP names to be bound include:
|
|
||||||
+
|
|
||||||
+.TP 2
|
|
||||||
.B help
|
|
||||||
Invoke the help menu.
|
|
||||||
.TP
|
|
||||||
@@ -506,8 +518,9 @@ Toggle whether long lines will be wrapped to the next line.
|
|
||||||
Toggle whether the suspend sequence (normally ^Z) will suspend the editor window.
|
|
||||||
.TP
|
|
||||||
|
|
||||||
-Valid menu sections are:
|
|
||||||
-.TP
|
|
||||||
+Valid \fImenu\fP sections are:
|
|
||||||
+
|
|
||||||
+.TP 2
|
|
||||||
.B main
|
|
||||||
The main editor window where text is entered.
|
|
||||||
.TP
|
|
||||||
@@ -549,13 +562,6 @@ The 'go to directory' menu.
|
|
||||||
.TP
|
|
||||||
.B all
|
|
||||||
A special name meaning: apply to all menus where this function exists.
|
|
||||||
-
|
|
||||||
-.TP
|
|
||||||
-.B unbind \fIkey\fP \fImenu\fP
|
|
||||||
-Unbind the key \fIkey\fP from the menu named \fImenu\fP or from all
|
|
||||||
-menus by using \fIall\fP. Same key syntax as for binding.
|
|
||||||
-Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the
|
|
||||||
-context of menu \fImenu\fP. The format of \fIkey\fP should be one of:
|
|
||||||
.SH FILES
|
|
||||||
.TP
|
|
||||||
.I SYSCONFDIR/nanorc
|
|
||||||
--
|
|
||||||
1.7.9.7
|
|
||||||
|
|
||||||
From 4b3e912d4a5c3561d1cfaf944d33ba9c30a9a555 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
Date: Mon, 28 Nov 2011 15:38:26 -0500
|
|
||||||
Subject: [PATCH 2/2] nanorc syntax: add bind/unbind commands
|
|
||||||
|
|
||||||
We don't currently handle the bind/unbind commands, so adding them to
|
|
||||||
your nanorc file with colorization enabled makes it look like they're
|
|
||||||
not actually supported.
|
|
||||||
|
|
||||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
---
|
|
||||||
doc/syntax/nanorc.nanorc | 6 ++++--
|
|
||||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/doc/syntax/nanorc.nanorc b/doc/syntax/nanorc.nanorc
|
|
||||||
index bda5f4f..287be56 100644
|
|
||||||
--- a/doc/syntax/nanorc.nanorc
|
|
||||||
+++ b/doc/syntax/nanorc.nanorc
|
|
||||||
@@ -2,10 +2,12 @@
|
|
||||||
##
|
|
||||||
syntax "nanorc" "\.?nanorc$"
|
|
||||||
## Possible errors and parameters
|
|
||||||
-icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$"
|
|
||||||
+icolor brightwhite "^[[:space:]]*((un)?(bind|set)|include|syntax|i?color).*$"
|
|
||||||
## Keywords
|
|
||||||
icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(allow_insecure_backup|autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|poslog|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|softwrap|speller|suspend|suspendenable|tabsize|tabstospaces|tempfile|undo|view|whitespace|wordbounds)\>"
|
|
||||||
-icolor green "^[[:space:]]*(set|unset|include|syntax|header|magic)\>"
|
|
||||||
+icolor brightgreen "^[[:space:]]*bind[[:space:]]+((\^|M-)([[:alpha:]]|space)|F([0-9]|1[0-6]))[[:space:]]+[[:alpha:]]+[[:space:]]+[[:alpha:]]+[[:space:]]*$"
|
|
||||||
+icolor brightgreen "^[[:space:]]*unbind[[:space:]]+((\^|M-)([[:alpha:]]|space)|F([0-9]|1[0-6]))[[:space:]]+[[:alpha:]]+[[:space:]]*$"
|
|
||||||
+icolor green "^[[:space:]]*((un)?(bind|set)|include|syntax|header|magic)\>"
|
|
||||||
## Colors
|
|
||||||
icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
|
|
||||||
icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
|
|
||||||
--
|
|
||||||
1.7.9.7
|
|
@ -1,30 +0,0 @@
|
|||||||
From 0708d921211fa0f89288690593c406a682b2c826 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
Date: Tue, 14 Jun 2011 16:00:52 -0400
|
|
||||||
Subject: [PATCH] drop --target as it makes no sense
|
|
||||||
|
|
||||||
Since nano doesn't produce code, the --target option to configure
|
|
||||||
doesn't make sense. So only support --{build,host} since those are
|
|
||||||
what we need in order to cross-compile.
|
|
||||||
|
|
||||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
---
|
|
||||||
configure.ac | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index c590737..3eb61c2 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -22,7 +22,7 @@
|
|
||||||
|
|
||||||
AC_INIT([GNU nano], [2.3.1], [nano-devel@gnu.org], [nano])
|
|
||||||
AC_CONFIG_SRCDIR([src/nano.c])
|
|
||||||
-AC_CANONICAL_TARGET([])
|
|
||||||
+AC_CANONICAL_HOST
|
|
||||||
AM_INIT_AUTOMAKE
|
|
||||||
AC_CONFIG_HEADERS([config.h])
|
|
||||||
|
|
||||||
--
|
|
||||||
1.7.9.7
|
|
||||||
|
|
@ -1,95 +0,0 @@
|
|||||||
From 7051588fee7a20a69c67c8899b3e6c35ebf51fbf Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
Date: Sat, 25 Aug 2012 23:03:22 -0400
|
|
||||||
Subject: [PATCH] gentoo syntax: update
|
|
||||||
|
|
||||||
Update to newer EAPIs, and fold in updated shell changes too.
|
|
||||||
Much of this is based on work by Davide.
|
|
||||||
|
|
||||||
Reported-by: Davide Pesavento <pesa@gentoo.org>
|
|
||||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
---
|
|
||||||
doc/syntax/gentoo.nanorc | 46 +++++++++++++++++++++++++++-------------------
|
|
||||||
1 file changed, 27 insertions(+), 19 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/doc/syntax/gentoo.nanorc b/doc/syntax/gentoo.nanorc
|
|
||||||
index 2ad1597..ad89fce 100644
|
|
||||||
--- a/doc/syntax/gentoo.nanorc
|
|
||||||
+++ b/doc/syntax/gentoo.nanorc
|
|
||||||
@@ -2,30 +2,38 @@
|
|
||||||
##
|
|
||||||
syntax "ebuild" "\.e(build|class)$"
|
|
||||||
## All the standard portage functions
|
|
||||||
-color brightgreen "^src_(unpack|prepare|configure|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))"
|
|
||||||
+color brightgreen "(^|\<default_)src_(unpack|prepare|configure|compile|install|test)\>"
|
|
||||||
+color brightgreen "^pkg_(config|nofetch|pretend|setup|(pre|post)(inst|rm))\>"
|
|
||||||
+color brightgreen "\<default(_pkg_nofetch)?\>"
|
|
||||||
## Highlight bash related syntax
|
|
||||||
-color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while|continue|break)\>"
|
|
||||||
-color green "\<(declare|eval|exec|let)\>"
|
|
||||||
-color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
|
||||||
-color green "-[edfgruwxL]\>"
|
|
||||||
-color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
|
|
||||||
+color green "\<(break|case|continue|do|done|elif|else|esac|exit|fi|for|function|if|in|read|return|select|shift|then|time|until|while)\>"
|
|
||||||
+color green "\<(declare|eval|exec|export|let|local)\>"
|
|
||||||
+color green "[{}():;|`$<>!=&\\]" "(\]|\[)"
|
|
||||||
+color green "-[defhnrsuwxzL]\>"
|
|
||||||
+color green "-(eq|ne|gt|lt|ge|le)\>"
|
|
||||||
## Highlight variables ... official portage ones in red, all others in bright red
|
|
||||||
-color brightred "\$\{?[a-zA-Z_0-9]+\}?"
|
|
||||||
-color red "\<(EAPI|ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|(P|R)?DEPEND|PROVIDE|PROPERTIES|RESTRICT|USERLAND)\>"
|
|
||||||
-color red "\<(S|D|T|PV|PF|P|PN|PR|PVR|A|CATEGORY|DISTDIR|FILESDIR|ROOT|WORKDIR)\>" "\<(AS|C(PP|XX)?|LD)FLAGS\>" "\<C(HOST|TARGET|BUILD)\>"
|
|
||||||
-color red "\<QA_((TEXTRELS|EXECSTACK|WX_LOAD)(_[a-zA-Z_0-9]+)?|DT_HASH|PRESTRIPPED)\>" "\<WANT_AUTO(CONF|MAKE)\>" "\<AT_M4DIR\>"
|
|
||||||
+color brightred "\$[-0-9@*#?$!]" "\$[[:alpha:]_][[:alnum:]_]*"
|
|
||||||
+color brightred "\$\{[#!]?([-@*#?$!]|[0-9]+|[[:alpha:]_][[:alnum:]_]*)(\[([[:digit:]]|@)+\])?(([#%/]|:?[-=?+])[^}]*\}|\[|\})"
|
|
||||||
+color red "\<(EAPI|ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|(P|R)?DEPEND|PROVIDE|PROPERTIES|REQUIRED_USE|RESTRICT|USERLAND)\>"
|
|
||||||
+color red "\<(S|E?D|T|PV|PF|P|PN|PR|PVR|A|CATEGORY|DISTDIR|FILESDIR|EPREFIX|E?ROOT|WORKDIR)\>"
|
|
||||||
+color red "\<(AS|C(PP|XX)?|LD)FLAGS\>" "\<C(HOST|TARGET|BUILD)\>"
|
|
||||||
+color red "\<QA_((TEXTRELS|EXECSTACK|WX_LOAD)(_[a-zA-Z_0-9]+)?|DT_HASH|PRESTRIPPED)\>"
|
|
||||||
+color red "\<(PATCHES|(HTML_)?DOCS)\>" "\<WANT_(AUTO(CONF|MAKE)|LIBTOOL)\>" "\<AT_M4DIR\>"
|
|
||||||
## Highlight portage commands
|
|
||||||
-color magenta "\<use(_(with|enable))?\> [!a-zA-Z0-9_+ -]*" "inherit.*"
|
|
||||||
-color brightblue "\<e(begin|end|conf|install|make|qmake[34]|ant|(qa)?warn|infon?|error|log|patch|new(group|user))\>"
|
|
||||||
-color brightblue "\<e(pause|beep|mktemp|(cvs|svn)_clean|punt_cxx)\>" "\<e(aclocal|auto(reconf|header|conf|make))\>"
|
|
||||||
-color brightblue "\<built_with_use\>" "\<make_desktop_entry\>" "\<unpack(_(makeself|pdv))?\>"
|
|
||||||
-color brightblue "\<die\>" "\<use(_(with|enable))?\>" "\<inherit\>" "\<has\>" "\<(has|best)_version\>"
|
|
||||||
+color magenta "\<(use(_(with|enable|if_iuse)|x)?|in_iuse)\> [!a-zA-Z0-9_+ -]*" "inherit.*"
|
|
||||||
+color brightblue "\<e(begin|end|conf|install|make|qmake4|ant|(qa)?warn|infon?|error|log|patch(_user)?|new(group|user))\>"
|
|
||||||
+color brightblue "\<e(pause|beep|mktemp|(cvs|svn)_clean|punt_cxx)\>" "\<e(aclocal|auto(reconf|header|conf|make)|libtoolize)\>"
|
|
||||||
+color brightblue "\<e(stack|shopts|umask)_(push|pop)\>" "\<version_is_at_least\>"
|
|
||||||
+color brightblue "\<make_desktop_entry\>" "\<unpack(_(makeself|pdv))?\>"
|
|
||||||
+color brightblue "\<(die|has|inherit|nonfatal)\>" "\<(use(_(with|enable|if_iuse)|x)?|in_iuse)\>" "\<(has|best)_version\>"
|
|
||||||
color brightblue "\<(do|new)(ins|(games)?s?bin|doc|lib(\.so|\.a)?|man|info|exe|initd|confd|envd|pam|menu|icon)\>"
|
|
||||||
-color brightblue "\<do(python|sed|dir|hard|sym|html|jar|mo)\>" "\<keepdir\>"
|
|
||||||
-color brightblue "prepall(docs|info|man|strip)?" "prep(info|lib|lib\.(so|a)|man|strip|gamesdirs)"
|
|
||||||
+color brightblue "\<do(compress|python|sed|dir|hard|sym|html|jar|mo)\>" "\<keepdir\>"
|
|
||||||
+color brightblue "\<prepall(docs|info|man|strip)?\>" "\<prep(info|lib|lib\.(so|a)|man|strip|gamesdirs)\>"
|
|
||||||
color brightblue "\<(doc|ins|exe)?into\>" "\<(f|games)(owners|perms)\>" "\<(exe|ins|dir)opts\>"
|
|
||||||
+color brightblue "\<tc-get(BUILD_)?(AR|AS|CC|CPP|CXX|LD|NM|OBJCOPY|PKG_CONFIG|RANLIB)\>"
|
|
||||||
+color brightblue "\<tc-(arch(-kernel)?|export|has-(tls|openmp))\>"
|
|
||||||
## Highlight common commands used in ebuilds
|
|
||||||
-color blue "\<make\>" "\<(awk|cat|cd|chmod|chown|cp|echo|env|export|find|e?grep|ln|mkdir|mv|rm|sed|set|tar|touch|unset|xargs)\>"
|
|
||||||
+color blue "\<(awk|cat|cd|chmod|chown|cp|echo|env|find|e?grep|ln|make|mkdir|mv|popd|printf|pushd|rm|rmdir|sed|set|tar|touch|unset|xargs)\>"
|
|
||||||
## Highlight comments (doesnt work that well)
|
|
||||||
color yellow "(^|[[:space:]])#.*$"
|
|
||||||
## Highlight strings (doesnt work that well)
|
|
||||||
@@ -35,7 +43,7 @@ color ,green "[[:space:]]+$"
|
|
||||||
|
|
||||||
## Here is an example for Portage control files
|
|
||||||
##
|
|
||||||
-syntax "/etc/portage" "\.(keywords|mask|unmask|use)(/.+)?$"
|
|
||||||
+syntax "/etc/portage" "\.(accept_keywords|env|keywords|mask|unmask|use)(/.+)?$"
|
|
||||||
## Base text:
|
|
||||||
color green "^.+$"
|
|
||||||
## Use flags:
|
|
||||||
--
|
|
||||||
1.8.3.2
|
|
||||||
|
|
||||||
--- a/doc/syntax/gentoo.nanorc
|
|
||||||
+++ b/doc/syntax/gentoo.nanorc
|
|
||||||
@@ -61,3 +61,5 @@ color cyan "^[[:space:]]*.*/"
|
|
||||||
color brightmagenta "^[[:space:]]*(=|~|<|<=|=<|>|>=|=>)"
|
|
||||||
## Comments:
|
|
||||||
color yellow "#.*$"
|
|
||||||
+## Trailing space is bad!
|
|
||||||
+color ,green "[[:space:]]+$"
|
|
@ -1,52 +0,0 @@
|
|||||||
From c662db58448fefe86184117e6bab5799e43eccf1 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
Date: Sun, 1 Jan 2012 02:26:16 -0500
|
|
||||||
Subject: [PATCH] search ncurses via pkg-config first
|
|
||||||
|
|
||||||
Newer ncurses installs include pkg-config files which tell us the right
|
|
||||||
-I/-L paths we need, so default to that before trying the legacy ways.
|
|
||||||
|
|
||||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
---
|
|
||||||
configure.ac | 18 ++++++++++++++++++
|
|
||||||
1 files changed, 18 insertions(+), 0 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index 1f61ae4..05308be 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -35,6 +35,7 @@ AC_PROG_CC
|
|
||||||
AC_PROG_LN_S
|
|
||||||
AC_ISC_POSIX
|
|
||||||
AC_SYS_LARGEFILE
|
|
||||||
+PKG_PROG_PKG_CONFIG
|
|
||||||
|
|
||||||
dnl Internationalization macros.
|
|
||||||
|
|
||||||
@@ -439,6 +440,23 @@ AC_CHECK_FUNCS(getopt_long)
|
|
||||||
dnl Checks for libraries.
|
|
||||||
|
|
||||||
if eval "test x$CURSES_LIB_NAME = x"; then
|
|
||||||
+ if test x$enable_utf8 != xno; then
|
|
||||||
+ PKG_CHECK_MODULES([NCURSESW], [ncursesw], [
|
|
||||||
+ CURSES_LIB=$NCURSESW_LIBS
|
|
||||||
+ CPPFLAGS="$NCURSESW_CFLAGS $CPPFLAGS"
|
|
||||||
+ CURSES_LIB_NAME=ncursesw
|
|
||||||
+ CURSES_LIB_WIDE=yes
|
|
||||||
+ ], [:])
|
|
||||||
+ else
|
|
||||||
+ PKG_CHECK_MODULES([NCURSES], [ncurses], [
|
|
||||||
+ CURSES_LIB=$NCURSES_LIBS
|
|
||||||
+ CPPFLAGS="$NCURSES_CFLAGS $CPPFLAGS"
|
|
||||||
+ CURSES_LIB_NAME=ncurses
|
|
||||||
+ ], [:])
|
|
||||||
+ fi
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+if eval "test x$CURSES_LIB_NAME = x"; then
|
|
||||||
AC_CHECK_HEADERS(ncurses.h)
|
|
||||||
|
|
||||||
if test x$enable_utf8 != xno; then
|
|
||||||
--
|
|
||||||
1.7.6.1
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
|||||||
From 5a6a9c107148162f47032b03af3f393c3888c5df Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
Date: Tue, 28 Feb 2012 11:14:33 -0500
|
|
||||||
Subject: [PATCH] shell syntax: major updates
|
|
||||||
|
|
||||||
Highlight more shell builtins and common commands.
|
|
||||||
|
|
||||||
Rewrite the variable highlighting to be more exact and handle cases where
|
|
||||||
string operations are used.
|
|
||||||
|
|
||||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
---
|
|
||||||
doc/syntax/sh.nanorc | 13 +++++++++----
|
|
||||||
1 file changed, 9 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/doc/syntax/sh.nanorc b/doc/syntax/sh.nanorc
|
|
||||||
index f660105..a664ef6 100644
|
|
||||||
--- a/doc/syntax/sh.nanorc
|
|
||||||
+++ b/doc/syntax/sh.nanorc
|
|
||||||
@@ -4,12 +4,17 @@ syntax "sh" "\.sh$"
|
|
||||||
magic "(POSIX|Bourne.*) shell script text"
|
|
||||||
header "^#!.*/(ba|k|pdk)?sh[-0-9_]*"
|
|
||||||
icolor brightgreen "^[0-9A-Z_]+\(\)"
|
|
||||||
-color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
|
|
||||||
-color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
|
|
||||||
+color green "\<(break|case|continue|do|done|elif|else|esac|exit|fi|for|function|if|in|read|return|select|shift|then|time|until|while)\>"
|
|
||||||
+color green "\<(declare|eval|exec|export|let|local)\>"
|
|
||||||
+color green "[{}():;|`$<>!=&\\]" "(\]|\[)"
|
|
||||||
color green "-[Ldefgruwx]\>"
|
|
||||||
color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
|
|
||||||
-color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
|
|
||||||
-icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
|
|
||||||
+color brightblue "\<(awk|cat|cd|ch(grp|mod|own)|cp|echo|env|grep|install|ln|make|mkdir|mv|popd|printf|pushd|rm|rmdir|sed|set|tar|touch|umask|unset)\>"
|
|
||||||
+# Basic variable names (no braces)
|
|
||||||
+color brightred "\$[-0-9@*#?$!]" "\$[[:alpha:]_][[:alnum:]_]*"
|
|
||||||
+# More complicated variable names; handles braces
|
|
||||||
+# and replacements and arrays
|
|
||||||
+color brightred "\$\{[#!]?([-@*#?$!]|[0-9]+|[[:alpha:]_][[:alnum:]_]*)(\[([[:space:]]*[[:alnum:]_]+[[:space:]]*|@)\])?(([#%/]|:?[-=?+])[^}]*\}|\[|\})"
|
|
||||||
color cyan "(^|[[:space:]])#.*$"
|
|
||||||
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
|
||||||
color ,green "[[:space:]]+$"
|
|
||||||
--
|
|
||||||
1.7.9.7
|
|
||||||
|
|
@ -1,119 +0,0 @@
|
|||||||
From 17e1ba8530b9e21932935ad052ad416a0c2058a7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
Date: Mon, 28 Nov 2011 15:37:02 -0500
|
|
||||||
Subject: [PATCH] nanorc(5): fix bind/unbind documentation
|
|
||||||
|
|
||||||
The unbind section is listed after valid key/menu/functions, but tries
|
|
||||||
to say those sections come after it. So reorganization the section so
|
|
||||||
that bind/unbind comes first, and then we cover the key/menu/functions
|
|
||||||
after both of them.
|
|
||||||
|
|
||||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
---
|
|
||||||
doc/man/nanorc.5 | 32 +++++++++++++++++++-------------
|
|
||||||
1 file changed, 19 insertions(+), 13 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/doc/man/nanorc.5 b/doc/man/nanorc.5
|
|
||||||
index b9c0a19..3fc3c5d 100644
|
|
||||||
--- a/doc/man/nanorc.5
|
|
||||||
+++ b/doc/man/nanorc.5
|
|
||||||
@@ -285,9 +285,19 @@ Read in self-contained color syntaxes from \fIsyntaxfile\fP. Note that
|
|
||||||
.SH KEY BINDINGS
|
|
||||||
Key bindings may be reassigned via the following commands:
|
|
||||||
.TP
|
|
||||||
-.B bind \fIkey\fP \fIfunction\fP \fImenu\fP
|
|
||||||
+.B bind \fIkey\fP \fIfunction\fP \fImenu\fP
|
|
||||||
Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the
|
|
||||||
-context of menu \fImenu\fP. The format of \fIkey\fP should be one of:
|
|
||||||
+context of menu \fImenu\fP.
|
|
||||||
+.TP
|
|
||||||
+.B unbind \fIkey\fP \fImenu\fP
|
|
||||||
+Unbind the key \fIkey\fP from the menu named \fImenu\fP or from all
|
|
||||||
+menus by using \fIall\fP. Same key syntax as for binding.
|
|
||||||
+Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the
|
|
||||||
+context of menu \fImenu\fP.
|
|
||||||
+.TP
|
|
||||||
+
|
|
||||||
+The format of \fIkey\fP should be one of:
|
|
||||||
+
|
|
||||||
.TP
|
|
||||||
.B ^
|
|
||||||
followed by an alpha character or the word "Space".
|
|
||||||
@@ -301,8 +311,10 @@ Example: M-C
|
|
||||||
followed by a numeric value from 1 to 16.
|
|
||||||
Example: F10
|
|
||||||
.TP
|
|
||||||
-Valid function names to be bound include:
|
|
||||||
-.TP 3
|
|
||||||
+
|
|
||||||
+Valid \fIfunction\fP names to be bound include:
|
|
||||||
+
|
|
||||||
+.TP 2
|
|
||||||
.B help
|
|
||||||
Invoke the help menu.
|
|
||||||
.TP
|
|
||||||
@@ -509,8 +521,9 @@ Toggle whether long lines will be wrapped to the next line.
|
|
||||||
Toggle whether the suspend sequence (normally ^Z) will suspend the editor window.
|
|
||||||
.TP
|
|
||||||
|
|
||||||
-Valid menu sections are:
|
|
||||||
-.TP
|
|
||||||
+Valid \fImenu\fP sections are:
|
|
||||||
+
|
|
||||||
+.TP 2
|
|
||||||
.B main
|
|
||||||
The main editor window where text is entered.
|
|
||||||
.TP
|
|
||||||
@@ -552,13 +565,6 @@ The 'go to directory' menu.
|
|
||||||
.TP
|
|
||||||
.B all
|
|
||||||
A special name meaning: apply to all menus where this function exists.
|
|
||||||
-
|
|
||||||
-.TP
|
|
||||||
-.B unbind \fIkey\fP \fImenu\fP
|
|
||||||
-Unbind the key \fIkey\fP from the menu named \fImenu\fP or from all
|
|
||||||
-menus by using \fIall\fP. Same key syntax as for binding.
|
|
||||||
-Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the
|
|
||||||
-context of menu \fImenu\fP. The format of \fIkey\fP should be one of:
|
|
||||||
.SH FILES
|
|
||||||
.TP
|
|
||||||
.I SYSCONFDIR/nanorc
|
|
||||||
--
|
|
||||||
1.8.1.2
|
|
||||||
|
|
||||||
From 0d49d9f0c62013e0d86169a92a2d0f5557e7be05 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
Date: Mon, 28 Nov 2011 15:38:26 -0500
|
|
||||||
Subject: [PATCH] nanorc syntax: add bind/unbind commands
|
|
||||||
|
|
||||||
We don't currently handle the bind/unbind commands, so adding them to
|
|
||||||
your nanorc file with colorization enabled makes it look like they're
|
|
||||||
not actually supported.
|
|
||||||
|
|
||||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
---
|
|
||||||
doc/syntax/nanorc.nanorc | 6 ++++--
|
|
||||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/doc/syntax/nanorc.nanorc b/doc/syntax/nanorc.nanorc
|
|
||||||
index 2c9f23a..494c2f4 100644
|
|
||||||
--- a/doc/syntax/nanorc.nanorc
|
|
||||||
+++ b/doc/syntax/nanorc.nanorc
|
|
||||||
@@ -2,10 +2,12 @@
|
|
||||||
##
|
|
||||||
syntax "nanorc" "\.?nanorc$"
|
|
||||||
## Possible errors and parameters
|
|
||||||
-icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$"
|
|
||||||
+icolor brightwhite "^[[:space:]]*((un)?(bind|set)|include|syntax|i?color).*$"
|
|
||||||
## Keywords
|
|
||||||
icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(allow_insecure_backup|autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|poslog|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|softwrap|speller|suspend|suspendenable|tabsize|tabstospaces|tempfile|undo|view|whitespace|wordbounds|locking)\>"
|
|
||||||
-icolor green "^[[:space:]]*(set|unset|include|syntax|header|magic)\>"
|
|
||||||
+icolor brightgreen "^[[:space:]]*bind[[:space:]]+((\^|M-)([[:alpha:]]|space)|F([0-9]|1[0-6]))[[:space:]]+[[:alpha:]]+[[:space:]]+[[:alpha:]]+[[:space:]]*$"
|
|
||||||
+icolor brightgreen "^[[:space:]]*unbind[[:space:]]+((\^|M-)([[:alpha:]]|space)|F([0-9]|1[0-6]))[[:space:]]+[[:alpha:]]+[[:space:]]*$"
|
|
||||||
+icolor green "^[[:space:]]*((un)?(bind|set)|include|syntax|header|magic)\>"
|
|
||||||
## Colors
|
|
||||||
icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
|
|
||||||
icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
|
|
||||||
--
|
|
||||||
1.8.1.2
|
|
||||||
|
|
@ -1,80 +0,0 @@
|
|||||||
# Copyright 1999-2009 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
#ECVS_SERVER="savannah.gnu.org:/cvsroot/nano"
|
|
||||||
#ECVS_MODULE="nano"
|
|
||||||
#ECVS_AUTH="pserver"
|
|
||||||
#ECVS_USER="anonymous"
|
|
||||||
#inherit cvs
|
|
||||||
inherit eutils
|
|
||||||
|
|
||||||
MY_P=${PN}-${PV/_}
|
|
||||||
DESCRIPTION="GNU GPL'd Pico clone with more functionality"
|
|
||||||
HOMEPAGE="http://www.nano-editor.org/"
|
|
||||||
SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
|
|
||||||
IUSE="debug justify minimal ncurses nls slang spell unicode"
|
|
||||||
|
|
||||||
DEPEND=">=sys-libs/ncurses-5.2
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
!ncurses? ( slang? ( sys-libs/slang ) )"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
cd "${S}"
|
|
||||||
epatch "${FILESDIR}"/${P}-path.patch
|
|
||||||
epatch "${FILESDIR}"/${P}-scroll.patch
|
|
||||||
epatch "${FILESDIR}"/${P}-fix2.patch
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
if [[ ! -e configure ]] ; then
|
|
||||||
./autogen.sh || die "autogen failed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local myconf=""
|
|
||||||
use ncurses \
|
|
||||||
&& myconf="--without-slang" \
|
|
||||||
|| myconf="${myconf} $(use_with slang)"
|
|
||||||
|
|
||||||
econf \
|
|
||||||
--bindir=/bin \
|
|
||||||
--enable-color \
|
|
||||||
--enable-multibuffer \
|
|
||||||
--enable-nanorc \
|
|
||||||
--disable-wrapping-as-root \
|
|
||||||
$(use_enable spell speller) \
|
|
||||||
$(use_enable justify) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable unicode utf8) \
|
|
||||||
$(use_enable minimal tiny) \
|
|
||||||
${myconf} \
|
|
||||||
|| die "configure failed"
|
|
||||||
emake || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" install || die
|
|
||||||
|
|
||||||
dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
|
|
||||||
dohtml *.html
|
|
||||||
insinto /etc
|
|
||||||
newins doc/nanorc.sample nanorc
|
|
||||||
|
|
||||||
insinto /usr/share/nano
|
|
||||||
doins "${FILESDIR}"/*.nanorc || die
|
|
||||||
echo $'\n''# include "/usr/share/nano/gentoo.nanorc"' >> "${D}"/etc/nanorc
|
|
||||||
|
|
||||||
dodir /usr/bin
|
|
||||||
dosym /bin/nano /usr/bin/nano
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
einfo "More helpful info about nano, visit the GDP page:"
|
|
||||||
einfo "https://www.gentoo.org/doc/en/nano-basics-guide.xml"
|
|
||||||
}
|
|
@ -1,79 +0,0 @@
|
|||||||
# Copyright 1999-2009 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
ECVS_SERVER="savannah.gnu.org:/cvsroot/nano"
|
|
||||||
ECVS_MODULE="nano"
|
|
||||||
ECVS_AUTH="pserver"
|
|
||||||
ECVS_USER="anonymous"
|
|
||||||
inherit cvs
|
|
||||||
else
|
|
||||||
MY_P=${PN}-${PV/_}
|
|
||||||
SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="GNU GPL'd Pico clone with more functionality"
|
|
||||||
HOMEPAGE="http://www.nano-editor.org/"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
|
|
||||||
IUSE="debug justify minimal ncurses nls slang spell unicode"
|
|
||||||
|
|
||||||
DEPEND=">=sys-libs/ncurses-5.2
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
!ncurses? ( slang? ( sys-libs/slang ) )"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
cd "${S}"
|
|
||||||
if [[ ! -e configure ]] ; then
|
|
||||||
./autogen.sh || die "autogen failed"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local myconf=""
|
|
||||||
use ncurses \
|
|
||||||
&& myconf="--without-slang" \
|
|
||||||
|| myconf="${myconf} $(use_with slang)"
|
|
||||||
|
|
||||||
econf \
|
|
||||||
--bindir=/bin \
|
|
||||||
--enable-color \
|
|
||||||
--enable-multibuffer \
|
|
||||||
--enable-nanorc \
|
|
||||||
--disable-wrapping-as-root \
|
|
||||||
$(use_enable spell speller) \
|
|
||||||
$(use_enable justify) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable unicode utf8) \
|
|
||||||
$(use_enable minimal tiny) \
|
|
||||||
${myconf} \
|
|
||||||
|| die "configure failed"
|
|
||||||
emake || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" install || die
|
|
||||||
|
|
||||||
dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
|
|
||||||
dohtml *.html
|
|
||||||
insinto /etc
|
|
||||||
newins doc/nanorc.sample nanorc
|
|
||||||
|
|
||||||
insinto /usr/share/nano
|
|
||||||
doins "${FILESDIR}"/*.nanorc || die
|
|
||||||
echo $'\n''# include "/usr/share/nano/gentoo.nanorc"' >> "${D}"/etc/nanorc
|
|
||||||
|
|
||||||
dodir /usr/bin
|
|
||||||
dosym /bin/nano /usr/bin/nano
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
einfo "More helpful info about nano, visit the GDP page:"
|
|
||||||
einfo "https://www.gentoo.org/doc/en/nano-basics-guide.xml"
|
|
||||||
}
|
|
@ -1,84 +0,0 @@
|
|||||||
# Copyright 1999-2009 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=2
|
|
||||||
inherit eutils
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano"
|
|
||||||
inherit subversion
|
|
||||||
else
|
|
||||||
MY_P=${PN}-${PV/_}
|
|
||||||
SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="GNU GPL'd Pico clone with more functionality"
|
|
||||||
HOMEPAGE="http://www.nano-editor.org/"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
|
||||||
IUSE="debug justify minimal ncurses nls slang spell unicode"
|
|
||||||
|
|
||||||
DEPEND=">=sys-libs/ncurses-5.2[unicode?]
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
!ncurses? ( slang? ( sys-libs/slang ) )"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
subversion_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${A}
|
|
||||||
fi
|
|
||||||
cd "${S}"
|
|
||||||
if [[ ! -e configure ]] ; then
|
|
||||||
./autogen.sh || die "autogen failed"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf=""
|
|
||||||
use ncurses \
|
|
||||||
&& myconf="--without-slang" \
|
|
||||||
|| myconf="${myconf} $(use_with slang)"
|
|
||||||
|
|
||||||
econf \
|
|
||||||
--bindir=/bin \
|
|
||||||
$(use_enable !minimal color) \
|
|
||||||
$(use_enable !minimal multibuffer) \
|
|
||||||
$(use_enable !minimal nanorc) \
|
|
||||||
--disable-wrapping-as-root \
|
|
||||||
$(use_enable spell speller) \
|
|
||||||
$(use_enable justify) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable unicode utf8) \
|
|
||||||
$(use_enable minimal tiny) \
|
|
||||||
${myconf} \
|
|
||||||
|| die "configure failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" install || die
|
|
||||||
|
|
||||||
dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
|
|
||||||
dohtml doc/faq.html
|
|
||||||
insinto /etc
|
|
||||||
newins doc/nanorc.sample nanorc
|
|
||||||
|
|
||||||
dodir /usr/bin
|
|
||||||
dosym /bin/nano /usr/bin/nano
|
|
||||||
|
|
||||||
insinto /usr/share/nano
|
|
||||||
local f
|
|
||||||
for f in "${FILESDIR}"/*.nanorc ; do
|
|
||||||
[[ -e ${D}/usr/share/nano/${f##*/} ]] && continue
|
|
||||||
doins "${f}" || die
|
|
||||||
echo "# include \"/usr/share/nano/${f##*/}\"" >> "${D}"/etc/nanorc
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
einfo "More helpful info about nano, visit the GDP page:"
|
|
||||||
einfo "https://www.gentoo.org/doc/en/nano-basics-guide.xml"
|
|
||||||
}
|
|
@ -1,84 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
inherit eutils
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano"
|
|
||||||
inherit subversion
|
|
||||||
else
|
|
||||||
MY_P=${PN}-${PV/_}
|
|
||||||
SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="GNU GPL'd Pico clone with more functionality"
|
|
||||||
HOMEPAGE="http://www.nano-editor.org/"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug justify minimal ncurses nls slang spell unicode"
|
|
||||||
|
|
||||||
DEPEND=">=sys-libs/ncurses-5.2[unicode?]
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
!ncurses? ( slang? ( sys-libs/slang ) )"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
subversion_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${A}
|
|
||||||
fi
|
|
||||||
cd "${S}"
|
|
||||||
if [[ ! -e configure ]] ; then
|
|
||||||
./autogen.sh || die "autogen failed"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf=""
|
|
||||||
use ncurses \
|
|
||||||
&& myconf="--without-slang" \
|
|
||||||
|| myconf="${myconf} $(use_with slang)"
|
|
||||||
|
|
||||||
econf \
|
|
||||||
--bindir="${EPREFIX}"/bin \
|
|
||||||
$(use_enable !minimal color) \
|
|
||||||
$(use_enable !minimal multibuffer) \
|
|
||||||
$(use_enable !minimal nanorc) \
|
|
||||||
--disable-wrapping-as-root \
|
|
||||||
$(use_enable spell speller) \
|
|
||||||
$(use_enable justify) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable unicode utf8) \
|
|
||||||
$(use_enable minimal tiny) \
|
|
||||||
${myconf} \
|
|
||||||
|| die "configure failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" install || die
|
|
||||||
|
|
||||||
dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
|
|
||||||
dohtml doc/faq.html
|
|
||||||
insinto /etc
|
|
||||||
newins doc/nanorc.sample nanorc
|
|
||||||
|
|
||||||
dodir /usr/bin
|
|
||||||
dosym /bin/nano /usr/bin/nano
|
|
||||||
|
|
||||||
insinto /usr/share/nano
|
|
||||||
local f
|
|
||||||
for f in "${FILESDIR}"/*.nanorc ; do
|
|
||||||
[[ -e ${ED}/usr/share/nano/${f##*/} ]] && continue
|
|
||||||
doins "${f}" || die
|
|
||||||
echo "# include \"/usr/share/nano/${f##*/}\"" >> "${ED}"/etc/nanorc
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
einfo "More helpful info about nano, visit the GDP page:"
|
|
||||||
einfo "https://www.gentoo.org/doc/en/nano-basics-guide.xml"
|
|
||||||
}
|
|
@ -1,71 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
|
|
||||||
inherit eutils autotools
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano"
|
|
||||||
inherit subversion autotools
|
|
||||||
else
|
|
||||||
MY_P=${PN}-${PV/_}
|
|
||||||
SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="GNU GPL'd Pico clone with more functionality"
|
|
||||||
HOMEPAGE="http://www.nano-editor.org/"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug justify minimal ncurses nls slang spell unicode"
|
|
||||||
|
|
||||||
RDEPEND=">=sys-libs/ncurses-5.9-r1[unicode?]
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
!ncurses? ( slang? ( sys-libs/slang ) )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/pkgconfig"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.3.1-ncurses-pkg-config.patch
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf=""
|
|
||||||
use ncurses \
|
|
||||||
&& myconf="--without-slang" \
|
|
||||||
|| myconf="${myconf} $(use_with slang)"
|
|
||||||
|
|
||||||
econf \
|
|
||||||
--bindir="${EPREFIX}"/bin \
|
|
||||||
$(use_enable !minimal color) \
|
|
||||||
$(use_enable !minimal multibuffer) \
|
|
||||||
$(use_enable !minimal nanorc) \
|
|
||||||
--disable-wrapping-as-root \
|
|
||||||
$(use_enable spell speller) \
|
|
||||||
$(use_enable justify) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable unicode utf8) \
|
|
||||||
$(use_enable minimal tiny) \
|
|
||||||
${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" install || die
|
|
||||||
|
|
||||||
dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
|
|
||||||
dohtml doc/faq.html
|
|
||||||
insinto /etc
|
|
||||||
newins doc/nanorc.sample nanorc
|
|
||||||
|
|
||||||
dodir /usr/bin
|
|
||||||
dosym /bin/nano /usr/bin/nano
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
einfo "More helpful info about nano, visit the GDP page:"
|
|
||||||
einfo "https://www.gentoo.org/doc/en/nano-basics-guide.xml"
|
|
||||||
}
|
|
@ -1,68 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
|
|
||||||
inherit eutils autotools
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano"
|
|
||||||
inherit subversion autotools
|
|
||||||
else
|
|
||||||
MY_P=${PN}-${PV/_}
|
|
||||||
SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="GNU GPL'd Pico clone with more functionality"
|
|
||||||
HOMEPAGE="http://www.nano-editor.org/ https://www.gentoo.org/doc/en/nano-basics-guide.xml"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug justify +magic minimal ncurses nls slang spell unicode"
|
|
||||||
|
|
||||||
RDEPEND=">=sys-libs/ncurses-5.9-r1[unicode?]
|
|
||||||
magic? ( sys-apps/file )
|
|
||||||
nls? ( virtual/libintl )
|
|
||||||
!ncurses? ( slang? ( sys-libs/slang ) )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
virtual/pkgconfig"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.3.1-drop-target.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.3.1-ncurses-pkg-config.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.3.1-bind-unbind-docs.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.3.1-{shell,gentoo}-nanorc.patch
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
eval export ac_cv_{header_magic_h,lib_magic_magic_open}=$(usex magic)
|
|
||||||
econf \
|
|
||||||
--bindir="${EPREFIX}"/bin \
|
|
||||||
$(use_enable !minimal color) \
|
|
||||||
$(use_enable !minimal multibuffer) \
|
|
||||||
$(use_enable !minimal nanorc) \
|
|
||||||
--disable-wrapping-as-root \
|
|
||||||
$(use_enable spell speller) \
|
|
||||||
$(use_enable justify) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable unicode utf8) \
|
|
||||||
$(use_enable minimal tiny) \
|
|
||||||
$(usex ncurses --without-slang $(use_with slang))
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" install || die
|
|
||||||
rm -rf "${ED}"/usr/share/nano/man-html
|
|
||||||
|
|
||||||
dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
|
|
||||||
dohtml doc/faq.html
|
|
||||||
insinto /etc
|
|
||||||
newins doc/nanorc.sample nanorc
|
|
||||||
|
|
||||||
dodir /usr/bin
|
|
||||||
dosym /bin/nano /usr/bin/nano
|
|
||||||
}
|
|
@ -1,77 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
inherit eutils
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano"
|
|
||||||
inherit subversion
|
|
||||||
else
|
|
||||||
MY_P=${PN}-${PV/_}
|
|
||||||
SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="GNU GPL'd Pico clone with more functionality"
|
|
||||||
HOMEPAGE="http://www.nano-editor.org/"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug justify minimal ncurses nls slang spell unicode"
|
|
||||||
|
|
||||||
DEPEND=">=sys-libs/ncurses-5.2[unicode?]
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
!ncurses? ( slang? ( sys-libs/slang ) )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if [[ ! -e configure ]] ; then
|
|
||||||
./autogen.sh || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myconf=""
|
|
||||||
use ncurses \
|
|
||||||
&& myconf="--without-slang" \
|
|
||||||
|| myconf="${myconf} $(use_with slang)"
|
|
||||||
|
|
||||||
econf \
|
|
||||||
--bindir="${EPREFIX}"/bin \
|
|
||||||
$(use_enable !minimal color) \
|
|
||||||
$(use_enable !minimal multibuffer) \
|
|
||||||
$(use_enable !minimal nanorc) \
|
|
||||||
--disable-wrapping-as-root \
|
|
||||||
$(use_enable spell speller) \
|
|
||||||
$(use_enable justify) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable unicode utf8) \
|
|
||||||
$(use_enable minimal tiny) \
|
|
||||||
${myconf}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" install || die
|
|
||||||
|
|
||||||
dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
|
|
||||||
dohtml doc/faq.html
|
|
||||||
insinto /etc
|
|
||||||
newins doc/nanorc.sample nanorc
|
|
||||||
|
|
||||||
dodir /usr/bin
|
|
||||||
dosym /bin/nano /usr/bin/nano
|
|
||||||
|
|
||||||
insinto /usr/share/nano
|
|
||||||
local f
|
|
||||||
for f in "${FILESDIR}"/*.nanorc ; do
|
|
||||||
[[ -e ${ED}/usr/share/nano/${f##*/} ]] && continue
|
|
||||||
doins "${f}" || die
|
|
||||||
echo "# include \"/usr/share/nano/${f##*/}\"" >> "${ED}"/etc/nanorc
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
einfo "More helpful info about nano, visit the GDP page:"
|
|
||||||
einfo "https://www.gentoo.org/doc/en/nano-basics-guide.xml"
|
|
||||||
}
|
|
@ -1,79 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
|
|
||||||
inherit eutils autotools
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano"
|
|
||||||
inherit subversion autotools
|
|
||||||
else
|
|
||||||
MY_P=${PN}-${PV/_}
|
|
||||||
SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="GNU GPL'd Pico clone with more functionality"
|
|
||||||
HOMEPAGE="http://www.nano-editor.org/ https://www.gentoo.org/doc/en/nano-basics-guide.xml"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug justify +magic minimal ncurses nls slang +spell unicode"
|
|
||||||
|
|
||||||
RDEPEND=">=sys-libs/ncurses-5.9-r1[unicode?]
|
|
||||||
magic? ( sys-apps/file )
|
|
||||||
nls? ( virtual/libintl )
|
|
||||||
!ncurses? ( slang? ( sys-libs/slang ) )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
virtual/pkgconfig"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.3.1-ncurses-pkg-config.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.3.2-bind-unbind-docs.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.3.1-{shell,gentoo}-nanorc.patch
|
|
||||||
epatch_user
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
eval export ac_cv_{header_magic_h,lib_magic_magic_open}=$(usex magic)
|
|
||||||
local myconf=()
|
|
||||||
case ${CHOST} in
|
|
||||||
*-gnu*|*-uclibc*) myconf+=( "--with-wordbounds" ) ;; #467848
|
|
||||||
esac
|
|
||||||
econf \
|
|
||||||
--bindir="${EPREFIX}"/bin \
|
|
||||||
$(use_enable !minimal color) \
|
|
||||||
$(use_enable !minimal multibuffer) \
|
|
||||||
$(use_enable !minimal nanorc) \
|
|
||||||
--disable-wrapping-as-root \
|
|
||||||
$(use_enable spell speller) \
|
|
||||||
$(use_enable justify) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable unicode utf8) \
|
|
||||||
$(use_enable minimal tiny) \
|
|
||||||
$(usex ncurses --without-slang $(use_with slang)) \
|
|
||||||
"${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
rm -rf "${ED}"/usr/share/nano/man-html
|
|
||||||
|
|
||||||
dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
|
|
||||||
dohtml doc/faq.html
|
|
||||||
insinto /etc
|
|
||||||
newins doc/nanorc.sample nanorc
|
|
||||||
if ! use minimal ; then
|
|
||||||
# Enable colorization by default.
|
|
||||||
sed -i \
|
|
||||||
-e '/^# include /s:# *::' \
|
|
||||||
"${ED}"/etc/nanorc || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodir /usr/bin
|
|
||||||
dosym /bin/nano /usr/bin/nano
|
|
||||||
}
|
|
@ -1,72 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
|
|
||||||
inherit eutils autotools
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano"
|
|
||||||
inherit subversion autotools
|
|
||||||
else
|
|
||||||
MY_P=${PN}-${PV/_}
|
|
||||||
SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="GNU GPL'd Pico clone with more functionality"
|
|
||||||
HOMEPAGE="http://www.nano-editor.org/ https://www.gentoo.org/doc/en/nano-basics-guide.xml"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug justify +magic minimal ncurses nls slang spell unicode"
|
|
||||||
|
|
||||||
RDEPEND=">=sys-libs/ncurses-5.9-r1[unicode?]
|
|
||||||
magic? ( sys-apps/file )
|
|
||||||
nls? ( virtual/libintl )
|
|
||||||
!ncurses? ( slang? ( sys-libs/slang ) )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
virtual/pkgconfig"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.3.1-ncurses-pkg-config.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.3.2-bind-unbind-docs.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.3.1-{shell,gentoo}-nanorc.patch
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
eval export ac_cv_{header_magic_h,lib_magic_magic_open}=$(usex magic)
|
|
||||||
local myconf=()
|
|
||||||
case ${CHOST} in
|
|
||||||
*-gnu*|*-uclibc*) myconf+=( "--with-wordbounds" ) ;; #467848
|
|
||||||
esac
|
|
||||||
econf \
|
|
||||||
--bindir="${EPREFIX}"/bin \
|
|
||||||
$(use_enable !minimal color) \
|
|
||||||
$(use_enable !minimal multibuffer) \
|
|
||||||
$(use_enable !minimal nanorc) \
|
|
||||||
--disable-wrapping-as-root \
|
|
||||||
$(use_enable spell speller) \
|
|
||||||
$(use_enable justify) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable unicode utf8) \
|
|
||||||
$(use_enable minimal tiny) \
|
|
||||||
$(usex ncurses --without-slang $(use_with slang)) \
|
|
||||||
"${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" install || die
|
|
||||||
rm -rf "${ED}"/usr/share/nano/man-html
|
|
||||||
|
|
||||||
dodoc ChangeLog README doc/nanorc.sample AUTHORS BUGS NEWS TODO
|
|
||||||
dohtml doc/faq.html
|
|
||||||
insinto /etc
|
|
||||||
newins doc/nanorc.sample nanorc
|
|
||||||
|
|
||||||
dodir /usr/bin
|
|
||||||
dosym /bin/nano /usr/bin/nano
|
|
||||||
}
|
|
@ -1,76 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano"
|
|
||||||
inherit subversion autotools
|
|
||||||
else
|
|
||||||
MY_P=${PN}-${PV/_}
|
|
||||||
SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="GNU GPL'd Pico clone with more functionality"
|
|
||||||
HOMEPAGE="http://www.nano-editor.org/ https://www.gentoo.org/doc/en/nano-basics-guide.xml"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug justify +magic minimal ncurses nls slang +spell unicode"
|
|
||||||
|
|
||||||
RDEPEND=">=sys-libs/ncurses-5.9-r1[unicode?]
|
|
||||||
magic? ( sys-apps/file )
|
|
||||||
nls? ( virtual/libintl )
|
|
||||||
!ncurses? ( slang? ( sys-libs/slang ) )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
virtual/pkgconfig"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
eval export ac_cv_{header_magic_h,lib_magic_magic_open}=$(usex magic)
|
|
||||||
local myconf=()
|
|
||||||
case ${CHOST} in
|
|
||||||
*-gnu*|*-uclibc*) myconf+=( "--with-wordbounds" ) ;; #467848
|
|
||||||
esac
|
|
||||||
econf \
|
|
||||||
--bindir="${EPREFIX}"/bin \
|
|
||||||
--htmldir=/trash \
|
|
||||||
$(use_enable !minimal color) \
|
|
||||||
$(use_enable !minimal multibuffer) \
|
|
||||||
$(use_enable !minimal nanorc) \
|
|
||||||
--disable-wrapping-as-root \
|
|
||||||
$(use_enable spell speller) \
|
|
||||||
$(use_enable justify) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable unicode utf8) \
|
|
||||||
$(use_enable minimal tiny) \
|
|
||||||
$(usex ncurses --without-slang $(use_with slang)) \
|
|
||||||
"${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
rm -rf "${D}"/trash
|
|
||||||
|
|
||||||
dodoc doc/nanorc.sample
|
|
||||||
dohtml doc/faq.html
|
|
||||||
insinto /etc
|
|
||||||
newins doc/nanorc.sample nanorc
|
|
||||||
if ! use minimal ; then
|
|
||||||
# Enable colorization by default.
|
|
||||||
sed -i \
|
|
||||||
-e '/^# include /s:# *::' \
|
|
||||||
"${ED}"/etc/nanorc || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodir /usr/bin
|
|
||||||
dosym /bin/nano /usr/bin/nano
|
|
||||||
}
|
|
@ -1,76 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
if [[ ${PV} == "9999" ]] ; then
|
|
||||||
ESVN_REPO_URI="svn://svn.savannah.gnu.org/nano/trunk/nano"
|
|
||||||
inherit subversion autotools
|
|
||||||
else
|
|
||||||
MY_P=${PN}-${PV/_}
|
|
||||||
SRC_URI="http://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="GNU GPL'd Pico clone with more functionality"
|
|
||||||
HOMEPAGE="http://www.nano-editor.org/ https://www.gentoo.org/doc/en/nano-basics-guide.xml"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="debug justify +magic minimal ncurses nls slang +spell unicode"
|
|
||||||
|
|
||||||
RDEPEND=">=sys-libs/ncurses-5.9-r1[unicode?]
|
|
||||||
magic? ( sys-apps/file )
|
|
||||||
nls? ( virtual/libintl )
|
|
||||||
!ncurses? ( slang? ( sys-libs/slang ) )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
virtual/pkgconfig"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
eval export ac_cv_{header_magic_h,lib_magic_magic_open}=$(usex magic)
|
|
||||||
local myconf=()
|
|
||||||
case ${CHOST} in
|
|
||||||
*-gnu*|*-uclibc*) myconf+=( "--with-wordbounds" ) ;; #467848
|
|
||||||
esac
|
|
||||||
econf \
|
|
||||||
--bindir="${EPREFIX}"/bin \
|
|
||||||
--htmldir=/trash \
|
|
||||||
$(use_enable !minimal color) \
|
|
||||||
$(use_enable !minimal multibuffer) \
|
|
||||||
$(use_enable !minimal nanorc) \
|
|
||||||
--disable-wrapping-as-root \
|
|
||||||
$(use_enable spell speller) \
|
|
||||||
$(use_enable justify) \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(use_enable unicode utf8) \
|
|
||||||
$(use_enable minimal tiny) \
|
|
||||||
$(usex ncurses --without-slang $(use_with slang)) \
|
|
||||||
"${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
rm -rf "${D}"/trash
|
|
||||||
|
|
||||||
dodoc doc/nanorc.sample
|
|
||||||
dohtml doc/faq.html
|
|
||||||
insinto /etc
|
|
||||||
newins doc/nanorc.sample nanorc
|
|
||||||
if ! use minimal ; then
|
|
||||||
# Enable colorization by default.
|
|
||||||
sed -i \
|
|
||||||
-e '/^# include /s:# *::' \
|
|
||||||
"${ED}"/etc/nanorc || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
dodir /usr/bin
|
|
||||||
dosym /bin/nano /usr/bin/nano
|
|
||||||
}
|
|
@ -0,0 +1,48 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
LANGS="ru"
|
||||||
|
|
||||||
|
inherit eutils qt4-r2
|
||||||
|
|
||||||
|
MY_P="${P}-src"
|
||||||
|
|
||||||
|
DESCRIPTION="Advanced text editor with syntax highlighting"
|
||||||
|
HOMEPAGE="http://qt-apps.org/content/show.php/QWriter?content=106377"
|
||||||
|
#upstream failed to provide a sane url
|
||||||
|
SRC_URI="https://qwriter.googlecode.com/files/${MY_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="dev-qt/qtgui:4
|
||||||
|
x11-libs/qscintilla"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
sed -i "s:languages:/usr/share/${PN}/languages:" src/MainWindow.cpp \
|
||||||
|
|| die "failed to fix translation path"
|
||||||
|
# gcc-4.7. Bug #425252
|
||||||
|
epatch "${FILESDIR}"/${P}-gcc47.patch
|
||||||
|
qt4-r2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin bin/${PN}
|
||||||
|
newicon images/w.png ${PN}.png
|
||||||
|
make_desktop_entry ${PN} QWriter ${PN}
|
||||||
|
insinto /usr/share/${PN}/languages/
|
||||||
|
for x in ${LANGS};do
|
||||||
|
for j in ${LINGUAS};do
|
||||||
|
if [[ $x == $j ]]; then
|
||||||
|
doins languages/${PN}_$x.qm
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST vile-9.8k.tgz 2278349 SHA256 af8386a43fdf82ba3c8e4187b8fe850543c5baac769cf26bb2b437e5b3689e24 SHA512 93dce951701f156ebe5aecd39a86556658334a2f262919974bd302238e4b78a63ea6a675fc47fd5b170055e7fba8134db27ff26076be0d1b0cf7a58d697b5836 WHIRLPOOL e75ded06e6eb5234a673a92d27ceb1632150c60e580a27e0c00267a147a3b02005afb62843e373a3112ed8a353f230d4101ad1adfa0a045cba47d21f1b301a20
|
DIST vile-9.8k.tgz 2278349 SHA256 af8386a43fdf82ba3c8e4187b8fe850543c5baac769cf26bb2b437e5b3689e24 SHA512 93dce951701f156ebe5aecd39a86556658334a2f262919974bd302238e4b78a63ea6a675fc47fd5b170055e7fba8134db27ff26076be0d1b0cf7a58d697b5836 WHIRLPOOL e75ded06e6eb5234a673a92d27ceb1632150c60e580a27e0c00267a147a3b02005afb62843e373a3112ed8a353f230d4101ad1adfa0a045cba47d21f1b301a20
|
||||||
DIST vile-9.8n.tgz 2300678 SHA256 36cea866603483e43e705ba1a96d0d52dc81f9c0d97fbefe5150c50b04b258bb SHA512 c87350325f47ef9338d9e7dca1a22b0d2c23b632cc2338ab07b00a986fc911f2bfbb05c9dcb98f4b606c2f2d0294dec26bcbf45a711cb6ad25c3ecf4b84c9037 WHIRLPOOL 16be864f128b256049a6d0e7cd39a3256415eabec66bcc632db09c6e5d07ef72b775fe28c38c2cfa805e0a495d3bf83d25ac9c5c6d3decaa5c165c91ee5558b1
|
DIST vile-9.8n.tgz 2300678 SHA256 36cea866603483e43e705ba1a96d0d52dc81f9c0d97fbefe5150c50b04b258bb SHA512 c87350325f47ef9338d9e7dca1a22b0d2c23b632cc2338ab07b00a986fc911f2bfbb05c9dcb98f4b606c2f2d0294dec26bcbf45a711cb6ad25c3ecf4b84c9037 WHIRLPOOL 16be864f128b256049a6d0e7cd39a3256415eabec66bcc632db09c6e5d07ef72b775fe28c38c2cfa805e0a495d3bf83d25ac9c5c6d3decaa5c165c91ee5558b1
|
||||||
DIST vile-9.8o.tgz 2304783 SHA256 45625c060cb9da3d68bba0d308fa61cb6a1cd7c7fd8b0e83aba8890632a19b24 SHA512 ddcc01b47990cc603f4af2c4738ed989d2be51018aa0bbc96079771f2809f11df160c6bc597dc50bf30f47ef5ec7c78646cbc19d7c381ef836de7bdb884bab87 WHIRLPOOL 746e2face1cbf0881cc2c10a57b5d412a30668805a62c8f5db64ffb20e9a74285ef1e5a05e6d607530705427360b13a1cb22dd62ae1dfe02ac190e1bfea518cd
|
DIST vile-9.8o.tgz 2304783 SHA256 45625c060cb9da3d68bba0d308fa61cb6a1cd7c7fd8b0e83aba8890632a19b24 SHA512 ddcc01b47990cc603f4af2c4738ed989d2be51018aa0bbc96079771f2809f11df160c6bc597dc50bf30f47ef5ec7c78646cbc19d7c381ef836de7bdb884bab87 WHIRLPOOL 746e2face1cbf0881cc2c10a57b5d412a30668805a62c8f5db64ffb20e9a74285ef1e5a05e6d607530705427360b13a1cb22dd62ae1dfe02ac190e1bfea518cd
|
||||||
|
DIST vile-9.8p.tgz 2312139 SHA256 e16fe2adbcf142212ffe8bfcd57a3b161886b1f2f7e6c8a3f7607fbfa24b82b7 SHA512 75c317a3a65665c9b1a0d5c5911701b698fa451ca397f7ef5c5ede726f92246866ad874f9127b8e374193951be58b7f828daa26bee3356af72fa761ceaba0b5e WHIRLPOOL 059db40253c7f867330388b6bfff13969a40c7db02ba80a9b54e719ff651c6ea4dbfe78ca42487fbf55f1588b6c63190abbc7e733c027ad480b4201eb2a381f2
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
DESCRIPTION="VI Like Emacs -- yet another full-featured vi clone"
|
||||||
|
HOMEPAGE="http://invisible-island.net/vile/"
|
||||||
|
SRC_URI="ftp://invisible-island.net/vile/current/${P}.tgz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||||
|
IUSE="perl"
|
||||||
|
|
||||||
|
RDEPEND=">=sys-libs/ncurses-5.2:0
|
||||||
|
perl? ( dev-lang/perl )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
sys-devel/flex
|
||||||
|
app-eselect/eselect-vi"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf \
|
||||||
|
--with-ncurses \
|
||||||
|
$(use_with perl )
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" INSTALL_OPT_S="" install
|
||||||
|
dodoc CHANGES* README doc/*.doc
|
||||||
|
dohtml doc/*.html
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
einfo "Updating ${EPREFIX}/usr/bin/vi symlink"
|
||||||
|
eselect vi update --if-unset
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
einfo "Updating ${EPREFIX}/usr/bin/vi symlink"
|
||||||
|
eselect vi update --if-unset
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST vile-9.8k.tgz 2278349 SHA256 af8386a43fdf82ba3c8e4187b8fe850543c5baac769cf26bb2b437e5b3689e24 SHA512 93dce951701f156ebe5aecd39a86556658334a2f262919974bd302238e4b78a63ea6a675fc47fd5b170055e7fba8134db27ff26076be0d1b0cf7a58d697b5836 WHIRLPOOL e75ded06e6eb5234a673a92d27ceb1632150c60e580a27e0c00267a147a3b02005afb62843e373a3112ed8a353f230d4101ad1adfa0a045cba47d21f1b301a20
|
DIST vile-9.8k.tgz 2278349 SHA256 af8386a43fdf82ba3c8e4187b8fe850543c5baac769cf26bb2b437e5b3689e24 SHA512 93dce951701f156ebe5aecd39a86556658334a2f262919974bd302238e4b78a63ea6a675fc47fd5b170055e7fba8134db27ff26076be0d1b0cf7a58d697b5836 WHIRLPOOL e75ded06e6eb5234a673a92d27ceb1632150c60e580a27e0c00267a147a3b02005afb62843e373a3112ed8a353f230d4101ad1adfa0a045cba47d21f1b301a20
|
||||||
DIST vile-9.8n.tgz 2300678 SHA256 36cea866603483e43e705ba1a96d0d52dc81f9c0d97fbefe5150c50b04b258bb SHA512 c87350325f47ef9338d9e7dca1a22b0d2c23b632cc2338ab07b00a986fc911f2bfbb05c9dcb98f4b606c2f2d0294dec26bcbf45a711cb6ad25c3ecf4b84c9037 WHIRLPOOL 16be864f128b256049a6d0e7cd39a3256415eabec66bcc632db09c6e5d07ef72b775fe28c38c2cfa805e0a495d3bf83d25ac9c5c6d3decaa5c165c91ee5558b1
|
DIST vile-9.8n.tgz 2300678 SHA256 36cea866603483e43e705ba1a96d0d52dc81f9c0d97fbefe5150c50b04b258bb SHA512 c87350325f47ef9338d9e7dca1a22b0d2c23b632cc2338ab07b00a986fc911f2bfbb05c9dcb98f4b606c2f2d0294dec26bcbf45a711cb6ad25c3ecf4b84c9037 WHIRLPOOL 16be864f128b256049a6d0e7cd39a3256415eabec66bcc632db09c6e5d07ef72b775fe28c38c2cfa805e0a495d3bf83d25ac9c5c6d3decaa5c165c91ee5558b1
|
||||||
DIST vile-9.8o.tgz 2304783 SHA256 45625c060cb9da3d68bba0d308fa61cb6a1cd7c7fd8b0e83aba8890632a19b24 SHA512 ddcc01b47990cc603f4af2c4738ed989d2be51018aa0bbc96079771f2809f11df160c6bc597dc50bf30f47ef5ec7c78646cbc19d7c381ef836de7bdb884bab87 WHIRLPOOL 746e2face1cbf0881cc2c10a57b5d412a30668805a62c8f5db64ffb20e9a74285ef1e5a05e6d607530705427360b13a1cb22dd62ae1dfe02ac190e1bfea518cd
|
DIST vile-9.8o.tgz 2304783 SHA256 45625c060cb9da3d68bba0d308fa61cb6a1cd7c7fd8b0e83aba8890632a19b24 SHA512 ddcc01b47990cc603f4af2c4738ed989d2be51018aa0bbc96079771f2809f11df160c6bc597dc50bf30f47ef5ec7c78646cbc19d7c381ef836de7bdb884bab87 WHIRLPOOL 746e2face1cbf0881cc2c10a57b5d412a30668805a62c8f5db64ffb20e9a74285ef1e5a05e6d607530705427360b13a1cb22dd62ae1dfe02ac190e1bfea518cd
|
||||||
|
DIST vile-9.8p.tgz 2312139 SHA256 e16fe2adbcf142212ffe8bfcd57a3b161886b1f2f7e6c8a3f7607fbfa24b82b7 SHA512 75c317a3a65665c9b1a0d5c5911701b698fa451ca397f7ef5c5ede726f92246866ad874f9127b8e374193951be58b7f828daa26bee3356af72fa761ceaba0b5e WHIRLPOOL 059db40253c7f867330388b6bfff13969a40c7db02ba80a9b54e719ff651c6ea4dbfe78ca42487fbf55f1588b6c63190abbc7e733c027ad480b4201eb2a381f2
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
MY_P="${PN/x/}-${PV}"
|
||||||
|
DESCRIPTION="VI Like Emacs -- yet another full-featured vi clone"
|
||||||
|
HOMEPAGE="http://invisible-island.net/vile/"
|
||||||
|
SRC_URI="ftp://invisible-island.net/vile/current/${MY_P}.tgz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
|
||||||
|
IUSE="perl"
|
||||||
|
|
||||||
|
RDEPEND="perl? ( dev-lang/perl )
|
||||||
|
=app-editors/vile-${PV}
|
||||||
|
>=x11-libs/libX11-1.0.0
|
||||||
|
>=x11-libs/libXt-1.0.0
|
||||||
|
>=x11-libs/libICE-1.0.0
|
||||||
|
>=x11-libs/libSM-1.0.0
|
||||||
|
>=x11-libs/libXaw-1.0.1
|
||||||
|
>=x11-libs/libXpm-3.5.4.2
|
||||||
|
>=x11-proto/xproto-7.0.4"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
sys-devel/flex"
|
||||||
|
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf \
|
||||||
|
--with-ncurses \
|
||||||
|
--with-x \
|
||||||
|
$(use_with perl)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin xvile
|
||||||
|
dodoc CHANGES* README doc/*.doc
|
||||||
|
dohtml doc/*.html
|
||||||
|
}
|
@ -0,0 +1,85 @@
|
|||||||
|
From f83d05c3be3c3bcc84f6fa229504848ee8078321 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Vincent Batts <vbatts@redhat.com>
|
||||||
|
Date: Fri, 7 Aug 2015 10:18:20 -0400
|
||||||
|
Subject: [PATCH] devicemapper: fix zero-sized field access
|
||||||
|
|
||||||
|
Fixes: #15279
|
||||||
|
|
||||||
|
Due to
|
||||||
|
https://github.com/golang/go/commit/7904946eeb35faece61bbf6f5b3cc8be2f519c17
|
||||||
|
the devices field is dropped.
|
||||||
|
|
||||||
|
This solution works on go1.4 and go1.5
|
||||||
|
|
||||||
|
Signed-off-by: Vincent Batts <vbatts@redhat.com>
|
||||||
|
---
|
||||||
|
daemon/graphdriver/devmapper/deviceset.go | 14 +++++++++-----
|
||||||
|
pkg/devicemapper/devmapper_wrapper.go | 18 +++++++++++++++---
|
||||||
|
2 files changed, 24 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/daemon/graphdriver/devmapper/deviceset.go b/daemon/graphdriver/devmapper/deviceset.go
|
||||||
|
index 6dddeb1..97e2032 100644
|
||||||
|
--- a/daemon/graphdriver/devmapper/deviceset.go
|
||||||
|
+++ b/daemon/graphdriver/devmapper/deviceset.go
|
||||||
|
@@ -1509,12 +1509,16 @@ func (devices *DeviceSet) deactivatePool() error {
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
- if d, err := devicemapper.GetDeps(devname); err == nil {
|
||||||
|
- // Access to more Debug output
|
||||||
|
- logrus.Debugf("[devmapper] devicemapper.GetDeps() %s: %#v", devname, d)
|
||||||
|
+
|
||||||
|
+ if devinfo.Exists == 0 {
|
||||||
|
+ return nil
|
||||||
|
}
|
||||||
|
- if devinfo.Exists != 0 {
|
||||||
|
- return devicemapper.RemoveDevice(devname)
|
||||||
|
+ if err := devicemapper.RemoveDevice(devname); err != nil {
|
||||||
|
+ return err
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ if d, err := devicemapper.GetDeps(devname); err == nil {
|
||||||
|
+ logrus.Warnf("[devmapper] device %s still has %d active dependents", devname, d.Count)
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
diff --git a/pkg/devicemapper/devmapper_wrapper.go b/pkg/devicemapper/devmapper_wrapper.go
|
||||||
|
index 87c2003..44ca772 100644
|
||||||
|
--- a/pkg/devicemapper/devmapper_wrapper.go
|
||||||
|
+++ b/pkg/devicemapper/devmapper_wrapper.go
|
||||||
|
@@ -38,7 +38,10 @@ static void log_with_errno_init()
|
||||||
|
*/
|
||||||
|
import "C"
|
||||||
|
|
||||||
|
-import "unsafe"
|
||||||
|
+import (
|
||||||
|
+ "reflect"
|
||||||
|
+ "unsafe"
|
||||||
|
+)
|
||||||
|
|
||||||
|
type (
|
||||||
|
CDmTask C.struct_dm_task
|
||||||
|
@@ -184,12 +187,21 @@ func dmTaskGetDepsFct(task *CDmTask) *Deps {
|
||||||
|
if Cdeps == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+ // golang issue: https://github.com/golang/go/issues/11925
|
||||||
|
+ hdr := reflect.SliceHeader{
|
||||||
|
+ Data: uintptr(unsafe.Pointer(uintptr(unsafe.Pointer(Cdeps)) + unsafe.Sizeof(*Cdeps))),
|
||||||
|
+ Len: int(Cdeps.count),
|
||||||
|
+ Cap: int(Cdeps.count),
|
||||||
|
+ }
|
||||||
|
+ devices := *(*[]C.uint64_t)(unsafe.Pointer(&hdr))
|
||||||
|
+
|
||||||
|
deps := &Deps{
|
||||||
|
Count: uint32(Cdeps.count),
|
||||||
|
Filler: uint32(Cdeps.filler),
|
||||||
|
}
|
||||||
|
- for _, device := range Cdeps.device {
|
||||||
|
- deps.Device = append(deps.Device, (uint64)(device))
|
||||||
|
+ for _, device := range devices {
|
||||||
|
+ deps.Device = append(deps.Device, uint64(device))
|
||||||
|
}
|
||||||
|
return deps
|
||||||
|
}
|
@ -1,607 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
PYTHON_REQ_USE="ncurses,readline"
|
|
||||||
|
|
||||||
inherit eutils flag-o-matic linux-info toolchain-funcs multilib python-r1 \
|
|
||||||
user udev fcaps readme.gentoo pax-utils
|
|
||||||
|
|
||||||
BACKPORTS=
|
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
|
||||||
EGIT_REPO_URI="git://git.qemu.org/qemu.git"
|
|
||||||
inherit git-2
|
|
||||||
SRC_URI=""
|
|
||||||
else
|
|
||||||
SRC_URI="http://wiki.qemu-project.org/download/${P}.tar.bz2
|
|
||||||
${BACKPORTS:+
|
|
||||||
https://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz}"
|
|
||||||
KEYWORDS="amd64 ~ppc ~ppc64 x86 ~x86-fbsd"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="QEMU + Kernel-based Virtual Machine userland tools"
|
|
||||||
HOMEPAGE="http://www.qemu.org http://www.linux-kvm.org"
|
|
||||||
|
|
||||||
LICENSE="GPL-2 LGPL-2 BSD-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="accessibility +aio alsa bluetooth +caps +curl debug +fdt glusterfs \
|
|
||||||
gtk gtk2 infiniband iscsi +jpeg \
|
|
||||||
kernel_linux kernel_FreeBSD lzo ncurses nfs nls numa opengl +pin-upstream-blobs
|
|
||||||
+png pulseaudio python \
|
|
||||||
rbd sasl +seccomp sdl selinux smartcard snappy spice ssh static static-softmmu \
|
|
||||||
static-user systemtap tci test +threads tls usb usbredir +uuid vde +vhost-net \
|
|
||||||
virtfs +vnc xattr xen xfs"
|
|
||||||
|
|
||||||
COMMON_TARGETS="aarch64 alpha arm cris i386 m68k microblaze microblazeel mips
|
|
||||||
mips64 mips64el mipsel or32 ppc ppc64 s390x sh4 sh4eb sparc sparc64 unicore32
|
|
||||||
x86_64"
|
|
||||||
IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} lm32 moxie ppcemb xtensa xtensaeb"
|
|
||||||
IUSE_USER_TARGETS="${COMMON_TARGETS} armeb mipsn32 mipsn32el ppc64abi32 sparc32plus"
|
|
||||||
|
|
||||||
use_softmmu_targets=$(printf ' qemu_softmmu_targets_%s' ${IUSE_SOFTMMU_TARGETS})
|
|
||||||
use_user_targets=$(printf ' qemu_user_targets_%s' ${IUSE_USER_TARGETS})
|
|
||||||
IUSE+=" ${use_softmmu_targets} ${use_user_targets}"
|
|
||||||
|
|
||||||
# Require at least one softmmu or user target.
|
|
||||||
# Block USE flag configurations known to not work.
|
|
||||||
REQUIRED_USE="|| ( ${use_softmmu_targets} ${use_user_targets} )
|
|
||||||
${PYTHON_REQUIRED_USE}
|
|
||||||
gtk2? ( gtk )
|
|
||||||
qemu_softmmu_targets_arm? ( fdt )
|
|
||||||
qemu_softmmu_targets_microblaze? ( fdt )
|
|
||||||
qemu_softmmu_targets_ppc? ( fdt )
|
|
||||||
qemu_softmmu_targets_ppc64? ( fdt )
|
|
||||||
static? ( static-softmmu static-user )
|
|
||||||
static-softmmu? ( !alsa !pulseaudio !bluetooth !opengl !gtk !gtk2 )
|
|
||||||
virtfs? ( xattr )"
|
|
||||||
|
|
||||||
# Yep, you need both libcap and libcap-ng since virtfs only uses libcap.
|
|
||||||
#
|
|
||||||
# The attr lib isn't always linked in (although the USE flag is always
|
|
||||||
# respected). This is because qemu supports using the C library's API
|
|
||||||
# when available rather than always using the extranl library.
|
|
||||||
COMMON_LIB_DEPEND=">=dev-libs/glib-2.0[static-libs(+)]
|
|
||||||
sys-libs/zlib[static-libs(+)]
|
|
||||||
xattr? ( sys-apps/attr[static-libs(+)] )"
|
|
||||||
SOFTMMU_LIB_DEPEND="${COMMON_LIB_DEPEND}
|
|
||||||
>=x11-libs/pixman-0.28.0[static-libs(+)]
|
|
||||||
aio? ( dev-libs/libaio[static-libs(+)] )
|
|
||||||
caps? ( sys-libs/libcap-ng[static-libs(+)] )
|
|
||||||
curl? ( >=net-misc/curl-7.15.4[static-libs(+)] )
|
|
||||||
fdt? ( >=sys-apps/dtc-1.4.0[static-libs(+)] )
|
|
||||||
glusterfs? ( >=sys-cluster/glusterfs-3.4.0[static-libs(+)] )
|
|
||||||
infiniband? ( sys-infiniband/librdmacm:=[static-libs(+)] )
|
|
||||||
jpeg? ( virtual/jpeg:=[static-libs(+)] )
|
|
||||||
lzo? ( dev-libs/lzo:2[static-libs(+)] )
|
|
||||||
ncurses? ( sys-libs/ncurses:0=[static-libs(+)] )
|
|
||||||
nfs? ( >=net-fs/libnfs-1.9.3[static-libs(+)] )
|
|
||||||
numa? ( sys-process/numactl[static-libs(+)] )
|
|
||||||
png? ( media-libs/libpng:0=[static-libs(+)] )
|
|
||||||
rbd? ( sys-cluster/ceph[static-libs(+)] )
|
|
||||||
sasl? ( dev-libs/cyrus-sasl[static-libs(+)] )
|
|
||||||
sdl? ( >=media-libs/libsdl-1.2.11[static-libs(+)] )
|
|
||||||
seccomp? ( >=sys-libs/libseccomp-2.1.0[static-libs(+)] )
|
|
||||||
snappy? ( app-arch/snappy[static-libs(+)] )
|
|
||||||
spice? ( >=app-emulation/spice-0.12.0[static-libs(+)] )
|
|
||||||
ssh? ( >=net-libs/libssh2-1.2.8[static-libs(+)] )
|
|
||||||
tls? ( net-libs/gnutls[static-libs(+)] )
|
|
||||||
usb? ( >=virtual/libusb-1-r1[static-libs(+)] )
|
|
||||||
uuid? ( >=sys-apps/util-linux-2.16.0[static-libs(+)] )
|
|
||||||
vde? ( net-misc/vde[static-libs(+)] )
|
|
||||||
xfs? ( sys-fs/xfsprogs[static-libs(+)] )"
|
|
||||||
USER_LIB_DEPEND="${COMMON_LIB_DEPEND}"
|
|
||||||
X86_FIRMWARE_DEPEND="
|
|
||||||
>=sys-firmware/ipxe-1.0.0_p20130624
|
|
||||||
pin-upstream-blobs? (
|
|
||||||
~sys-firmware/seabios-1.7.5
|
|
||||||
~sys-firmware/sgabios-0.1_pre8
|
|
||||||
~sys-firmware/vgabios-0.7a
|
|
||||||
)
|
|
||||||
!pin-upstream-blobs? (
|
|
||||||
sys-firmware/seabios
|
|
||||||
sys-firmware/sgabios
|
|
||||||
sys-firmware/vgabios
|
|
||||||
)"
|
|
||||||
CDEPEND="
|
|
||||||
!static-softmmu? ( $(printf "%s? ( ${SOFTMMU_LIB_DEPEND//\[static-libs(+)]} ) " ${use_softmmu_targets}) )
|
|
||||||
!static-user? ( $(printf "%s? ( ${USER_LIB_DEPEND//\[static-libs(+)]} ) " ${use_user_targets}) )
|
|
||||||
qemu_softmmu_targets_i386? ( ${X86_FIRMWARE_DEPEND} )
|
|
||||||
qemu_softmmu_targets_x86_64? ( ${X86_FIRMWARE_DEPEND} )
|
|
||||||
accessibility? ( app-accessibility/brltty )
|
|
||||||
alsa? ( >=media-libs/alsa-lib-1.0.13 )
|
|
||||||
bluetooth? ( net-wireless/bluez )
|
|
||||||
gtk? (
|
|
||||||
gtk2? ( x11-libs/gtk+:2 )
|
|
||||||
!gtk2? ( x11-libs/gtk+:3 )
|
|
||||||
x11-libs/vte:2.90
|
|
||||||
)
|
|
||||||
iscsi? ( net-libs/libiscsi )
|
|
||||||
opengl? ( virtual/opengl )
|
|
||||||
pulseaudio? ( media-sound/pulseaudio )
|
|
||||||
python? ( ${PYTHON_DEPS} )
|
|
||||||
sdl? ( media-libs/libsdl[X] )
|
|
||||||
smartcard? ( dev-libs/nss !app-emulation/libcacard )
|
|
||||||
spice? ( >=app-emulation/spice-protocol-0.12.3 )
|
|
||||||
systemtap? ( dev-util/systemtap )
|
|
||||||
usbredir? ( >=sys-apps/usbredir-0.6 )
|
|
||||||
virtfs? ( sys-libs/libcap )
|
|
||||||
xen? ( app-emulation/xen-tools )"
|
|
||||||
DEPEND="${CDEPEND}
|
|
||||||
dev-lang/perl
|
|
||||||
=dev-lang/python-2*
|
|
||||||
sys-apps/texinfo
|
|
||||||
virtual/pkgconfig
|
|
||||||
kernel_linux? ( >=sys-kernel/linux-headers-2.6.35 )
|
|
||||||
gtk? ( nls? ( sys-devel/gettext ) )
|
|
||||||
static-softmmu? ( $(printf "%s? ( ${SOFTMMU_LIB_DEPEND} ) " ${use_softmmu_targets}) )
|
|
||||||
static-user? ( $(printf "%s? ( ${USER_LIB_DEPEND} ) " ${use_user_targets}) )
|
|
||||||
test? (
|
|
||||||
dev-libs/glib[utils]
|
|
||||||
sys-devel/bc
|
|
||||||
)"
|
|
||||||
RDEPEND="${CDEPEND}
|
|
||||||
selinux? ( sec-policy/selinux-qemu )
|
|
||||||
"
|
|
||||||
|
|
||||||
STRIP_MASK="/usr/share/qemu/palcode-clipper"
|
|
||||||
|
|
||||||
QA_PREBUILT="
|
|
||||||
usr/share/qemu/openbios-ppc
|
|
||||||
usr/share/qemu/openbios-sparc64
|
|
||||||
usr/share/qemu/openbios-sparc32
|
|
||||||
usr/share/qemu/palcode-clipper
|
|
||||||
usr/share/qemu/s390-ccw.img
|
|
||||||
usr/share/qemu/u-boot.e500
|
|
||||||
"
|
|
||||||
|
|
||||||
QA_WX_LOAD="usr/bin/qemu-i386
|
|
||||||
usr/bin/qemu-x86_64
|
|
||||||
usr/bin/qemu-alpha
|
|
||||||
usr/bin/qemu-arm
|
|
||||||
usr/bin/qemu-cris
|
|
||||||
usr/bin/qemu-m68k
|
|
||||||
usr/bin/qemu-microblaze
|
|
||||||
usr/bin/qemu-microblazeel
|
|
||||||
usr/bin/qemu-mips
|
|
||||||
usr/bin/qemu-mipsel
|
|
||||||
usr/bin/qemu-or32
|
|
||||||
usr/bin/qemu-ppc
|
|
||||||
usr/bin/qemu-ppc64
|
|
||||||
usr/bin/qemu-ppc64abi32
|
|
||||||
usr/bin/qemu-sh4
|
|
||||||
usr/bin/qemu-sh4eb
|
|
||||||
usr/bin/qemu-sparc
|
|
||||||
usr/bin/qemu-sparc64
|
|
||||||
usr/bin/qemu-armeb
|
|
||||||
usr/bin/qemu-sparc32plus
|
|
||||||
usr/bin/qemu-s390x
|
|
||||||
usr/bin/qemu-unicore32"
|
|
||||||
|
|
||||||
DOC_CONTENTS="If you don't have kvm compiled into the kernel, make sure
|
|
||||||
you have the kernel module loaded before running kvm. The easiest way to
|
|
||||||
ensure that the kernel module is loaded is to load it on boot.\n
|
|
||||||
For AMD CPUs the module is called 'kvm-amd'\n
|
|
||||||
For Intel CPUs the module is called 'kvm-intel'\n
|
|
||||||
Please review /etc/conf.d/modules for how to load these\n\n
|
|
||||||
Make sure your user is in the 'kvm' group\n
|
|
||||||
Just run 'gpasswd -a <USER> kvm', then have <USER> re-login."
|
|
||||||
|
|
||||||
qemu_support_kvm() {
|
|
||||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386 \
|
|
||||||
use qemu_softmmu_targets_ppc || use qemu_softmmu_targets_ppc64 \
|
|
||||||
use qemu_softmmu_targets_s390x; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
if use kernel_linux && kernel_is lt 2 6 25; then
|
|
||||||
eerror "This version of KVM requres a host kernel of 2.6.25 or higher."
|
|
||||||
elif use kernel_linux; then
|
|
||||||
if ! linux_config_exists; then
|
|
||||||
eerror "Unable to check your kernel for KVM support"
|
|
||||||
else
|
|
||||||
CONFIG_CHECK="~KVM ~TUN ~BRIDGE"
|
|
||||||
ERROR_KVM="You must enable KVM in your kernel to continue"
|
|
||||||
ERROR_KVM_AMD="If you have an AMD CPU, you must enable KVM_AMD in"
|
|
||||||
ERROR_KVM_AMD+=" your kernel configuration."
|
|
||||||
ERROR_KVM_INTEL="If you have an Intel CPU, you must enable"
|
|
||||||
ERROR_KVM_INTEL+=" KVM_INTEL in your kernel configuration."
|
|
||||||
ERROR_TUN="You will need the Universal TUN/TAP driver compiled"
|
|
||||||
ERROR_TUN+=" into your kernel or loaded as a module to use the"
|
|
||||||
ERROR_TUN+=" virtual network device if using -net tap."
|
|
||||||
ERROR_BRIDGE="You will also need support for 802.1d"
|
|
||||||
ERROR_BRIDGE+=" Ethernet Bridging for some network configurations."
|
|
||||||
use vhost-net && CONFIG_CHECK+=" ~VHOST_NET"
|
|
||||||
ERROR_VHOST_NET="You must enable VHOST_NET to have vhost-net"
|
|
||||||
ERROR_VHOST_NET+=" support"
|
|
||||||
|
|
||||||
if use amd64 || use x86 || use amd64-linux || use x86-linux; then
|
|
||||||
CONFIG_CHECK+=" ~KVM_AMD ~KVM_INTEL"
|
|
||||||
fi
|
|
||||||
|
|
||||||
use python && CONFIG_CHECK+=" ~DEBUG_FS"
|
|
||||||
ERROR_DEBUG_FS="debugFS support required for kvm_stat"
|
|
||||||
|
|
||||||
# Now do the actual checks setup above
|
|
||||||
check_extra_config
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if grep -qs '/usr/bin/qemu-kvm' "${EROOT}"/etc/libvirt/qemu/*.xml; then
|
|
||||||
eerror "The kvm/qemu-kvm wrappers no longer exist, but your libvirt"
|
|
||||||
eerror "instances are still pointing to it. Please update your"
|
|
||||||
eerror "configs in /etc/libvirt/qemu/ to use the -enable-kvm flag"
|
|
||||||
eerror "and the right system binary (e.g. qemu-system-x86_64)."
|
|
||||||
die "update your virt configs to not use qemu-kvm"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup kvm 78
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# Alter target makefiles to accept CFLAGS set via flag-o
|
|
||||||
sed -i -r \
|
|
||||||
-e 's/^(C|OP_C|HELPER_C)FLAGS=/\1FLAGS+=/' \
|
|
||||||
Makefile Makefile.target || die
|
|
||||||
|
|
||||||
# Cheap hack to disable gettext .mo generation.
|
|
||||||
use nls || rm -f po/*.po
|
|
||||||
|
|
||||||
epatch "${FILESDIR}"/qemu-1.7.0-cflags.patch
|
|
||||||
epatch "${FILESDIR}"/${P}-CVE-2015-3456.patch #549404
|
|
||||||
epatch "${FILESDIR}"/${P}-CVE-2015-3209.patch #551752
|
|
||||||
epatch "${FILESDIR}"/${P}-CVE-2015-5158.patch #555680
|
|
||||||
epatch "${FILESDIR}"/${P}-CVE-2015-3214.patch #556052
|
|
||||||
epatch "${FILESDIR}"/${P}-CVE-2015-5154-1.patch #556050 / #555532
|
|
||||||
epatch "${FILESDIR}"/${P}-CVE-2015-5154-2.patch #556050 / #555532
|
|
||||||
epatch "${FILESDIR}"/${P}-CVE-2015-5154-3.patch #556050 / #555532`
|
|
||||||
[[ -n ${BACKPORTS} ]] && \
|
|
||||||
EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
|
|
||||||
epatch
|
|
||||||
|
|
||||||
# Fix ld and objcopy being called directly
|
|
||||||
tc-export AR LD OBJCOPY
|
|
||||||
|
|
||||||
# Verbose builds
|
|
||||||
MAKEOPTS+=" V=1"
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
}
|
|
||||||
|
|
||||||
##
|
|
||||||
# configures qemu based on the build directory and the build type
|
|
||||||
# we are using.
|
|
||||||
#
|
|
||||||
qemu_src_configure() {
|
|
||||||
debug-print-function ${FUNCNAME} "$@"
|
|
||||||
|
|
||||||
local buildtype=$1
|
|
||||||
local builddir=$2
|
|
||||||
local static_flag="static-${buildtype}"
|
|
||||||
|
|
||||||
# audio options
|
|
||||||
local audio_opts="oss"
|
|
||||||
use alsa && audio_opts="alsa,${audio_opts}"
|
|
||||||
use sdl && audio_opts="sdl,${audio_opts}"
|
|
||||||
use pulseaudio && audio_opts="pa,${audio_opts}"
|
|
||||||
|
|
||||||
local conf_opts=(
|
|
||||||
--prefix=/usr
|
|
||||||
--sysconfdir=/etc
|
|
||||||
--libdir=/usr/$(get_libdir)
|
|
||||||
--docdir=/usr/share/doc/${PF}/html
|
|
||||||
--disable-bsd-user
|
|
||||||
--disable-guest-agent
|
|
||||||
--disable-strip
|
|
||||||
--disable-werror
|
|
||||||
--python="${PYTHON}"
|
|
||||||
--cc="$(tc-getCC)"
|
|
||||||
--cxx="$(tc-getCXX)"
|
|
||||||
--host-cc="$(tc-getBUILD_CC)"
|
|
||||||
$(use_enable debug debug-info)
|
|
||||||
$(use_enable debug debug-tcg)
|
|
||||||
--enable-docs
|
|
||||||
$(use_enable tci tcg-interpreter)
|
|
||||||
$(use_enable xattr attr)
|
|
||||||
)
|
|
||||||
|
|
||||||
# Disable options not used by user targets as the default configure
|
|
||||||
# options will autoprobe and try to link in a bunch of unused junk.
|
|
||||||
conf_softmmu() {
|
|
||||||
if [[ ${buildtype} == "user" ]] ; then
|
|
||||||
echo "--disable-${2:-$1}"
|
|
||||||
else
|
|
||||||
use_enable "$@"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
conf_opts+=(
|
|
||||||
$(conf_softmmu accessibility brlapi)
|
|
||||||
$(conf_softmmu aio linux-aio)
|
|
||||||
$(conf_softmmu bluetooth bluez)
|
|
||||||
$(conf_softmmu caps cap-ng)
|
|
||||||
$(conf_softmmu curl)
|
|
||||||
$(conf_softmmu fdt)
|
|
||||||
$(conf_softmmu glusterfs)
|
|
||||||
$(conf_softmmu gtk)
|
|
||||||
$(conf_softmmu infiniband rdma)
|
|
||||||
$(conf_softmmu iscsi libiscsi)
|
|
||||||
$(conf_softmmu jpeg vnc-jpeg)
|
|
||||||
$(conf_softmmu kernel_linux kvm)
|
|
||||||
$(conf_softmmu lzo)
|
|
||||||
$(conf_softmmu ncurses curses)
|
|
||||||
$(conf_softmmu nfs libnfs)
|
|
||||||
$(conf_softmmu numa)
|
|
||||||
$(conf_softmmu opengl)
|
|
||||||
$(conf_softmmu png vnc-png)
|
|
||||||
$(conf_softmmu rbd)
|
|
||||||
$(conf_softmmu sasl vnc-sasl)
|
|
||||||
$(conf_softmmu sdl)
|
|
||||||
$(conf_softmmu seccomp)
|
|
||||||
$(conf_softmmu smartcard smartcard-nss)
|
|
||||||
$(conf_softmmu snappy)
|
|
||||||
$(conf_softmmu spice)
|
|
||||||
$(conf_softmmu ssh libssh2)
|
|
||||||
$(conf_softmmu tls quorum)
|
|
||||||
$(conf_softmmu tls vnc-tls)
|
|
||||||
$(conf_softmmu tls vnc-ws)
|
|
||||||
$(conf_softmmu usb libusb)
|
|
||||||
$(conf_softmmu usbredir usb-redir)
|
|
||||||
$(conf_softmmu uuid)
|
|
||||||
$(conf_softmmu vde)
|
|
||||||
$(conf_softmmu vhost-net)
|
|
||||||
$(conf_softmmu virtfs)
|
|
||||||
$(conf_softmmu vnc)
|
|
||||||
$(conf_softmmu xen)
|
|
||||||
$(conf_softmmu xen xen-pci-passthrough)
|
|
||||||
$(conf_softmmu xfs xfsctl)
|
|
||||||
)
|
|
||||||
|
|
||||||
case ${buildtype} in
|
|
||||||
user)
|
|
||||||
conf_opts+=(
|
|
||||||
--enable-linux-user
|
|
||||||
--disable-system
|
|
||||||
--target-list="${user_targets}"
|
|
||||||
--disable-blobs
|
|
||||||
--disable-tools
|
|
||||||
)
|
|
||||||
;;
|
|
||||||
softmmu)
|
|
||||||
conf_opts+=(
|
|
||||||
--disable-linux-user
|
|
||||||
--enable-system
|
|
||||||
--target-list="${softmmu_targets}"
|
|
||||||
--with-system-pixman
|
|
||||||
--audio-drv-list="${audio_opts}"
|
|
||||||
)
|
|
||||||
use gtk && conf_opts+=( --with-gtkabi=$(usex gtk2 2.0 3.0) )
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Add support for SystemTAP
|
|
||||||
use systemtap && conf_opts+=( --enable-trace-backend=dtrace )
|
|
||||||
|
|
||||||
# We always want to attempt to build with PIE support as it results
|
|
||||||
# in a more secure binary. But it doesn't work with static or if
|
|
||||||
# the current GCC doesn't have PIE support.
|
|
||||||
if use ${static_flag}; then
|
|
||||||
conf_opts+=( --static --disable-pie )
|
|
||||||
else
|
|
||||||
gcc-specs-pie && conf_opts+=( --enable-pie )
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "../configure ${conf_opts[*]}"
|
|
||||||
cd "${builddir}"
|
|
||||||
../configure "${conf_opts[@]}" || die "configure failed"
|
|
||||||
|
|
||||||
# FreeBSD's kernel does not support QEMU assigning/grabbing
|
|
||||||
# host USB devices yet
|
|
||||||
use kernel_FreeBSD && \
|
|
||||||
sed -i -E -e "s|^(HOST_USB=)bsd|\1stub|" "${S}"/config-host.mak
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local target
|
|
||||||
|
|
||||||
python_setup
|
|
||||||
|
|
||||||
softmmu_targets= softmmu_bins=()
|
|
||||||
user_targets= user_bins=()
|
|
||||||
|
|
||||||
for target in ${IUSE_SOFTMMU_TARGETS} ; do
|
|
||||||
if use "qemu_softmmu_targets_${target}"; then
|
|
||||||
softmmu_targets+=",${target}-softmmu"
|
|
||||||
softmmu_bins+=( "qemu-system-${target}" )
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
for target in ${IUSE_USER_TARGETS} ; do
|
|
||||||
if use "qemu_user_targets_${target}"; then
|
|
||||||
user_targets+=",${target}-linux-user"
|
|
||||||
user_bins+=( "qemu-${target}" )
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
[[ -n ${softmmu_targets} ]] && \
|
|
||||||
einfo "Building the following softmmu targets: ${softmmu_targets}"
|
|
||||||
|
|
||||||
[[ -n ${user_targets} ]] && \
|
|
||||||
einfo "Building the following user targets: ${user_targets}"
|
|
||||||
|
|
||||||
if [[ -n ${softmmu_targets} ]]; then
|
|
||||||
mkdir "${S}/softmmu-build"
|
|
||||||
qemu_src_configure "softmmu" "${S}/softmmu-build"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n ${user_targets} ]]; then
|
|
||||||
mkdir "${S}/user-build"
|
|
||||||
qemu_src_configure "user" "${S}/user-build"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
if [[ -n ${user_targets} ]]; then
|
|
||||||
cd "${S}/user-build"
|
|
||||||
default
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n ${softmmu_targets} ]]; then
|
|
||||||
cd "${S}/softmmu-build"
|
|
||||||
default
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
if [[ -n ${softmmu_targets} ]]; then
|
|
||||||
cd "${S}/softmmu-build"
|
|
||||||
pax-mark m */qemu-system-* #515550
|
|
||||||
emake -j1 check
|
|
||||||
emake -j1 check-report.html
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
qemu_python_install() {
|
|
||||||
python_domodule "${S}/scripts/qmp/qmp.py"
|
|
||||||
|
|
||||||
python_doscript "${S}/scripts/kvm/kvm_stat"
|
|
||||||
python_doscript "${S}/scripts/kvm/vmxcap"
|
|
||||||
python_doscript "${S}/scripts/qmp/qmp-shell"
|
|
||||||
python_doscript "${S}/scripts/qmp/qemu-ga-client"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
if [[ -n ${user_targets} ]]; then
|
|
||||||
cd "${S}/user-build"
|
|
||||||
emake DESTDIR="${ED}" install
|
|
||||||
|
|
||||||
# Install binfmt handler init script for user targets
|
|
||||||
newinitd "${FILESDIR}/qemu-binfmt.initd-r1" qemu-binfmt
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n ${softmmu_targets} ]]; then
|
|
||||||
cd "${S}/softmmu-build"
|
|
||||||
emake DESTDIR="${ED}" install
|
|
||||||
|
|
||||||
# This might not exist if the test failed. #512010
|
|
||||||
[[ -e check-report.html ]] && dohtml check-report.html
|
|
||||||
|
|
||||||
if use kernel_linux; then
|
|
||||||
udev_dorules "${FILESDIR}"/65-kvm.rules
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
python_foreach_impl qemu_python_install
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Disable mprotect on the qemu binaries as they use JITs to be fast #459348
|
|
||||||
pushd "${ED}"/usr/bin >/dev/null
|
|
||||||
pax-mark m "${softmmu_bins[@]}" "${user_bins[@]}"
|
|
||||||
popd >/dev/null
|
|
||||||
|
|
||||||
# Install config file example for qemu-bridge-helper
|
|
||||||
insinto "/etc/qemu"
|
|
||||||
doins "${FILESDIR}/bridge.conf"
|
|
||||||
|
|
||||||
# Remove the docdir placed qmp-commands.txt
|
|
||||||
mv "${ED}/usr/share/doc/${PF}/html/qmp-commands.txt" "${S}/docs/qmp/"
|
|
||||||
|
|
||||||
cd "${S}"
|
|
||||||
dodoc Changelog MAINTAINERS docs/specs/pci-ids.txt
|
|
||||||
newdoc pc-bios/README README.pc-bios
|
|
||||||
dodoc docs/qmp/*.txt
|
|
||||||
|
|
||||||
# Remove SeaBIOS since we're using the SeaBIOS packaged one
|
|
||||||
rm "${ED}/usr/share/qemu/bios.bin"
|
|
||||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
|
||||||
dosym ../seabios/bios.bin /usr/share/qemu/bios.bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove vgabios since we're using the vgabios packaged one
|
|
||||||
if [[ -n ${softmmu_targets} ]]; then
|
|
||||||
rm "${ED}/usr/share/qemu/vgabios.bin"
|
|
||||||
rm "${ED}/usr/share/qemu/vgabios-cirrus.bin"
|
|
||||||
rm "${ED}/usr/share/qemu/vgabios-qxl.bin"
|
|
||||||
rm "${ED}/usr/share/qemu/vgabios-stdvga.bin"
|
|
||||||
rm "${ED}/usr/share/qemu/vgabios-vmware.bin"
|
|
||||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
|
||||||
dosym ../vgabios/vgabios.bin /usr/share/qemu/vgabios.bin
|
|
||||||
dosym ../vgabios/vgabios-cirrus.bin /usr/share/qemu/vgabios-cirrus.bin
|
|
||||||
dosym ../vgabios/vgabios-qxl.bin /usr/share/qemu/vgabios-qxl.bin
|
|
||||||
dosym ../vgabios/vgabios-stdvga.bin /usr/share/qemu/vgabios-stdvga.bin
|
|
||||||
dosym ../vgabios/vgabios-vmware.bin /usr/share/qemu/vgabios-vmware.bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove sgabios since we're using the sgabios packaged one
|
|
||||||
rm "${ED}/usr/share/qemu/sgabios.bin"
|
|
||||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
|
||||||
dosym ../sgabios/sgabios.bin /usr/share/qemu/sgabios.bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove iPXE since we're using the iPXE packaged one
|
|
||||||
rm "${ED}"/usr/share/qemu/pxe-*.rom
|
|
||||||
if use qemu_softmmu_targets_x86_64 || use qemu_softmmu_targets_i386; then
|
|
||||||
dosym ../ipxe/8086100e.rom /usr/share/qemu/pxe-e1000.rom
|
|
||||||
dosym ../ipxe/80861209.rom /usr/share/qemu/pxe-eepro100.rom
|
|
||||||
dosym ../ipxe/10500940.rom /usr/share/qemu/pxe-ne2k_pci.rom
|
|
||||||
dosym ../ipxe/10222000.rom /usr/share/qemu/pxe-pcnet.rom
|
|
||||||
dosym ../ipxe/10ec8139.rom /usr/share/qemu/pxe-rtl8139.rom
|
|
||||||
dosym ../ipxe/1af41000.rom /usr/share/qemu/pxe-virtio.rom
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
qemu_support_kvm && readme.gentoo_create_doc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if qemu_support_kvm; then
|
|
||||||
readme.gentoo_print_elog
|
|
||||||
ewarn "Migration from qemu-kvm instances and loading qemu-kvm created"
|
|
||||||
ewarn "save states has been removed starting with the 1.6.2 release"
|
|
||||||
ewarn
|
|
||||||
ewarn "It is recommended that you migrate any VMs that may be running"
|
|
||||||
ewarn "on qemu-kvm to a host with a newer qemu and regenerate"
|
|
||||||
ewarn "any saved states with a newer qemu."
|
|
||||||
ewarn
|
|
||||||
ewarn "qemu-kvm was the primary qemu provider in Gentoo through 1.2.x"
|
|
||||||
|
|
||||||
if use x86 || use amd64; then
|
|
||||||
ewarn
|
|
||||||
ewarn "The /usr/bin/kvm and /usr/bin/qemu-kvm wrappers are no longer"
|
|
||||||
ewarn "installed. In order to use kvm acceleration, pass the flag"
|
|
||||||
ewarn "-enable-kvm when running your system target."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n ${softmmu_targets} ]] && use kernel_linux; then
|
|
||||||
udev_reload
|
|
||||||
fi
|
|
||||||
|
|
||||||
fcaps cap_net_admin /usr/libexec/qemu-bridge-helper
|
|
||||||
if use virtfs && [ -n "${softmmu_targets}" ]; then
|
|
||||||
local virtfs_caps="cap_chown,cap_dac_override,cap_fowner,cap_fsetid,cap_setgid,cap_mknod,cap_setuid"
|
|
||||||
fcaps ${virtfs_caps} /usr/bin/virtfs-proxy-helper
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_info() {
|
|
||||||
echo "Using:"
|
|
||||||
echo " $(best_version app-emulation/spice-protocol)"
|
|
||||||
echo " $(best_version sys-firmware/ipxe)"
|
|
||||||
echo " $(best_version sys-firmware/seabios)"
|
|
||||||
if has_version sys-firmware/seabios[binary]; then
|
|
||||||
echo " USE=binary"
|
|
||||||
else
|
|
||||||
echo " USE=''"
|
|
||||||
fi
|
|
||||||
echo " $(best_version sys-firmware/vgabios)"
|
|
||||||
}
|
|
@ -1,42 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit eutils autotools
|
|
||||||
|
|
||||||
DESCRIPTION="A collection of file system and media management forensic analysis tools"
|
|
||||||
HOMEPAGE="http://www.sleuthkit.org/sleuthkit/"
|
|
||||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2 IBM"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 hppa ppc x86"
|
|
||||||
IUSE="aff ewf static-libs"
|
|
||||||
|
|
||||||
DEPEND="dev-db/sqlite:3
|
|
||||||
ewf? ( app-forensics/libewf )
|
|
||||||
aff? ( app-forensics/afflib )"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-perl/DateManip"
|
|
||||||
|
|
||||||
DOCS=( NEWS.txt README.txt )
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-4.0.0-system-sqlite.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-3.2.3-tools-shared-libs.patch
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
econf \
|
|
||||||
$(use_with aff afflib) \
|
|
||||||
$(use_with ewf libewf) \
|
|
||||||
$(use_enable static-libs static)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
prune_libtool_files
|
|
||||||
}
|
|
@ -1,72 +0,0 @@
|
|||||||
# Copyright 1999-2009 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}_all.deb"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp sys-freebsd/freebsd-ubin )"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-libs/openssl
|
|
||||||
sys-apps/debianutils"
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
unpack ./data.tar.gz
|
|
||||||
rm -f control.tar.gz data.tar.gz debian-binary
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f /etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cp -pPR * "${D}"/ || die "installing data failed"
|
|
||||||
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CAT}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${D}"/usr/share/ca-certificates
|
|
||||||
find . -name '*.crt' | sort | cut -b3-
|
|
||||||
) > "${D}"/etc/ca-certificates.conf
|
|
||||||
|
|
||||||
mv "${D}"/usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
prepalldocs
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ "${ROOT}" = "/" ] ; then
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
update-ca-certificates
|
|
||||||
fi
|
|
||||||
|
|
||||||
local badcerts=0
|
|
||||||
for c in $(find -L "${ROOT}"etc/ssl/certs/ -type l) ; do
|
|
||||||
ewarn "Broken symlink for a certificate at $c"
|
|
||||||
badcerts=1
|
|
||||||
done
|
|
||||||
if [ $badcerts -eq 1 ]; then
|
|
||||||
ewarn "You MUST remove the above broken symlinks"
|
|
||||||
ewarn "Otherwise any SSL validation that use the directory may fail!"
|
|
||||||
ewarn "To batch-remove them, run:"
|
|
||||||
ewarn "find -L ${ROOT}etc/ssl/certs/ -type l -exec rm {} +"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,72 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}_all.deb"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp sys-freebsd/freebsd-ubin )"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-libs/openssl
|
|
||||||
sys-apps/debianutils"
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
unpack ./data.tar.gz
|
|
||||||
rm -f control.tar.gz data.tar.gz debian-binary
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f /etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cp -pPR * "${D}"/ || die
|
|
||||||
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${D}"/usr/share/ca-certificates
|
|
||||||
find . -name '*.crt' | sort | cut -b3-
|
|
||||||
) > "${D}"/etc/ca-certificates.conf
|
|
||||||
|
|
||||||
mv "${D}"/usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
prepalldocs
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ "${ROOT}" = "/" ] ; then
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
update-ca-certificates
|
|
||||||
fi
|
|
||||||
|
|
||||||
local c badcerts=0
|
|
||||||
for c in $(find -L "${ROOT}"etc/ssl/certs/ -type l) ; do
|
|
||||||
ewarn "Broken symlink for a certificate at $c"
|
|
||||||
badcerts=1
|
|
||||||
done
|
|
||||||
if [ $badcerts -eq 1 ]; then
|
|
||||||
ewarn "You MUST remove the above broken symlinks"
|
|
||||||
ewarn "Otherwise any SSL validation that use the directory may fail!"
|
|
||||||
ewarn "To batch-remove them, run:"
|
|
||||||
ewarn "find -L ${ROOT}etc/ssl/certs/ -type l -exec rm {} +"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,72 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}+nmu1_all.deb"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp sys-freebsd/freebsd-ubin )"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-libs/openssl
|
|
||||||
sys-apps/debianutils"
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
unpack ./data.tar.gz
|
|
||||||
rm -f control.tar.gz data.tar.gz debian-binary
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f /etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cp -pPR * "${D}"/ || die
|
|
||||||
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${D}"/usr/share/ca-certificates
|
|
||||||
find . -name '*.crt' | sort | cut -b3-
|
|
||||||
) > "${D}"/etc/ca-certificates.conf
|
|
||||||
|
|
||||||
mv "${D}"/usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
prepalldocs
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ "${ROOT}" = "/" ] ; then
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
update-ca-certificates
|
|
||||||
fi
|
|
||||||
|
|
||||||
local c badcerts=0
|
|
||||||
for c in $(find -L "${ROOT}"etc/ssl/certs/ -type l) ; do
|
|
||||||
ewarn "Broken symlink for a certificate at $c"
|
|
||||||
badcerts=1
|
|
||||||
done
|
|
||||||
if [ $badcerts -eq 1 ]; then
|
|
||||||
ewarn "You MUST remove the above broken symlinks"
|
|
||||||
ewarn "Otherwise any SSL validation that use the directory may fail!"
|
|
||||||
ewarn "To batch-remove them, run:"
|
|
||||||
ewarn "find -L ${ROOT}etc/ssl/certs/ -type l -exec rm {} +"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,87 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}+nmu1_all.deb"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp sys-freebsd/freebsd-ubin )"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-libs/openssl
|
|
||||||
sys-apps/debianutils
|
|
||||||
kernel_AIX? ( app-arch/deb2targz )" # platforms like AIX don't have a good ar
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
unpack ./data.tar.gz
|
|
||||||
rm -f control.tar.gz data.tar.gz debian-binary
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-20090709-root.patch
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${S}"/usr/share/ca-certificates
|
|
||||||
find * -name '*.crt' | LC_ALL=C sort
|
|
||||||
) > "${S}"/etc/ca-certificates.conf
|
|
||||||
|
|
||||||
sed -i "/^ROOT=""/s:=.*:='${EPREFIX}':" "${S}"/usr/sbin/update-ca-certificates || die
|
|
||||||
"${S}"/usr/sbin/update-ca-certificates --root "${S}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
mkdir -p "${ED}"
|
|
||||||
cp -pPR * "${ED}"/ || die
|
|
||||||
|
|
||||||
mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
prepalldocs
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
|
|
||||||
# if the user has local certs, we need to rebuild again
|
|
||||||
# to include their stuff in the db.
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local c badcerts=0
|
|
||||||
for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
|
|
||||||
ewarn "Broken symlink for a certificate at $c"
|
|
||||||
badcerts=1
|
|
||||||
done
|
|
||||||
if [ $badcerts -eq 1 ]; then
|
|
||||||
ewarn "You MUST remove the above broken symlinks"
|
|
||||||
ewarn "Otherwise any SSL validation that use the directory may fail!"
|
|
||||||
ewarn "To batch-remove them, run:"
|
|
||||||
ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,95 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}+nmu1_all.deb"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
# platforms like AIX don't have a good ar
|
|
||||||
DEPEND="kernel_AIX? ( app-arch/deb2targz )"
|
|
||||||
# openssl: we run `c_rehash`
|
|
||||||
# debianutils: we run `run-parts`
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-libs/openssl
|
|
||||||
sys-apps/debianutils"
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ -n ${EPREFIX} ]] ; then
|
|
||||||
# need to perform everything in the offset, #381937
|
|
||||||
mkdir -p "./${EPREFIX}"
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
fi
|
|
||||||
unpack ${A}
|
|
||||||
unpack ./data.tar.gz
|
|
||||||
rm -f control.tar.gz data.tar.gz debian-binary
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
epatch "${FILESDIR}"/${PN}-20090709-root.patch
|
|
||||||
sed -i -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
|
|
||||||
usr/sbin/update-ca-certificates || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${S}${EPREFIX}"/usr/share/ca-certificates
|
|
||||||
find * -name '*.crt' | LC_ALL=C sort
|
|
||||||
) > "${S}${EPREFIX}"/etc/ca-certificates.conf
|
|
||||||
|
|
||||||
"${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cp -pPR * "${D}"/ || die
|
|
||||||
|
|
||||||
mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
prepalldocs
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
|
|
||||||
# if the user has local certs, we need to rebuild again
|
|
||||||
# to include their stuff in the db.
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local c badcerts=0
|
|
||||||
for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
|
|
||||||
ewarn "Broken symlink for a certificate at $c"
|
|
||||||
badcerts=1
|
|
||||||
done
|
|
||||||
if [ $badcerts -eq 1 ]; then
|
|
||||||
ewarn "You MUST remove the above broken symlinks"
|
|
||||||
ewarn "Otherwise any SSL validation that use the directory may fail!"
|
|
||||||
ewarn "To batch-remove them, run:"
|
|
||||||
ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,98 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}+nmu1_all.deb"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
# platforms like AIX don't have a good ar
|
|
||||||
DEPEND="kernel_AIX? ( app-arch/deb2targz )"
|
|
||||||
# openssl: we run `c_rehash`
|
|
||||||
# debianutils: we run `run-parts`
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-libs/openssl
|
|
||||||
sys-apps/debianutils"
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ -n ${EPREFIX} ]] ; then
|
|
||||||
# need to perform everything in the offset, #381937
|
|
||||||
mkdir -p "./${EPREFIX}"
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
fi
|
|
||||||
unpack ${A}
|
|
||||||
unpack ./data.tar.gz
|
|
||||||
rm -f control.tar.gz data.tar.gz debian-binary
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
epatch "${FILESDIR}"/${PN}-20110502-root.patch
|
|
||||||
local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
|
|
||||||
sed -i \
|
|
||||||
-e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
|
|
||||||
-e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
|
|
||||||
usr/sbin/update-ca-certificates || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${S}${EPREFIX}"/usr/share/ca-certificates
|
|
||||||
find * -name '*.crt' | LC_ALL=C sort
|
|
||||||
) > "${S}${EPREFIX}"/etc/ca-certificates.conf
|
|
||||||
|
|
||||||
sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cp -pPR * "${D}"/ || die
|
|
||||||
|
|
||||||
mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
prepalldocs
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
|
|
||||||
# if the user has local certs, we need to rebuild again
|
|
||||||
# to include their stuff in the db.
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local c badcerts=0
|
|
||||||
for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
|
|
||||||
ewarn "Broken symlink for a certificate at $c"
|
|
||||||
badcerts=1
|
|
||||||
done
|
|
||||||
if [ $badcerts -eq 1 ]; then
|
|
||||||
ewarn "You MUST remove the above broken symlinks"
|
|
||||||
ewarn "Otherwise any SSL validation that use the directory may fail!"
|
|
||||||
ewarn "To batch-remove them, run:"
|
|
||||||
ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,72 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}_all.deb"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp sys-freebsd/freebsd-ubin )"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-libs/openssl
|
|
||||||
sys-apps/debianutils"
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
unpack ./data.tar.gz
|
|
||||||
rm -f control.tar.gz data.tar.gz debian-binary
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f /etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cp -pPR * "${D}"/ || die
|
|
||||||
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${D}"/usr/share/ca-certificates
|
|
||||||
find . -name '*.crt' | sort | cut -b3-
|
|
||||||
) > "${D}"/etc/ca-certificates.conf
|
|
||||||
|
|
||||||
mv "${D}"/usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
prepalldocs
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ "${ROOT}" = "/" ] ; then
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
update-ca-certificates
|
|
||||||
fi
|
|
||||||
|
|
||||||
local c badcerts=0
|
|
||||||
for c in $(find -L "${ROOT}"etc/ssl/certs/ -type l) ; do
|
|
||||||
ewarn "Broken symlink for a certificate at $c"
|
|
||||||
badcerts=1
|
|
||||||
done
|
|
||||||
if [ $badcerts -eq 1 ]; then
|
|
||||||
ewarn "You MUST remove the above broken symlinks"
|
|
||||||
ewarn "Otherwise any SSL validation that use the directory may fail!"
|
|
||||||
ewarn "To batch-remove them, run:"
|
|
||||||
ewarn "find -L ${ROOT}etc/ssl/certs/ -type l -exec rm {} +"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,100 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
|
||||||
#NMU_PR="1"
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
# platforms like AIX don't have a good ar
|
|
||||||
DEPEND="kernel_AIX? ( app-arch/deb2targz )
|
|
||||||
!<sys-apps/portage-2.1.10.41"
|
|
||||||
# openssl: we run `c_rehash`
|
|
||||||
# debianutils: we run `run-parts`
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-libs/openssl
|
|
||||||
sys-apps/debianutils"
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ -n ${EPREFIX} ]] ; then
|
|
||||||
# need to perform everything in the offset, #381937
|
|
||||||
mkdir -p "./${EPREFIX}"
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
fi
|
|
||||||
unpack ${A}
|
|
||||||
unpack ./data.tar.gz
|
|
||||||
rm -f control.tar.gz data.tar.gz debian-binary
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
epatch "${FILESDIR}"/${PN}-20110502-root.patch
|
|
||||||
local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
|
|
||||||
sed -i \
|
|
||||||
-e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
|
|
||||||
-e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
|
|
||||||
usr/sbin/update-ca-certificates || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${S}${EPREFIX}"/usr/share/ca-certificates
|
|
||||||
find * -name '*.crt' | LC_ALL=C sort
|
|
||||||
) > "${S}${EPREFIX}"/etc/ca-certificates.conf
|
|
||||||
|
|
||||||
sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cp -pPR * "${D}"/ || die
|
|
||||||
|
|
||||||
mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
prepalldocs
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
|
|
||||||
# if the user has local certs, we need to rebuild again
|
|
||||||
# to include their stuff in the db.
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local c badcerts=0
|
|
||||||
for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
|
|
||||||
ewarn "Broken symlink for a certificate at $c"
|
|
||||||
badcerts=1
|
|
||||||
done
|
|
||||||
if [ $badcerts -eq 1 ]; then
|
|
||||||
ewarn "You MUST remove the above broken symlinks"
|
|
||||||
ewarn "Otherwise any SSL validation that use the directory may fail!"
|
|
||||||
ewarn "To batch-remove them, run:"
|
|
||||||
ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,100 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
|
||||||
#NMU_PR="1"
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
# platforms like AIX don't have a good ar
|
|
||||||
DEPEND="kernel_AIX? ( app-arch/deb2targz )
|
|
||||||
!<sys-apps/portage-2.1.10.41"
|
|
||||||
# openssl: we run `c_rehash`
|
|
||||||
# debianutils: we run `run-parts`
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-libs/openssl
|
|
||||||
sys-apps/debianutils"
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ -n ${EPREFIX} ]] ; then
|
|
||||||
# need to perform everything in the offset, #381937
|
|
||||||
mkdir -p "./${EPREFIX}"
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
fi
|
|
||||||
unpack ${A}
|
|
||||||
unpack ./data.tar.gz
|
|
||||||
rm -f control.tar.gz data.tar.gz debian-binary
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
epatch "${FILESDIR}"/${PN}-20110502-root.patch
|
|
||||||
local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
|
|
||||||
sed -i \
|
|
||||||
-e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
|
|
||||||
-e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
|
|
||||||
usr/sbin/update-ca-certificates || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${S}${EPREFIX}"/usr/share/ca-certificates
|
|
||||||
find * -name '*.crt' | LC_ALL=C sort
|
|
||||||
) > "${S}${EPREFIX}"/etc/ca-certificates.conf
|
|
||||||
|
|
||||||
sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cp -pPR * "${D}"/ || die
|
|
||||||
|
|
||||||
mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
prepalldocs
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
|
|
||||||
# if the user has local certs, we need to rebuild again
|
|
||||||
# to include their stuff in the db.
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local c badcerts=0
|
|
||||||
for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
|
|
||||||
ewarn "Broken symlink for a certificate at $c"
|
|
||||||
badcerts=1
|
|
||||||
done
|
|
||||||
if [ $badcerts -eq 1 ]; then
|
|
||||||
ewarn "You MUST remove the above broken symlinks"
|
|
||||||
ewarn "Otherwise any SSL validation that use the directory may fail!"
|
|
||||||
ewarn "To batch-remove them, run:"
|
|
||||||
ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,100 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
|
||||||
#NMU_PR="1"
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
# platforms like AIX don't have a good ar
|
|
||||||
DEPEND="kernel_AIX? ( app-arch/deb2targz )
|
|
||||||
!<sys-apps/portage-2.1.10.41"
|
|
||||||
# openssl: we run `c_rehash`
|
|
||||||
# debianutils: we run `run-parts`
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-libs/openssl
|
|
||||||
sys-apps/debianutils"
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ -n ${EPREFIX} ]] ; then
|
|
||||||
# need to perform everything in the offset, #381937
|
|
||||||
mkdir -p "./${EPREFIX}"
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
fi
|
|
||||||
unpack ${A}
|
|
||||||
unpack ./data.tar.gz
|
|
||||||
rm -f control.tar.gz data.tar.gz debian-binary
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
epatch "${FILESDIR}"/${PN}-20110502-root.patch
|
|
||||||
local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
|
|
||||||
sed -i \
|
|
||||||
-e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
|
|
||||||
-e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
|
|
||||||
usr/sbin/update-ca-certificates || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${S}${EPREFIX}"/usr/share/ca-certificates
|
|
||||||
find * -name '*.crt' | LC_ALL=C sort
|
|
||||||
) > "${S}${EPREFIX}"/etc/ca-certificates.conf
|
|
||||||
|
|
||||||
sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cp -pPR * "${D}"/ || die
|
|
||||||
|
|
||||||
mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
prepalldocs
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
|
|
||||||
# if the user has local certs, we need to rebuild again
|
|
||||||
# to include their stuff in the db.
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local c badcerts=0
|
|
||||||
for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
|
|
||||||
ewarn "Broken symlink for a certificate at $c"
|
|
||||||
badcerts=1
|
|
||||||
done
|
|
||||||
if [ $badcerts -eq 1 ]; then
|
|
||||||
ewarn "You MUST remove the above broken symlinks"
|
|
||||||
ewarn "Otherwise any SSL validation that use the directory may fail!"
|
|
||||||
ewarn "To batch-remove them, run:"
|
|
||||||
ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,100 +0,0 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
|
|
||||||
inherit eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
|
||||||
#NMU_PR="1"
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
# platforms like AIX don't have a good ar
|
|
||||||
DEPEND="kernel_AIX? ( app-arch/deb2targz )
|
|
||||||
!<sys-apps/portage-2.1.10.41"
|
|
||||||
# openssl: we run `c_rehash`
|
|
||||||
# debianutils: we run `run-parts`
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-libs/openssl
|
|
||||||
sys-apps/debianutils"
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ -n ${EPREFIX} ]] ; then
|
|
||||||
# need to perform everything in the offset, #381937
|
|
||||||
mkdir -p "./${EPREFIX}"
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
fi
|
|
||||||
unpack ${A}
|
|
||||||
unpack ./data.tar.gz
|
|
||||||
rm -f control.tar.gz data.tar.gz debian-binary
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
epatch "${FILESDIR}"/${PN}-20110502-root.patch
|
|
||||||
local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
|
|
||||||
sed -i \
|
|
||||||
-e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
|
|
||||||
-e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
|
|
||||||
usr/sbin/update-ca-certificates || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${S}${EPREFIX}"/usr/share/ca-certificates
|
|
||||||
find * -name '*.crt' | LC_ALL=C sort
|
|
||||||
) > "${S}${EPREFIX}"/etc/ca-certificates.conf
|
|
||||||
|
|
||||||
sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cp -pPR * "${D}"/ || die
|
|
||||||
|
|
||||||
mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
prepalldocs
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
|
|
||||||
# if the user has local certs, we need to rebuild again
|
|
||||||
# to include their stuff in the db.
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local c badcerts=0
|
|
||||||
for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
|
|
||||||
ewarn "Broken symlink for a certificate at $c"
|
|
||||||
badcerts=1
|
|
||||||
done
|
|
||||||
if [ $badcerts -eq 1 ]; then
|
|
||||||
ewarn "You MUST remove the above broken symlinks"
|
|
||||||
ewarn "Otherwise any SSL validation that use the directory may fail!"
|
|
||||||
ewarn "To batch-remove them, run:"
|
|
||||||
ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,98 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
|
|
||||||
inherit eutils unpacker
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
|
||||||
#NMU_PR="1"
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
# platforms like AIX don't have a good ar
|
|
||||||
DEPEND="kernel_AIX? ( app-arch/deb2targz )
|
|
||||||
!<sys-apps/portage-2.1.10.41"
|
|
||||||
# openssl: we run `c_rehash`
|
|
||||||
# debianutils: we run `run-parts`
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-libs/openssl
|
|
||||||
sys-apps/debianutils"
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ -n ${EPREFIX} ]] ; then
|
|
||||||
# need to perform everything in the offset, #381937
|
|
||||||
mkdir -p "./${EPREFIX}"
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
fi
|
|
||||||
unpack_deb ${A}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
epatch "${FILESDIR}"/${PN}-20110502-root.patch
|
|
||||||
local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
|
|
||||||
sed -i \
|
|
||||||
-e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
|
|
||||||
-e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
|
|
||||||
usr/sbin/update-ca-certificates || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${S}${EPREFIX}"/usr/share/ca-certificates
|
|
||||||
find * -name '*.crt' | LC_ALL=C sort
|
|
||||||
) > "${S}${EPREFIX}"/etc/ca-certificates.conf
|
|
||||||
|
|
||||||
sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cp -pPR . "${D}"/ || die
|
|
||||||
|
|
||||||
mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
prepalldocs
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
|
|
||||||
# if the user has local certs, we need to rebuild again
|
|
||||||
# to include their stuff in the db.
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local c badcerts=0
|
|
||||||
for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
|
|
||||||
ewarn "Broken symlink for a certificate at $c"
|
|
||||||
badcerts=1
|
|
||||||
done
|
|
||||||
if [ $badcerts -eq 1 ]; then
|
|
||||||
ewarn "You MUST remove the above broken symlinks"
|
|
||||||
ewarn "Otherwise any SSL validation that use the directory may fail!"
|
|
||||||
ewarn "To batch-remove them, run:"
|
|
||||||
ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,97 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
|
|
||||||
inherit eutils unpacker
|
|
||||||
|
|
||||||
DESCRIPTION="Common CA Certificates PEM files"
|
|
||||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
|
||||||
#NMU_PR="1"
|
|
||||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
|
|
||||||
|
|
||||||
LICENSE="MPL-1.1"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
# platforms like AIX don't have a good ar
|
|
||||||
DEPEND="kernel_AIX? ( app-arch/deb2targz )
|
|
||||||
!<sys-apps/portage-2.1.10.41"
|
|
||||||
# openssl: we run `c_rehash`
|
|
||||||
# debianutils: we run `run-parts`
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
dev-libs/openssl
|
|
||||||
sys-apps/debianutils"
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
|
||||||
# we need to tell users about it once manually first.
|
|
||||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
|
||||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ -n ${EPREFIX} ]] ; then
|
|
||||||
# need to perform everything in the offset, #381937
|
|
||||||
mkdir -p "./${EPREFIX}"
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
fi
|
|
||||||
unpack_deb ${A}
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cd "./${EPREFIX}" || die
|
|
||||||
epatch "${FILESDIR}"/${PN}-20110502-root.patch
|
|
||||||
local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
|
|
||||||
sed -i \
|
|
||||||
-e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
|
|
||||||
-e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
|
|
||||||
usr/sbin/update-ca-certificates || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
(
|
|
||||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
|
||||||
echo "# $(date -u)"
|
|
||||||
echo "# Do not edit."
|
|
||||||
cd "${S}${EPREFIX}"/usr/share/ca-certificates
|
|
||||||
find * -name '*.crt' | LC_ALL=C sort
|
|
||||||
) > "${S}${EPREFIX}"/etc/ca-certificates.conf
|
|
||||||
|
|
||||||
sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cp -pPR . "${D}"/ || die
|
|
||||||
|
|
||||||
mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
|
|
||||||
|
|
||||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
|
||||||
doenvd 98ca-certificates
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
|
|
||||||
# if the user has local certs, we need to rebuild again
|
|
||||||
# to include their stuff in the db.
|
|
||||||
# However it's too overzealous when the user has custom certs in place.
|
|
||||||
# --fresh is to clean up dangling symlinks
|
|
||||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local c badcerts=0
|
|
||||||
for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
|
|
||||||
ewarn "Broken symlink for a certificate at $c"
|
|
||||||
badcerts=1
|
|
||||||
done
|
|
||||||
if [ $badcerts -eq 1 ]; then
|
|
||||||
ewarn "You MUST remove the above broken symlinks"
|
|
||||||
ewarn "Otherwise any SSL validation that use the directory may fail!"
|
|
||||||
ewarn "To batch-remove them, run:"
|
|
||||||
ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,107 +0,0 @@
|
|||||||
--- a/usr/sbin/update-ca-certificates
|
|
||||||
+++ b/usr/sbin/update-ca-certificates
|
|
||||||
@@ -23,6 +23,7 @@
|
|
||||||
|
|
||||||
verbose=0
|
|
||||||
fresh=0
|
|
||||||
+ROOT=""
|
|
||||||
while [ $# -gt 0 ];
|
|
||||||
do
|
|
||||||
case $1 in
|
|
||||||
@@ -30,6 +31,9 @@
|
|
||||||
verbose=1;;
|
|
||||||
--fresh|-f)
|
|
||||||
fresh=1;;
|
|
||||||
+ --root|-r)
|
|
||||||
+ ROOT=$(readlink -f "$2")
|
|
||||||
+ shift;;
|
|
||||||
--help|-h|*)
|
|
||||||
- echo "$0: [--verbose] [--fresh]"
|
|
||||||
+ echo "$0: [--verbose] [--fresh] [--root <dir>]"
|
|
||||||
exit;;
|
|
||||||
@@ -37,11 +41,11 @@
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
|
|
||||||
-CERTSCONF=/etc/ca-certificates.conf
|
|
||||||
-CERTSDIR=/usr/share/ca-certificates
|
|
||||||
-LOCALCERTSDIR=/usr/local/share/ca-certificates
|
|
||||||
+CERTSCONF="$ROOT/etc/ca-certificates.conf"
|
|
||||||
+CERTSDIR="$ROOT/usr/share/ca-certificates"
|
|
||||||
+LOCALCERTSDIR="$ROOT/usr/local/share/ca-certificates"
|
|
||||||
CERTBUNDLE=ca-certificates.crt
|
|
||||||
-ETCCERTSDIR=/etc/ssl/certs
|
|
||||||
+ETCCERTSDIR="$ROOT/etc/ssl/certs"
|
|
||||||
|
|
||||||
cleanup() {
|
|
||||||
rm -f "$TEMPBUNDLE"
|
|
||||||
@@ -66,7 +70,7 @@
|
|
||||||
-e 's/,/_/g').pem"
|
|
||||||
if ! test -e "$PEM" || [ "$(readlink "$PEM")" != "$CERT" ]
|
|
||||||
then
|
|
||||||
- ln -sf "$CERT" "$PEM"
|
|
||||||
+ ln -sf "${CERT#$ROOT}" "$PEM"
|
|
||||||
echo +$PEM >> "$ADDED"
|
|
||||||
fi
|
|
||||||
cat "$CERT" >> "$TEMPBUNDLE"
|
|
||||||
@@ -78,22 +82,22 @@
|
|
||||||
if test -L "$PEM"
|
|
||||||
then
|
|
||||||
rm -f "$PEM"
|
|
||||||
- echo -$PEM >> "$REMOVED"
|
|
||||||
+ echo "-$PEM" >> "$REMOVED"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
-cd $ETCCERTSDIR
|
|
||||||
+cd "$ETCCERTSDIR"
|
|
||||||
if [ "$fresh" = 1 ]; then
|
|
||||||
echo -n "Clearing symlinks in $ETCCERTSDIR..."
|
|
||||||
find . -type l -print | while read symlink
|
|
||||||
do
|
|
||||||
- case $(readlink $symlink) in
|
|
||||||
- $CERTSDIR*) rm -f $symlink;;
|
|
||||||
+ case $(readlink "$symlink") in
|
|
||||||
+ "$CERTSDIR"*) rm -f "$symlink";;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
find . -type l -print | while read symlink
|
|
||||||
do
|
|
||||||
- test -f $symlink || rm -f $symlink
|
|
||||||
+ test -f "$symlink" || rm -f "$symlink"
|
|
||||||
done
|
|
||||||
echo "done."
|
|
||||||
fi
|
|
||||||
@@ -102,12 +106,12 @@
|
|
||||||
|
|
||||||
# Handle certificates that should be removed. This is an explicit act
|
|
||||||
# by prefixing lines in the configuration files with exclamation marks (!).
|
|
||||||
-sed -n -e '/^$/d' -e 's/^!//p' $CERTSCONF | while read crt
|
|
||||||
+sed -n -e '/^$/d' -e 's/^!//p' "$CERTSCONF" | while read crt
|
|
||||||
do
|
|
||||||
remove "$CERTSDIR/$crt"
|
|
||||||
done
|
|
||||||
|
|
||||||
-sed -e '/^$/d' -e '/^#/d' -e '/^!/d' $CERTSCONF | while read crt
|
|
||||||
+sed -e '/^$/d' -e '/^#/d' -e '/^!/d' "$CERTSCONF" | while read crt
|
|
||||||
do
|
|
||||||
if ! test -f "$CERTSDIR/$crt"
|
|
||||||
then
|
|
||||||
@@ -146,14 +150,14 @@
|
|
||||||
|
|
||||||
echo "$ADDED_CNT added, $REMOVED_CNT removed; done."
|
|
||||||
|
|
||||||
-HOOKSDIR=/etc/ca-certificates/update.d
|
|
||||||
+HOOKSDIR="$ROOT/etc/ca-certificates/update.d"
|
|
||||||
echo -n "Running hooks in $HOOKSDIR...."
|
|
||||||
VERBOSE_ARG=
|
|
||||||
[ "$verbose" = 0 ] || VERBOSE_ARG=--verbose
|
|
||||||
-eval run-parts $VERBOSE_ARG --test -- $HOOKSDIR | while read hook
|
|
||||||
+eval run-parts $VERBOSE_ARG --test -- \""$HOOKSDIR"\" | while read hook
|
|
||||||
do
|
|
||||||
( cat $ADDED
|
|
||||||
- cat $REMOVED ) | $hook || echo E: $hook exited with code $?.
|
|
||||||
+ cat $REMOVED ) | "$hook" || echo E: "$hook" exited with code $?.
|
|
||||||
done
|
|
||||||
echo "done."
|
|
||||||
|
|
@ -1,79 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
inherit user
|
|
||||||
|
|
||||||
MAJ_PV=${PV:0:6}
|
|
||||||
MIN_PV=${PV:7:9}
|
|
||||||
|
|
||||||
DESCRIPTION="distributed.net client"
|
|
||||||
HOMEPAGE="http://www.distributed.net"
|
|
||||||
SRC_URI="x86? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )
|
|
||||||
amd64? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-amd64-elf.tar.gz )"
|
|
||||||
|
|
||||||
LICENSE="distributed.net GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE=""
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="net-dns/bind-tools"
|
|
||||||
|
|
||||||
QA_PRESTRIPPED="opt/distributed.net/dnetc"
|
|
||||||
|
|
||||||
if use amd64; then
|
|
||||||
S="${WORKDIR}/dnetc${MIN_PV}-linux-amd64-elf"
|
|
||||||
elif use x86; then
|
|
||||||
S="${WORKDIR}/dnetc${MIN_PV}-linux-x86-elf-uclibc"
|
|
||||||
fi
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
exeinto /opt/distributed.net
|
|
||||||
doexe dnetc
|
|
||||||
|
|
||||||
doman dnetc.1
|
|
||||||
dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/dnetc.initd dnetc
|
|
||||||
newconfd "${FILESDIR}"/dnetc.confd dnetc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
|
|
||||||
einfo "flushing old buffers"
|
|
||||||
source /etc/conf.d/dnetc
|
|
||||||
|
|
||||||
if [ -e /opt/distributed.net/dnetc.ini ]; then
|
|
||||||
# use ini file
|
|
||||||
/opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
|
|
||||||
elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
|
|
||||||
# email adress from config
|
|
||||||
/opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "removing old buffer files"
|
|
||||||
rm -f /opt/distributed.net/buff*
|
|
||||||
fi
|
|
||||||
|
|
||||||
enewgroup dnetc
|
|
||||||
enewuser dnetc -1 -1 /opt/distributed.net dnetc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
chown -Rf dnetc:dnetc /opt/distributed.net
|
|
||||||
chmod 0555 /opt/distributed.net/dnetc
|
|
||||||
|
|
||||||
elog "To run distributed.net client in the background at boot:"
|
|
||||||
elog " rc-update add dnetc default"
|
|
||||||
elog ""
|
|
||||||
elog "Either configure your email address in /etc/conf.d/dnetc"
|
|
||||||
elog "or create the configuration file /opt/distributed.net/dnetc.ini"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
if [ -d /opt/distributed.net ]; then
|
|
||||||
elog "All files has not been removed from /opt/distributed.net"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,93 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
inherit user versionator linux-info
|
|
||||||
|
|
||||||
MAJ_PV="$(get_major_version).$(get_version_component_range 2)"
|
|
||||||
MIN_PV="$(get_version_component_range 3)"
|
|
||||||
|
|
||||||
DESCRIPTION="distributed.net client"
|
|
||||||
HOMEPAGE="http://www.distributed.net"
|
|
||||||
SRC_URI="http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="distributed.net GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="-* x86"
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
IUSE=""
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND=""
|
|
||||||
|
|
||||||
QA_PRESTRIPPED="opt/distributed.net/dnetc"
|
|
||||||
|
|
||||||
S="${WORKDIR}/dnetc${MIN_PV}-linux-x86-elf-uclibc"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
local CONFIG_CHECK="~SYSVIPC"
|
|
||||||
local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for dnetc)"
|
|
||||||
check_extra_config
|
|
||||||
echo
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
enewgroup dnetc
|
|
||||||
enewuser dnetc -1 -1 /opt/distributed.net dnetc
|
|
||||||
if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
|
|
||||||
ebegin "Flushing old buffers"
|
|
||||||
source /etc/conf.d/dnetc
|
|
||||||
|
|
||||||
if [ -e /etc/init.d/dnetc ] ; then
|
|
||||||
/etc/init.d/dnetc flush
|
|
||||||
local flushed=${?}
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ${flushed} -eq 0 ] ; then
|
|
||||||
true
|
|
||||||
elif [ -e /opt/distributed.net/dnetc.ini ]; then
|
|
||||||
# use ini file
|
|
||||||
/opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
|
|
||||||
elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
|
|
||||||
# email adress from config
|
|
||||||
/opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
|
|
||||||
fi
|
|
||||||
|
|
||||||
eend ${?}
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
newinitd "${FILESDIR}"/dnetc.initd dnetc
|
|
||||||
newconfd "${FILESDIR}"/dnetc.confd dnetc
|
|
||||||
|
|
||||||
local ownopts="--mode=0555 --group=dnetc --owner=dnetc"
|
|
||||||
|
|
||||||
diropts ${ownopts}
|
|
||||||
dodir /opt/distributed.net
|
|
||||||
|
|
||||||
exeopts ${ownopts}
|
|
||||||
exeinto /opt/distributed.net
|
|
||||||
doexe dnetc
|
|
||||||
|
|
||||||
doman dnetc.1
|
|
||||||
dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
|
|
||||||
|
|
||||||
diropts ${ownopts/0555/0755}
|
|
||||||
dodir /var/spool/dnetc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
einfo "To run distributed.net client in the background at boot:"
|
|
||||||
einfo " rc-update add dnetc default"
|
|
||||||
einfo
|
|
||||||
einfo "Either configure your email address in /etc/conf.d/dnetc"
|
|
||||||
einfo "or create the configuration file /opt/distributed.net/dnetc.ini"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
if [ -d /opt/distributed.net ]; then
|
|
||||||
einfo "All files has not been removed from /opt/distributed.net"
|
|
||||||
einfo "Probably old init file and/or buffer files"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,86 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=2
|
|
||||||
inherit user
|
|
||||||
|
|
||||||
MAJ_PV=${PV:0:6}
|
|
||||||
MIN_PV=${PV:7:9}
|
|
||||||
|
|
||||||
DESCRIPTION="distributed.net client"
|
|
||||||
HOMEPAGE="http://www.distributed.net"
|
|
||||||
SRC_URI="x86? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )
|
|
||||||
amd64? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-amd64-elf.tar.gz )"
|
|
||||||
|
|
||||||
LICENSE="distributed.net GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="net-dns/bind-tools"
|
|
||||||
|
|
||||||
QA_PRESTRIPPED="opt/distributed.net/dnetc"
|
|
||||||
|
|
||||||
S=${WORKDIR}/dnetc
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use amd64; then
|
|
||||||
mv dnetc${MIN_PV}-linux-amd64-elf dnetc
|
|
||||||
elif use x86; then
|
|
||||||
mv dnetc${MIN_PV}-linux-x86-elf-uclibc dnetc
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
exeinto /opt/distributed.net
|
|
||||||
doexe dnetc
|
|
||||||
|
|
||||||
doman dnetc.1
|
|
||||||
dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/dnetc.initd dnetc
|
|
||||||
newconfd "${FILESDIR}"/dnetc.confd dnetc
|
|
||||||
|
|
||||||
keepdir /var/spool/dnetc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
|
|
||||||
einfo "flushing old buffers"
|
|
||||||
source /etc/conf.d/dnetc
|
|
||||||
|
|
||||||
if [ -e /opt/distributed.net/dnetc.ini ]; then
|
|
||||||
# use ini file
|
|
||||||
/opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
|
|
||||||
elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
|
|
||||||
# email adress from config
|
|
||||||
/opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "removing old buffer files"
|
|
||||||
rm -f /opt/distributed.net/buff*
|
|
||||||
fi
|
|
||||||
|
|
||||||
enewgroup dnetc
|
|
||||||
enewuser dnetc -1 -1 /opt/distributed.net dnetc
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
chown -Rf dnetc:dnetc /opt/distributed.net
|
|
||||||
chmod 0555 /opt/distributed.net/dnetc
|
|
||||||
|
|
||||||
elog "To run distributed.net client in the background at boot:"
|
|
||||||
elog " rc-update add dnetc default"
|
|
||||||
elog ""
|
|
||||||
elog "Either configure your email address in /etc/conf.d/dnetc"
|
|
||||||
elog "or create the configuration file /opt/distributed.net/dnetc.ini"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
if [ -d /opt/distributed.net ]; then
|
|
||||||
elog "All files has not been removed from /opt/distributed.net"
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,3 +1 @@
|
|||||||
DIST getopt-1.1.4.tar.gz 37163 SHA256 41083d9993c26792851e79b81a0991996a3f61e14998fdd607615cc3bf933bab SHA512 9ec9b5ca50a02b6ae772b133408e61fb9fcb5840c00f23d1c836a9c7ee86778211dcb1ecf5cdcaf9e2488b2db0671e29bc8be55f1a7ca4f1d48cc3921dfe04ad WHIRLPOOL 64e4942064930303ecc8cd6ea22f93ccd0c34415815f1e4fc43d2786b1e3bd511fac6d0aa6ef470b0a026a7776c4e0b345b1beada0c972203808232d0c331727
|
|
||||||
DIST getopt-1.1.5.tar.gz 51794 SHA256 11893276b94b1629606ab75772143918a5713259950fbf4216288e246f19fbb6 SHA512 43597a1a8dd1dc188b6b4f0a8f8d438456013276aa1c719889e242ba2b526dccbca2fccd3d82d1541f4e0920fd277c101a436ed0c208124227481f792cb1cf75 WHIRLPOOL c5de1797b0c294a404ef8e801d86677d0b84fd6974e5d5ad8d234ae28db5446d0b13766362ecac459b3f8ce07d56282a3f0274b460d5d95118000762d9374815
|
|
||||||
DIST getopt-1.1.6.tar.gz 58926 SHA256 d0bf1dc642a993e7388a1cddfb9409bed375c21d5278056ccca3a0acd09dc5fe SHA512 aa5476e729f33ddd3f32f38b2565da319fdfe034f11549218d5d9953e70dad764e0d9a82bb10efe4043c86ae87f944619b8a2f29a197f592bd855699961d8e10 WHIRLPOOL 0fa96415fa5d9b001313b1491a0f260922dbb52ac72d6242e6ff332ac802e3d6cac2401c8e8a8f9cc09376d3c51f4b1cc3bd0f976dc857cd72c1ffc7b1d770da
|
DIST getopt-1.1.6.tar.gz 58926 SHA256 d0bf1dc642a993e7388a1cddfb9409bed375c21d5278056ccca3a0acd09dc5fe SHA512 aa5476e729f33ddd3f32f38b2565da319fdfe034f11549218d5d9953e70dad764e0d9a82bb10efe4043c86ae87f944619b8a2f29a197f592bd855699961d8e10 WHIRLPOOL 0fa96415fa5d9b001313b1491a0f260922dbb52ac72d6242e6ff332ac802e3d6cac2401c8e8a8f9cc09376d3c51f4b1cc3bd0f976dc857cd72c1ffc7b1d770da
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
Index: getopt-1.1.4/Makefile
|
|
||||||
===================================================================
|
|
||||||
--- getopt-1.1.4.orig/Makefile
|
|
||||||
+++ getopt-1.1.4/Makefile
|
|
||||||
@@ -33,7 +33,10 @@ MSGFMT=msgfmt
|
|
||||||
LANGUAGES = cs de es fr it ja nl pt_BR
|
|
||||||
MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES))
|
|
||||||
|
|
||||||
-CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITH_GETTEXT=$(WITH_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX
|
|
||||||
+CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX
|
|
||||||
+ifeq ($(WITHOUT_GETTEXT),1)
|
|
||||||
+CPPFLAGS+=-DWITHOUT_GETTEXT
|
|
||||||
+endif
|
|
||||||
ifeq ($(LIBCGETOPT),0)
|
|
||||||
CPPFLAGS+=-I./gnu
|
|
||||||
endif
|
|
||||||
@@ -62,7 +65,7 @@ clean: clean_po
|
|
||||||
-$(RM) $(objects) $(binaries)
|
|
||||||
|
|
||||||
getopt: $(objects)
|
|
||||||
- $(CC) $(LDFLAGS) -o $@ $(objects)
|
|
||||||
+ $(CC) $(LDFLAGS) -o $@ $(objects) $(LIBINTL)
|
|
||||||
|
|
||||||
install: getopt install_po
|
|
||||||
$(INSTALL) -m 755 -d $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
|
|
||||||
@@ -75,7 +78,7 @@ install_doc:
|
|
||||||
getopt-test.bash getopt-test.tcsh \
|
|
||||||
$(DESTDIR)$(getoptdir)
|
|
||||||
|
|
||||||
-ifeq ($(WITH_GETTEXT),1)
|
|
||||||
+ifeq ($(WITHOUT_GETTEXT),0)
|
|
||||||
all_po: $(MOFILES)
|
|
||||||
install_po: all_po
|
|
||||||
$(INSTALL) -m 755 -d $(DESTDIR)$(localedir)
|
|
@ -1,118 +0,0 @@
|
|||||||
Index: getopt-1.1.4/getopt.c
|
|
||||||
===================================================================
|
|
||||||
--- getopt-1.1.4.orig/getopt.c
|
|
||||||
+++ getopt-1.1.4/getopt.c
|
|
||||||
@@ -88,7 +88,7 @@ void *our_malloc(size_t size)
|
|
||||||
{
|
|
||||||
void *ret=malloc(size);
|
|
||||||
if (! ret) {
|
|
||||||
- fprintf(stderr,_("%s: Out of memory!\n"),"getopt");
|
|
||||||
+ fprintf(stderr,_("%s: Out of memory!\n"),"getopt-long");
|
|
||||||
exit(3);
|
|
||||||
}
|
|
||||||
return(ret);
|
|
||||||
@@ -98,7 +98,7 @@ void *our_realloc(void *ptr, size_t size
|
|
||||||
{
|
|
||||||
void *ret=realloc(ptr,size);
|
|
||||||
if (! ret && size) {
|
|
||||||
- fprintf(stderr,_("%s: Out of memory!\n"),"getopt");
|
|
||||||
+ fprintf(stderr,_("%s: Out of memory!\n"),"getopt-long");
|
|
||||||
exit(3);
|
|
||||||
}
|
|
||||||
return(ret);
|
|
||||||
@@ -231,8 +231,8 @@ int generate_output(char * argv[],int ar
|
|
||||||
void parse_error(const char *message)
|
|
||||||
{
|
|
||||||
if (message)
|
|
||||||
- fprintf(stderr,"getopt: %s\n",message);
|
|
||||||
- fputs(_("Try `getopt --help' for more information.\n"),stderr);
|
|
||||||
+ fprintf(stderr,"getopt-long: %s\n",message);
|
|
||||||
+ fputs(_("Try `getopt-long --help' for more information.\n"),stderr);
|
|
||||||
exit(2);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -323,10 +323,10 @@ void set_shell(const char *new_shell)
|
|
||||||
|
|
||||||
void print_help(void)
|
|
||||||
{
|
|
||||||
- fputs(_("Usage: getopt optstring parameters\n"),stderr);
|
|
||||||
- fputs(_(" getopt [options] [--] optstring parameters\n"),stderr);
|
|
||||||
- fputs(_(" getopt [options] -o|--options optstring [options] [--]\n"),stderr);
|
|
||||||
- fputs(_(" parameters\n"),stderr);
|
|
||||||
+ fputs(_("Usage: getopt-long optstring parameters\n"),stderr);
|
|
||||||
+ fputs(_(" getopt-long [options] [--] optstring parameters\n"),stderr);
|
|
||||||
+ fputs(_(" getopt-long [options] -o|--options optstring [options] [--]\n"),stderr);
|
|
||||||
+ fputs(_(" parameters\n"),stderr);
|
|
||||||
fputs(_(" -a, --alternative Allow long options starting with single -\n"),stderr);
|
|
||||||
fputs(_(" -h, --help This small usage guide\n"),stderr);
|
|
||||||
fputs(_(" -l, --longoptions=longopts Long options to be recognized\n"),stderr);
|
|
||||||
@@ -335,7 +335,7 @@ void print_help(void)
|
|
||||||
fputs(_(" -q, --quiet Disable error reporting by getopt(3)\n"),stderr);
|
|
||||||
fputs(_(" -Q, --quiet-output No normal output\n"),stderr);
|
|
||||||
fputs(_(" -s, --shell=shell Set shell quoting conventions\n"),stderr);
|
|
||||||
- fputs(_(" -T, --test Test for getopt(1) version\n"),stderr);
|
|
||||||
+ fputs(_(" -T, --test Test for getopt-long(1) version\n"),stderr);
|
|
||||||
fputs(_(" -u, --unqote Do not quote the output\n"),stderr);
|
|
||||||
fputs(_(" -V, --version Output version information\n"),stderr);
|
|
||||||
exit(2);
|
|
||||||
@@ -443,7 +443,7 @@ int main(int argc, char *argv[])
|
|
||||||
quote=0;
|
|
||||||
break;
|
|
||||||
case 'V':
|
|
||||||
- printf(_("getopt (enhanced) 1.1.4\n"));
|
|
||||||
+ printf(_("getopt-long (enhanced) 1.1.4\n"));
|
|
||||||
exit(0);
|
|
||||||
case '?':
|
|
||||||
case ':':
|
|
||||||
Index: getopt-1.1.4/getopt-parse.bash
|
|
||||||
===================================================================
|
|
||||||
--- getopt-1.1.4.orig/getopt-parse.bash
|
|
||||||
+++ getopt-1.1.4/getopt-parse.bash
|
|
||||||
@@ -19,7 +19,7 @@
|
|
||||||
# Note that we use `"$@"' to let each command-line parameter expand to a
|
|
||||||
# separate word. The quotes around `$@' are essential!
|
|
||||||
# We need TEMP as the `eval set --' would nuke the return value of getopt.
|
|
||||||
-TEMP=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \
|
|
||||||
+TEMP=`getopt-long -o ab:c:: --long a-long,b-long:,c-long:: \
|
|
||||||
-n 'example.bash' -- "$@"`
|
|
||||||
|
|
||||||
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
|
|
||||||
Index: getopt-1.1.4/getopt-parse.tcsh
|
|
||||||
===================================================================
|
|
||||||
--- getopt-1.1.4.orig/getopt-parse.tcsh
|
|
||||||
+++ getopt-1.1.4/getopt-parse.tcsh
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
# as a list. The ':q` copies that list without doing any substitutions:
|
|
||||||
# each element of argv becomes a separate argument for getopt. The braces
|
|
||||||
# are needed because the result is also a list.
|
|
||||||
-set temp=(`getopt -s tcsh -o ab:c:: --long a-long,b-long:,c-long:: -- $argv:q`)
|
|
||||||
+set temp=(`getopt-long -s tcsh -o ab:c:: --long a-long,b-long:,c-long:: -- $argv:q`)
|
|
||||||
if ($? != 0) then
|
|
||||||
echo "Terminating..." >/dev/stderr
|
|
||||||
exit 1
|
|
||||||
Index: getopt-1.1.4/Makefile
|
|
||||||
===================================================================
|
|
||||||
--- getopt-1.1.4.orig/Makefile
|
|
||||||
+++ getopt-1.1.4/Makefile
|
|
||||||
@@ -85,7 +85,7 @@ install_po: all_po
|
|
||||||
for lang in $(LANGUAGES) ; do \
|
|
||||||
dir=$(localedir)/$$lang/LC_MESSAGES; \
|
|
||||||
$(INSTALL) -m 755 -d $(DESTDIR)$$dir ;\
|
|
||||||
- $(INSTALL) -m 644 po/$$lang.mo $(DESTDIR)$$dir/getopt.mo ;\
|
|
||||||
+ $(INSTALL) -m 644 po/$$lang.mo $(DESTDIR)$$dir/getopt-long.mo ;\
|
|
||||||
done
|
|
||||||
clean_po:
|
|
||||||
$(RM) $(MOFILES)
|
|
||||||
Index: getopt-1.1.4/nls.h
|
|
||||||
===================================================================
|
|
||||||
--- getopt-1.1.4.orig/nls.h
|
|
||||||
+++ getopt-1.1.4/nls.h
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
#ifndef GETOPT_NLS
|
|
||||||
#define GETOPT_NLS
|
|
||||||
|
|
||||||
-#define PACKAGE "getopt"
|
|
||||||
+#define PACKAGE "getopt-long"
|
|
||||||
|
|
||||||
#ifndef WITHOUT_GETTEXT
|
|
||||||
#include <libintl.h>
|
|
@ -1,79 +0,0 @@
|
|||||||
--- getopt-1.1.5/getopt-parse.bash
|
|
||||||
+++ getopt-1.1.5/getopt-parse.bash
|
|
||||||
@@ -19,7 +19,7 @@
|
|
||||||
# Note that we use `"$@"' to let each command-line parameter expand to a
|
|
||||||
# separate word. The quotes around `$@' are essential!
|
|
||||||
# We need TEMP as the `eval set --' would nuke the return value of getopt.
|
|
||||||
-TEMP=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \
|
|
||||||
+TEMP=`getopt-long -o ab:c:: --long a-long,b-long:,c-long:: \
|
|
||||||
-n 'example.bash' -- "$@"`
|
|
||||||
|
|
||||||
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
|
|
||||||
--- getopt-1.1.5/getopt-parse.tcsh
|
|
||||||
+++ getopt-1.1.5/getopt-parse.tcsh
|
|
||||||
@@ -26,7 +26,7 @@
|
|
||||||
# as a list. The ':q` copies that list without doing any substitutions:
|
|
||||||
# each element of argv becomes a separate argument for getopt. The braces
|
|
||||||
# are needed because the result is also a list.
|
|
||||||
-set temp=(`getopt -s tcsh -o ab:c:: --long a-long,b-long:,c-long:: -- $argv:q`)
|
|
||||||
+set temp=(`getopt-long -s tcsh -o ab:c:: --long a-long,b-long:,c-long:: -- $argv:q`)
|
|
||||||
if ($? != 0) then
|
|
||||||
echo "Terminating..." >/dev/stderr
|
|
||||||
exit 1
|
|
||||||
--- getopt-1.1.5/getopt.c
|
|
||||||
+++ getopt-1.1.5/getopt.c
|
|
||||||
@@ -320,10 +320,10 @@
|
|
||||||
|
|
||||||
static void __attribute__ ((__noreturn__)) print_help(void)
|
|
||||||
{
|
|
||||||
- fputs(_("Usage: getopt optstring parameters\n"), stderr);
|
|
||||||
- fputs(_(" getopt [options] [--] optstring parameters\n"), stderr);
|
|
||||||
- fputs(_(" getopt [options] -o|--options optstring [options] [--]\n"), stderr);
|
|
||||||
- fputs(_(" parameters\n"), stderr);
|
|
||||||
+ fputs(_("Usage: getopt-long optstring parameters\n"), stderr);
|
|
||||||
+ fputs(_(" getopt-long [options] [--] optstring parameters\n"), stderr);
|
|
||||||
+ fputs(_(" getopt-long [options] -o|--options optstring [options] [--]\n"), stderr);
|
|
||||||
+ fputs(_(" parameters\n"), stderr);
|
|
||||||
fputs(_("\nOptions:\n"), stderr);
|
|
||||||
fputs(_(" -a, --alternative Allow long options starting with single -\n"), stderr);
|
|
||||||
fputs(_(" -h, --help This small usage guide\n"), stderr);
|
|
||||||
@@ -333,7 +333,7 @@
|
|
||||||
fputs(_(" -q, --quiet Disable error reporting by getopt(3)\n"), stderr);
|
|
||||||
fputs(_(" -Q, --quiet-output No normal output\n"), stderr);
|
|
||||||
fputs(_(" -s, --shell <shell> Set shell quoting conventions\n"), stderr);
|
|
||||||
- fputs(_(" -T, --test Test for getopt(1) version\n"), stderr);
|
|
||||||
+ fputs(_(" -T, --test Test for getopt-long(1) version\n"), stderr);
|
|
||||||
fputs(_(" -u, --unquote Do not quote the output\n"), stderr);
|
|
||||||
fputs(_(" -V, --version Output version information\n"), stderr);
|
|
||||||
fputc('\n', stderr);
|
|
||||||
--- getopt-1.1.5/Makefile
|
|
||||||
+++ getopt-1.1.5/Makefile
|
|
||||||
@@ -32,7 +32,7 @@
|
|
||||||
LANGUAGES = ca cs da de es et eu fi fr gl hu id it ja nl pl pt_BR ru sl sv tr uk vi zh_CN zh_TW
|
|
||||||
MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES))
|
|
||||||
|
|
||||||
-CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)\" -Dprogram_version=\"$(VERSION)\"
|
|
||||||
+CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)-long\" -Dprogram_version=\"$(VERSION)\"
|
|
||||||
ifeq ($(LIBCGETOPT),0)
|
|
||||||
CPPFLAGS+=-I./gnu
|
|
||||||
endif
|
|
||||||
@@ -81,7 +81,7 @@
|
|
||||||
for lang in $(LANGUAGES) ; do \
|
|
||||||
dir=$(localedir)/$$lang/LC_MESSAGES; \
|
|
||||||
$(INSTALL) -m 755 -d $(DESTDIR)$$dir ;\
|
|
||||||
- $(INSTALL) -m 644 po/$$lang.mo $(DESTDIR)$$dir/getopt.mo ;\
|
|
||||||
+ $(INSTALL) -m 644 po/$$lang.mo $(DESTDIR)$$dir/getopt-long.mo ;\
|
|
||||||
done
|
|
||||||
clean_po:
|
|
||||||
$(RM) $(MOFILES)
|
|
||||||
--- getopt-1.1.5/nls.h
|
|
||||||
+++ getopt-1.1.5/nls.h
|
|
||||||
@@ -29,7 +29,7 @@
|
|
||||||
#ifndef GETOPT_NLS
|
|
||||||
#define GETOPT_NLS
|
|
||||||
|
|
||||||
-#define PACKAGE "getopt"
|
|
||||||
+#define PACKAGE "getopt-long"
|
|
||||||
|
|
||||||
#if WITHOUT_GETTEXT
|
|
||||||
#define _(Text) (Text)
|
|
@ -1,64 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
|
|
||||||
inherit toolchain-funcs eutils
|
|
||||||
|
|
||||||
DESCRIPTION="getopt(1) replacement supporting GNU-style long options"
|
|
||||||
HOMEPAGE="http://software.frodo.looijaard.name/getopt/"
|
|
||||||
SRC_URI="http://software.frodo.looijaard.name/getopt/files/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="nls"
|
|
||||||
|
|
||||||
RDEPEND="nls? ( virtual/libintl )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
nls? ( sys-devel/gettext )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}/${P}-libintl.patch"
|
|
||||||
epatch "${FILESDIR}/${P}-longrename.patch"
|
|
||||||
|
|
||||||
# hopefully this is portable enough
|
|
||||||
epatch "${FILESDIR}"/${P}-irix.patch
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local nogettext="1"
|
|
||||||
local libintl=""
|
|
||||||
local libcgetopt=1
|
|
||||||
|
|
||||||
if use nls; then
|
|
||||||
nogettext=0
|
|
||||||
has_version sys-libs/glibc || libintl="-lintl"
|
|
||||||
fi
|
|
||||||
|
|
||||||
[[ ${CHOST} == *-irix* ]] && libcgetopt=0
|
|
||||||
[[ ${CHOST} == *-interix* ]] && libcgetopt=0
|
|
||||||
|
|
||||||
emake CC="$(tc-getCC)" prefix="${EPREFIX}/usr" \
|
|
||||||
LIBCGETOPT=${libcgetopt} \
|
|
||||||
WITHOUT_GETTEXT=${nogettext} LIBINTL=${libintl} \
|
|
||||||
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
use nls && make prefix="${EPREFIX}/usr" DESTDIR="${D}" install_po
|
|
||||||
|
|
||||||
into /usr
|
|
||||||
newbin getopt getopt-long
|
|
||||||
|
|
||||||
# at least on interix, the system getopt is ... broken...
|
|
||||||
# util-linux, which would provide the getopt binary, does not build &
|
|
||||||
# install on interix/prefix, so, this has to provide it.
|
|
||||||
[[ ${CHOST} == *-interix* || ${CHOST} == *-mint* ]] && \
|
|
||||||
dosym getopt-long /usr/bin/getopt
|
|
||||||
|
|
||||||
newman getopt.1 getopt-long.1
|
|
||||||
|
|
||||||
dodoc "${S}/getopt-"*sh
|
|
||||||
}
|
|
@ -1,65 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=3
|
|
||||||
|
|
||||||
inherit toolchain-funcs eutils
|
|
||||||
|
|
||||||
DESCRIPTION="getopt(1) replacement supporting GNU-style long options"
|
|
||||||
HOMEPAGE="http://software.frodo.looijaard.name/getopt/"
|
|
||||||
SRC_URI="http://software.frodo.looijaard.name/getopt/files/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="nls"
|
|
||||||
|
|
||||||
RDEPEND="nls? ( virtual/libintl )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
nls? ( sys-devel/gettext )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${P}-libintl.patch
|
|
||||||
epatch "${FILESDIR}"/${P}-setlocale.patch
|
|
||||||
epatch "${FILESDIR}"/${P}-longrename.patch
|
|
||||||
|
|
||||||
# hopefully this is portable enough
|
|
||||||
epatch "${FILESDIR}"/${PN}-1.1.4-irix.patch
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local nogettext="1"
|
|
||||||
local libintl=""
|
|
||||||
local libcgetopt=1
|
|
||||||
|
|
||||||
if use nls; then
|
|
||||||
nogettext=0
|
|
||||||
has_version sys-libs/glibc || libintl="-lintl"
|
|
||||||
fi
|
|
||||||
|
|
||||||
[[ ${CHOST} == *-irix* ]] && libcgetopt=0
|
|
||||||
[[ ${CHOST} == *-interix* ]] && libcgetopt=0
|
|
||||||
|
|
||||||
emake CC="$(tc-getCC)" prefix="${EPREFIX}/usr" \
|
|
||||||
LIBCGETOPT=${libcgetopt} \
|
|
||||||
WITHOUT_GETTEXT=${nogettext} LIBINTL=${libintl} \
|
|
||||||
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
use nls && make prefix="${EPREFIX}/usr" DESTDIR="${D}" install_po
|
|
||||||
|
|
||||||
into /usr
|
|
||||||
newbin getopt getopt-long
|
|
||||||
|
|
||||||
# at least on interix, the system getopt is ... broken...
|
|
||||||
# util-linux, which would provide the getopt binary, does not build &
|
|
||||||
# install on interix/prefix, so, this has to provide it.
|
|
||||||
[[ ${CHOST} == *-interix* || ${CHOST} == *-mint* ]] && \
|
|
||||||
dosym getopt-long /usr/bin/getopt
|
|
||||||
|
|
||||||
newman getopt.1 getopt-long.1
|
|
||||||
|
|
||||||
dodoc "${S}/getopt-"*sh
|
|
||||||
}
|
|
@ -0,0 +1,58 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
|
||||||
|
inherit eutils toolchain-funcs unpacker
|
||||||
|
|
||||||
|
DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
|
||||||
|
HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
|
||||||
|
SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
|
||||||
|
http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
|
||||||
|
http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||||
|
IUSE="caps debug python seccomp"
|
||||||
|
|
||||||
|
RDEPEND="caps? ( >=sys-libs/libcap-2.24 )
|
||||||
|
python? ( dev-python/pyelftools )
|
||||||
|
seccomp? ( sys-libs/libseccomp )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
caps? ( virtual/pkgconfig )
|
||||||
|
seccomp? ( virtual/pkgconfig )
|
||||||
|
app-arch/xz-utils"
|
||||||
|
|
||||||
|
_emake() {
|
||||||
|
emake \
|
||||||
|
USE_CAP=$(usex caps) \
|
||||||
|
USE_DEBUG=$(usex debug) \
|
||||||
|
USE_PYTHON=$(usex python) \
|
||||||
|
USE_SECCOMP=$(usex seccomp) \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# Avoid slow configure+gnulib+make if on an up-to-date Linux system
|
||||||
|
if use prefix || ! use kernel_linux || \
|
||||||
|
has_version '<sys-libs/glibc-2.10'
|
||||||
|
then
|
||||||
|
econf $(use_with caps) $(use_with debug) $(use_with python) $(use_with seccomp)
|
||||||
|
else
|
||||||
|
tc-export CC
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
_emake
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
_emake check
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
_emake DESTDIR="${ED}" PKGDOCDIR='$(DOCDIR)'/${PF} install
|
||||||
|
}
|
@ -1,106 +0,0 @@
|
|||||||
* Get rid of a lot of compiler flag cruft
|
|
||||||
* Respect LDFLAGS and CFLAGS
|
|
||||||
|
|
||||||
--- a/configure.in 2004-11-28 00:47:52.000000000 +0100
|
|
||||||
+++ b/configure.in 2010-09-19 05:49:48.000000000 +0200
|
|
||||||
@@ -14,12 +14,7 @@
|
|
||||||
bin=wipe
|
|
||||||
|
|
||||||
fullCFLAGS=""
|
|
||||||
-wallCFLAGS=""
|
|
||||||
-pendanticCFLAGS=""
|
|
||||||
-tempCFLAGS=""
|
|
||||||
-temp2CFLAGS=""
|
|
||||||
-checkCFLAGS=""
|
|
||||||
-optCFLAGS=""
|
|
||||||
+optCFLAGS="${CFLAGS}"
|
|
||||||
#CFLAGS="-g -Wall -Werror -ansi -pedantic -O2 -finline-functions -ffast-math -fomit-frame-pointer"
|
|
||||||
|
|
||||||
AC_CANONICAL_SYSTEM
|
|
||||||
@@ -34,65 +29,9 @@
|
|
||||||
AC_PROG_INSTALL
|
|
||||||
|
|
||||||
dnl Compilation tests
|
|
||||||
-AC_MSG_CHECKING([whether the C compiler accepts -pipe])
|
|
||||||
-CFLAGS="-pipe"
|
|
||||||
-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); tempCFLAGS="$CFLAGS",AC_MSG_RESULT(no))
|
|
||||||
-
|
|
||||||
-AC_MSG_CHECKING([whether the C compiler accepts -g])
|
|
||||||
-CFLAGS="-g"
|
|
||||||
-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); debugCFLAGS="$CFLAGS",AC_MSG_RESULT(no))
|
|
||||||
-
|
|
||||||
-AC_MSG_CHECKING([whether the C compiler accepts -O0])
|
|
||||||
-CFLAGS="-O0"
|
|
||||||
-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); debugCFLAGS="$debugCFLAGS $CFLAGS",AC_MSG_RESULT(no))
|
|
||||||
-
|
|
||||||
-AC_MSG_CHECKING([whether the C compiler accepts -O2])
|
|
||||||
-CFLAGS="-O2"
|
|
||||||
-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); tempCFLAGS="$tempCFLAGS $CFLAGS",AC_MSG_RESULT(no))
|
|
||||||
-
|
|
||||||
-AC_MSG_CHECKING([whether the C compiler accepts -ansi])
|
|
||||||
-CFLAGS="-ansi"
|
|
||||||
-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); checkCFLAGS="$checkCFLAGS $CFLAGS",AC_MSG_RESULT(no))
|
|
||||||
-
|
|
||||||
-AC_MSG_CHECKING([whether the C compiler accepts -pedantic])
|
|
||||||
-CFLAGS="-pedantic"
|
|
||||||
-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); checkCFLAGS="$checkCFLAGS $CFLAGS",AC_MSG_RESULT(no))
|
|
||||||
-
|
|
||||||
-AC_MSG_CHECKING([whether the C compiler accepts -Wall])
|
|
||||||
-CFLAGS="-Wall"
|
|
||||||
-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); wallCFLAGS="$CFLAGS",AC_MSG_RESULT(no))
|
|
||||||
-
|
|
||||||
-AC_MSG_CHECKING([whether the C compiler accepts -Werror])
|
|
||||||
-CFLAGS="-Werror"
|
|
||||||
-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); pedanticCFLAGS="$wallCFLAGS $CFLAGS",AC_MSG_RESULT(no))
|
|
||||||
-
|
|
||||||
-AC_MSG_CHECKING([whether the C compiler accepts -ffast-math])
|
|
||||||
-CFLAGS="-ffast-math"
|
|
||||||
-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); optCFLAGS="$optCFLAGS $CFLAGS",AC_MSG_RESULT(no))
|
|
||||||
-
|
|
||||||
-AC_ARG_ENABLE(wall,
|
|
||||||
- [ --enable-wall compile with -ansi -pedantic -Wall -Werror],
|
|
||||||
- [with_wall=$enableval],
|
|
||||||
- [with_wall=no])
|
|
||||||
-test "$with_wall" = "yes" && fullCFLAGS="$checkCFLAGS $wallCFLAGS $pendanticCFLAGS $fullCFLAGS"
|
|
||||||
-
|
|
||||||
-temp2CFLAGS="$tempCFLAGS $optCFLAGS"
|
|
||||||
-
|
|
||||||
-AC_ARG_ENABLE(debug,
|
|
||||||
- [ --enable-debug compile for debugger compatibility],
|
|
||||||
- [with_debug=$enableval],
|
|
||||||
- [with_debug=no])
|
|
||||||
-test "$with_debug" = "yes" && temp2CFLAGS="$wallCFLAGS $debugCFLAGS"
|
|
||||||
-
|
|
||||||
-AC_ARG_ENABLE(efence,
|
|
||||||
- [ --enable-efence debug build + link with electric fence],
|
|
||||||
- [with_efence=$enableval],
|
|
||||||
- [with_efence=no])
|
|
||||||
-test "$with_efence" = "yes" && temp2CFLAGS="$debugCFLAGS" && LIBS="-lefence"
|
|
||||||
-
|
|
||||||
-DEBUG="$debugCFLAGS $fullCFLAGS"
|
|
||||||
-fullCFLAGS="$temp2CFLAGS $fullCFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
||||||
-CFLAGS="$checkCFLAGS -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES"
|
|
||||||
+
|
|
||||||
+fullCFLAGS="$optCFLAGS $fullCFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
||||||
+CFLAGS="$fullCFLAGS" # -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES"
|
|
||||||
|
|
||||||
dnl Checks for libraries.
|
|
||||||
|
|
||||||
@@ -124,6 +63,4 @@
|
|
||||||
|
|
||||||
dnl Done with tests
|
|
||||||
|
|
||||||
-CFLAGS="$fullCFLAGS"
|
|
||||||
-
|
|
||||||
AC_OUTPUT(Makefile)
|
|
||||||
--- a/Makefile.in 2003-08-31 03:18:03.000000000 +0200
|
|
||||||
+++ b/Makefile.in 2010-09-19 05:50:30.000000000 +0200
|
|
||||||
@@ -31,7 +31,7 @@
|
|
||||||
all: $(REQ) $(BIN)
|
|
||||||
|
|
||||||
$(BIN): main.o wipe.o rand.o dir.o file.o blkdev.o lock.o text.o str.o percent.o prompt.o io.o mt.o
|
|
||||||
- $(CC) $(LIBS) *.o -o $@
|
|
||||||
+ $(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) *.o -o $@
|
|
||||||
|
|
||||||
|
|
||||||
# restores everything to a pre-configured state
|
|
@ -1,43 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI="2"
|
|
||||||
|
|
||||||
inherit autotools eutils toolchain-funcs versionator
|
|
||||||
|
|
||||||
MY_PV=$(get_version_component_range 3)
|
|
||||||
MY_SRC=${PN}-wip-${MY_PV}
|
|
||||||
S="${WORKDIR}/${PN}"
|
|
||||||
|
|
||||||
DESCRIPTION="Secure file wiping utility based on Peter Gutman's patterns"
|
|
||||||
HOMEPAGE="http://wipe.sourceforge.net/"
|
|
||||||
SRC_URI="mirror://sourceforge/wipe/${MY_SRC}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${P}-gentoo.patch
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake CC="$(tc-getCC)" || die emake failed
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin wipe || die "dobin failed"
|
|
||||||
doman wipe.1
|
|
||||||
dodoc CHANGES README TODO TESTING
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Note that wipe is useless on journalling filesystems, such as reiserfs or XFS."
|
|
||||||
elog "See documentation for more info."
|
|
||||||
}
|
|
@ -1,38 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
inherit versionator toolchain-funcs
|
|
||||||
|
|
||||||
MY_PV=$(get_version_component_range 3)
|
|
||||||
MY_SRC=${PN}-wip-${MY_PV}
|
|
||||||
S="${WORKDIR}/${PN}"
|
|
||||||
|
|
||||||
DESCRIPTION="Secure file wiping utility based on Peter Gutman's patterns"
|
|
||||||
HOMEPAGE="http://wipe.sourceforge.net/"
|
|
||||||
SRC_URI="mirror://sourceforge/wipe/${MY_SRC}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ppc ~ppc64 x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
econf
|
|
||||||
sed -i -e "s:-pipe -O2:${CFLAGS}:" "${S}"/Makefile || die "sed failed"
|
|
||||||
emake CC="$(tc-getCC)" || die emake failed
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin wipe || die "dobin failed"
|
|
||||||
doman wipe.1
|
|
||||||
dodoc CHANGES README TODO TESTING
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "Note that wipe is useless on journalling filesystems, such as reiserfs or XFS."
|
|
||||||
elog "See documentation for more info."
|
|
||||||
}
|
|
@ -1,9 +1,6 @@
|
|||||||
DIST redis-2.6.15.tar.gz 998865 SHA256 b0105c6ec526d40e90a0a0bc9d070a5602d839b930776b8ecaeb9fa32493e3bc SHA512 8614b5531049f99a19e3ba87c7d632ab43d02e1c62b6287534ebec35e4a484e3eefabd94d7ca52eb31eb56675451aef94265514be78fdaebd50db5230a525563 WHIRLPOOL c1eba6bccb17c6733d3b5f6e06933ff7ea8689d4cb16e0005f002fda75bda1d730b815546e5d3b50fcd6f85a05a35585244a7a69263795e7bda53bd1a588db03
|
DIST redis-2.6.15.tar.gz 998865 SHA256 b0105c6ec526d40e90a0a0bc9d070a5602d839b930776b8ecaeb9fa32493e3bc SHA512 8614b5531049f99a19e3ba87c7d632ab43d02e1c62b6287534ebec35e4a484e3eefabd94d7ca52eb31eb56675451aef94265514be78fdaebd50db5230a525563 WHIRLPOOL c1eba6bccb17c6733d3b5f6e06933ff7ea8689d4cb16e0005f002fda75bda1d730b815546e5d3b50fcd6f85a05a35585244a7a69263795e7bda53bd1a588db03
|
||||||
DIST redis-2.6.16.tar.gz 999579 SHA256 81490918dcf82d124b36e48b0a9911bfba3f13abba04d8c89820324eff7df03a SHA512 469a29e2a755543a3b2c3deb467a72ae62b81c54a60ed1baf6f9d5687ef4b87c22d9cec6a43cec43dd90d4b5561f5bbcd2448f6edf8a784041233b80d9403b0b WHIRLPOOL ed10212f6465083cc689d83cb0c4db63e15697a232a7e6621fb3b41e263cb8d16c7c3085317f0147e3cfe2d1620672b40049b764ebfb2f2710fd6737350f4804
|
DIST redis-2.6.16.tar.gz 999579 SHA256 81490918dcf82d124b36e48b0a9911bfba3f13abba04d8c89820324eff7df03a SHA512 469a29e2a755543a3b2c3deb467a72ae62b81c54a60ed1baf6f9d5687ef4b87c22d9cec6a43cec43dd90d4b5561f5bbcd2448f6edf8a784041233b80d9403b0b WHIRLPOOL ed10212f6465083cc689d83cb0c4db63e15697a232a7e6621fb3b41e263cb8d16c7c3085317f0147e3cfe2d1620672b40049b764ebfb2f2710fd6737350f4804
|
||||||
DIST redis-2.8.11.tar.gz 1101257 SHA256 60f0310afb29bc3533d57c5805fb6a693eb1dee454a3a2ef51b07317f803f6d6 SHA512 fd761f02a40cc8697d2d3e5718d4f985b30299099923ba386865fe43c8ee00052cae948fb47e19cffff84e8097b21238027144783986f22a6564ee6a1b1a88a3 WHIRLPOOL d3833555edc600da9cc7cbde90f9afd06a2dc84b4d2381cfbddc3a626c59c7979a0b2456e326b1c0cfcb529692e26bd607fabfcd863d6b6225288357ca19752b
|
|
||||||
DIST redis-2.8.13.tar.gz 1227538 SHA256 b87bc83d13b9bf1f20d41a0efd06eda78b80002e013566d8b69c332e0cbccb08 SHA512 ca7face85f1d583feb7064eaf0d33cec080c7f0bb7b54734ba91d8ce1091bce263f4d5518bb86277a3ddeb2d0cb95492c5d52953922f1177f61510e1d10f30f7 WHIRLPOOL 264fd7f809f4e671ade206e1f239165c61f37669e782f50c9f12e7a431ed4ef83dff71efd6f88ebc28083b2d61d2637102a28b705a589f72c2a322c61af835a4
|
|
||||||
DIST redis-2.8.17.tar.gz 1234543 SHA256 53c7cc639571729fa57d7baa7f81aec1d5886f86bac9c66f6ad06dbdaee236a7 SHA512 29515abd4437e03da20063a1831f0eb11ac65ba9d51cbfbb1987726102e3a55c76a3286b8c9a3bfbaf5290998fb5b662ef4aadbe0d131cd60824c8533e088441 WHIRLPOOL 22eb01f8100a07178352e397f4342d44f478aadda7a0a7bdfa9a08d8cfa1578ac6e98ba0cce0a9828cc226364d9a7995d86bc78adfc73476c04868639307be30
|
DIST redis-2.8.17.tar.gz 1234543 SHA256 53c7cc639571729fa57d7baa7f81aec1d5886f86bac9c66f6ad06dbdaee236a7 SHA512 29515abd4437e03da20063a1831f0eb11ac65ba9d51cbfbb1987726102e3a55c76a3286b8c9a3bfbaf5290998fb5b662ef4aadbe0d131cd60824c8533e088441 WHIRLPOOL 22eb01f8100a07178352e397f4342d44f478aadda7a0a7bdfa9a08d8cfa1578ac6e98ba0cce0a9828cc226364d9a7995d86bc78adfc73476c04868639307be30
|
||||||
DIST redis-2.8.19.tar.gz 1254857 SHA256 29bb08abfc3d392b2f0c3e7f48ec46dd09ab1023f9a5575fc2a93546f4ca5145 SHA512 34997b45815cfdec9fbb06cd6664ed6ddf71baf064fd9ac155b7b969fd5945f78927cd5dfde83b043dc8ff1d7e35b172b9403cdf6115b8ca7bdf80c581ee9cdd WHIRLPOOL df3408de1e53a8a13c0b645054ce944453f3a812c264b168b797519a6d8536e0a60095fbd314f591ba21f0532be5b6b37e1ec8b11e928cdd6447ab70dfb8be33
|
DIST redis-2.8.19.tar.gz 1254857 SHA256 29bb08abfc3d392b2f0c3e7f48ec46dd09ab1023f9a5575fc2a93546f4ca5145 SHA512 34997b45815cfdec9fbb06cd6664ed6ddf71baf064fd9ac155b7b969fd5945f78927cd5dfde83b043dc8ff1d7e35b172b9403cdf6115b8ca7bdf80c581ee9cdd WHIRLPOOL df3408de1e53a8a13c0b645054ce944453f3a812c264b168b797519a6d8536e0a60095fbd314f591ba21f0532be5b6b37e1ec8b11e928cdd6447ab70dfb8be33
|
||||||
DIST redis-2.8.8.tar.gz 1073450 SHA256 fd2be11b8d9300d35b6bbed6fcd6fa6d7ef1a72ccaeb0cc991ce44dc49908bc8 SHA512 99cf0c41feaf594c69c625dcc8a40d15d00ae5c3ec7947abdcbe969a18ff844f9d8c60ee047dfa878a23505963b972d7564a27315017cab74bc5925ecae67ab7 WHIRLPOOL be9aa6166f7dd3ef37f2451ac8a2bdaed1f7dfb1bd8b67df04addde1f0a1dd01ec12547dc290374b818bb644a2b05b88acac884f2613a92650bd312b142e7f1e
|
DIST redis-2.8.21.tar.gz 1260030 SHA256 3da371693bb54c22da04d86cab1b871072c8d19bdfbc4f811469b7b53384c563 SHA512 8be68e949e08fc1d143c2fd7bbd123d0c3618d8ac9333bd9ef691384364d307c85f9222b7a607668cf667e5c2193ef40d0c7167fa15b981c6ffcfe5f2e6120d8 WHIRLPOOL d548a7aff0c84c2eb0fbf4c33436a0e46b7f6150f83e768e634441003974715b31c755d658fbc7f2fb5635511232e50c8ad2f7dce10a196bcc7b3da9193c3224
|
||||||
DIST redis-2.8.9.tar.gz 1097369 SHA256 7834c37f2ff186c46aef8e4a066dfbf1d6772a285aa31c19c58162f264f1007f SHA512 f202c44e16d257e33f7fabaa3b46218bf45848158a4b8c7cc2fab119fdf42bb4e19764a2f5f82fc8c76a3e353754b6b25f2cacf20a253d28244acbf87fd6dd7a WHIRLPOOL 2d968afe427bffc69c67cf8ac7d89166b5946a701787b28587b7a1eb0007dbc5766fb8d8760eec420ff23fbbf8fbac2a2cc6fdf69145f1885b30ef341dd4cd40
|
DIST redis-3.0.3.tar.gz 1360959 SHA256 1d08fa665b16d0950274dfbd47fbbcf3485e43e901021338640a0334666e9da5 SHA512 68b2d85341487efed26c92cd7925b4e9d889b5a19f08f4695ffd07087c01ae0c872086575744636513b01720829002c8d5c7bf43b20ee2c561599fa8d1c475f5 WHIRLPOOL 32d543454cda029259d8719f5696f3e16d40c489c0d44a8475bf65a7b26b9f6df74f5cdbfac2b5d44bea97844b68ae49d8656c8668fdf6ce6102cb482c200a29
|
||||||
DIST redis-3.0.2.tar.gz 1360182 SHA256 93e422c0d584623601f89b956045be158889ebe594478a2c24e1bf218495633f SHA512 0f72ca45c2970d595a3c533946b77ea293c7588eb59dd48491921ef5e3f3f1463a96a8095b5782a424451007702fbcab243140cc2d885306b5cb821308d0607a WHIRLPOOL 2d47fb142a63233230a9416e7833f8cdc0f630c12f326c73ae0078c82866496459a90e53eb6d0d381284284cd3941f392882ba27d8751651f22550230683950b
|
|
||||||
|
@ -1,109 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic systemd toolchain-funcs user
|
|
||||||
|
|
||||||
DESCRIPTION="A persistent caching system, key-value and data structures database"
|
|
||||||
HOMEPAGE="http://redis.io/"
|
|
||||||
SRC_URI="http://download.redis.io/releases/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
KEYWORDS="~amd64 ~hppa ~x86 ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
|
||||||
IUSE="+jemalloc tcmalloc test"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
RDEPEND="tcmalloc? ( dev-util/google-perftools )
|
|
||||||
jemalloc? ( >=dev-libs/jemalloc-3.2 )"
|
|
||||||
DEPEND=">=sys-devel/autoconf-2.63
|
|
||||||
test? ( dev-lang/tcl:0= )
|
|
||||||
${RDEPEND}"
|
|
||||||
REQUIRED_USE="tcmalloc? ( !jemalloc )
|
|
||||||
jemalloc? ( !tcmalloc )"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}-${PV/_/-}"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup redis 75
|
|
||||||
enewuser redis 75 -1 /var/lib/redis redis
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.8.3-{shared,config}.patch
|
|
||||||
|
|
||||||
# bug 467172, 467174
|
|
||||||
sed -i -e 's:AR=:AR?=:g' -e 's:RANLIB=:RANLIB?=:g' "${S}/deps/lua/src/Makefile" || die
|
|
||||||
|
|
||||||
# now we will rewrite present Makefiles
|
|
||||||
local makefiles=""
|
|
||||||
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
|
||||||
mv "${MKF}" "${MKF}.in"
|
|
||||||
sed -i -e 's:$(CC):@CC@:g' \
|
|
||||||
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
|
||||||
-e 's: $(DEBUG)::g' \
|
|
||||||
-e 's:$(OBJARCH)::g' \
|
|
||||||
-e 's:ARCH:TARCH:g' \
|
|
||||||
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
|
||||||
"${MKF}.in" \
|
|
||||||
|| die "Sed failed for ${MKF}"
|
|
||||||
makefiles+=" ${MKF}"
|
|
||||||
done
|
|
||||||
# autodetection of compiler and settings; generates the modified Makefiles
|
|
||||||
cp "${FILESDIR}"/configure.ac-2.2 configure.ac
|
|
||||||
sed -i -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
|
||||||
configure.ac || die "Sed failed for configure.ac"
|
|
||||||
eautoconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
econf
|
|
||||||
|
|
||||||
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
|
|
||||||
# also, don't define ANSI/c99 for lua twice
|
|
||||||
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
tc-export CC AR RANLIB
|
|
||||||
|
|
||||||
local myconf=""
|
|
||||||
|
|
||||||
if use tcmalloc ; then
|
|
||||||
myconf="${myconf} USE_TCMALLOC=yes"
|
|
||||||
elif use jemalloc ; then
|
|
||||||
myconf="${myconf} JEMALLOC_SHARED=yes"
|
|
||||||
else
|
|
||||||
myconf="${myconf} MALLOC=yes"
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake ${myconf} V=1 CC="${CC}" AR="${AR} rcu" RANLIB="${RANLIB}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /etc/
|
|
||||||
doins redis.conf sentinel.conf
|
|
||||||
use prefix || fowners redis:redis /etc/{redis,sentinel}.conf
|
|
||||||
fperms 0644 /etc/{redis,sentinel}.conf
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}/redis.confd" redis
|
|
||||||
newinitd "${FILESDIR}/redis.initd-3" redis
|
|
||||||
|
|
||||||
systemd_dounit "${FILESDIR}/redis.service"
|
|
||||||
systemd_newtmpfilesd "${FILESDIR}/redis.tmpfiles" redis.conf
|
|
||||||
|
|
||||||
nonfatal dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README
|
|
||||||
|
|
||||||
dobin src/redis-cli
|
|
||||||
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-dump
|
|
||||||
fperms 0750 /usr/sbin/redis-benchmark
|
|
||||||
dosym /usr/sbin/redis-server /usr/sbin/redis-sentinel
|
|
||||||
|
|
||||||
if use prefix; then
|
|
||||||
diropts -m0750
|
|
||||||
else
|
|
||||||
diropts -m0750 -o redis -g redis
|
|
||||||
fi
|
|
||||||
keepdir /var/{log,lib}/redis
|
|
||||||
}
|
|
@ -1,109 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic systemd toolchain-funcs user
|
|
||||||
|
|
||||||
DESCRIPTION="A persistent caching system, key-value and data structures database"
|
|
||||||
HOMEPAGE="http://redis.io/"
|
|
||||||
SRC_URI="http://download.redis.io/releases/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~x86-macos ~x86-solaris"
|
|
||||||
IUSE="+jemalloc tcmalloc test"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
RDEPEND="tcmalloc? ( dev-util/google-perftools )
|
|
||||||
jemalloc? ( >=dev-libs/jemalloc-3.2 )"
|
|
||||||
DEPEND=">=sys-devel/autoconf-2.63
|
|
||||||
test? ( dev-lang/tcl:0= )
|
|
||||||
${RDEPEND}"
|
|
||||||
REQUIRED_USE="tcmalloc? ( !jemalloc )
|
|
||||||
jemalloc? ( !tcmalloc )"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}-${PV/_/-}"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup redis 75
|
|
||||||
enewuser redis 75 -1 /var/lib/redis redis
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.8.3-{shared,config}.patch
|
|
||||||
|
|
||||||
# bug 467172, 467174
|
|
||||||
sed -i -e 's:AR=:AR?=:g' -e 's:RANLIB=:RANLIB?=:g' "${S}/deps/lua/src/Makefile" || die
|
|
||||||
|
|
||||||
# now we will rewrite present Makefiles
|
|
||||||
local makefiles=""
|
|
||||||
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
|
||||||
mv "${MKF}" "${MKF}.in"
|
|
||||||
sed -i -e 's:$(CC):@CC@:g' \
|
|
||||||
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
|
||||||
-e 's: $(DEBUG)::g' \
|
|
||||||
-e 's:$(OBJARCH)::g' \
|
|
||||||
-e 's:ARCH:TARCH:g' \
|
|
||||||
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
|
||||||
"${MKF}.in" \
|
|
||||||
|| die "Sed failed for ${MKF}"
|
|
||||||
makefiles+=" ${MKF}"
|
|
||||||
done
|
|
||||||
# autodetection of compiler and settings; generates the modified Makefiles
|
|
||||||
cp "${FILESDIR}"/configure.ac-2.2 configure.ac
|
|
||||||
sed -i -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
|
||||||
configure.ac || die "Sed failed for configure.ac"
|
|
||||||
eautoconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
econf
|
|
||||||
|
|
||||||
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
|
|
||||||
# also, don't define ANSI/c99 for lua twice
|
|
||||||
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
tc-export CC AR RANLIB
|
|
||||||
|
|
||||||
local myconf=""
|
|
||||||
|
|
||||||
if use tcmalloc ; then
|
|
||||||
myconf="${myconf} USE_TCMALLOC=yes"
|
|
||||||
elif use jemalloc ; then
|
|
||||||
myconf="${myconf} JEMALLOC_SHARED=yes"
|
|
||||||
else
|
|
||||||
myconf="${myconf} MALLOC=yes"
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake ${myconf} V=1 CC="${CC}" AR="${AR} rcu" RANLIB="${RANLIB}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /etc/
|
|
||||||
doins redis.conf sentinel.conf
|
|
||||||
use prefix || fowners redis:redis /etc/{redis,sentinel}.conf
|
|
||||||
fperms 0644 /etc/{redis,sentinel}.conf
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}/redis.confd" redis
|
|
||||||
newinitd "${FILESDIR}/redis.initd-3" redis
|
|
||||||
|
|
||||||
systemd_dounit "${FILESDIR}/redis.service"
|
|
||||||
systemd_newtmpfilesd "${FILESDIR}/redis.tmpfiles" redis.conf
|
|
||||||
|
|
||||||
nonfatal dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README
|
|
||||||
|
|
||||||
dobin src/redis-cli
|
|
||||||
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-dump
|
|
||||||
fperms 0750 /usr/sbin/redis-benchmark
|
|
||||||
dosym /usr/sbin/redis-server /usr/sbin/redis-sentinel
|
|
||||||
|
|
||||||
if use prefix; then
|
|
||||||
diropts -m0750
|
|
||||||
else
|
|
||||||
diropts -m0750 -o redis -g redis
|
|
||||||
fi
|
|
||||||
keepdir /var/{log,lib}/redis
|
|
||||||
}
|
|
@ -1,109 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit autotools eutils flag-o-matic systemd toolchain-funcs user
|
|
||||||
|
|
||||||
DESCRIPTION="A persistent caching system, key-value and data structures database"
|
|
||||||
HOMEPAGE="http://redis.io/"
|
|
||||||
SRC_URI="http://download.redis.io/releases/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
KEYWORDS="~amd64 ~hppa ~x86 ~x86-macos ~x86-solaris"
|
|
||||||
IUSE="+jemalloc tcmalloc test"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
RDEPEND="tcmalloc? ( dev-util/google-perftools )
|
|
||||||
jemalloc? ( >=dev-libs/jemalloc-3.2 )"
|
|
||||||
DEPEND=">=sys-devel/autoconf-2.63
|
|
||||||
test? ( dev-lang/tcl:0= )
|
|
||||||
${RDEPEND}"
|
|
||||||
REQUIRED_USE="tcmalloc? ( !jemalloc )
|
|
||||||
jemalloc? ( !tcmalloc )"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}-${PV/_/-}"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
enewgroup redis 75
|
|
||||||
enewuser redis 75 -1 /var/lib/redis redis
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.8.3-{shared,config}.patch
|
|
||||||
|
|
||||||
# bug 467172, 467174
|
|
||||||
sed -i -e 's:AR=:AR?=:g' -e 's:RANLIB=:RANLIB?=:g' "${S}/deps/lua/src/Makefile" || die
|
|
||||||
|
|
||||||
# now we will rewrite present Makefiles
|
|
||||||
local makefiles=""
|
|
||||||
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
|
||||||
mv "${MKF}" "${MKF}.in"
|
|
||||||
sed -i -e 's:$(CC):@CC@:g' \
|
|
||||||
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
|
||||||
-e 's: $(DEBUG)::g' \
|
|
||||||
-e 's:$(OBJARCH)::g' \
|
|
||||||
-e 's:ARCH:TARCH:g' \
|
|
||||||
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
|
||||||
"${MKF}.in" \
|
|
||||||
|| die "Sed failed for ${MKF}"
|
|
||||||
makefiles+=" ${MKF}"
|
|
||||||
done
|
|
||||||
# autodetection of compiler and settings; generates the modified Makefiles
|
|
||||||
cp "${FILESDIR}"/configure.ac-2.2 configure.ac
|
|
||||||
sed -i -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
|
||||||
configure.ac || die "Sed failed for configure.ac"
|
|
||||||
eautoconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
econf
|
|
||||||
|
|
||||||
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
|
|
||||||
# also, don't define ANSI/c99 for lua twice
|
|
||||||
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
tc-export CC AR RANLIB
|
|
||||||
|
|
||||||
local myconf=""
|
|
||||||
|
|
||||||
if use tcmalloc ; then
|
|
||||||
myconf="${myconf} USE_TCMALLOC=yes"
|
|
||||||
elif use jemalloc ; then
|
|
||||||
myconf="${myconf} JEMALLOC_SHARED=yes"
|
|
||||||
else
|
|
||||||
myconf="${myconf} MALLOC=yes"
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake ${myconf} V=1 CC="${CC}" AR="${AR} rcu" RANLIB="${RANLIB}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /etc/
|
|
||||||
doins redis.conf sentinel.conf
|
|
||||||
use prefix || fowners redis:redis /etc/{redis,sentinel}.conf
|
|
||||||
fperms 0644 /etc/{redis,sentinel}.conf
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}/redis.confd" redis
|
|
||||||
newinitd "${FILESDIR}/redis.initd-3" redis
|
|
||||||
|
|
||||||
systemd_dounit "${FILESDIR}/redis.service"
|
|
||||||
systemd_newtmpfilesd "${FILESDIR}/redis.tmpfiles" redis.conf
|
|
||||||
|
|
||||||
nonfatal dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README
|
|
||||||
|
|
||||||
dobin src/redis-cli
|
|
||||||
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-dump
|
|
||||||
fperms 0750 /usr/sbin/redis-benchmark
|
|
||||||
dosym /usr/sbin/redis-server /usr/sbin/redis-sentinel
|
|
||||||
|
|
||||||
if use prefix; then
|
|
||||||
diropts -m0750
|
|
||||||
else
|
|
||||||
diropts -m0750 -o redis -g redis
|
|
||||||
fi
|
|
||||||
keepdir /var/{log,lib}/redis
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue