parent
0cd1af5461
commit
bfcab4b04d
@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>apache</herd>
|
||||
<maintainer>
|
||||
<email>neurogeek@gentoo.org</email>
|
||||
<name>Jesus Rivero</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1,3 +1,3 @@
|
||||
DIST tmpwatch-2.10.1.tar.bz2 140103 RMD160 6e615794a28bd366cdaf9a6d562d01b9ca1e5d31 SHA1 9529c355ed0036e3c8c21974d86f802f1df58e68 SHA256 d0fc8e76f32a7e596ef0e3db5a429f007a94e356a63ea342a130022e6295b446
|
||||
DIST tmpwatch-2.10.3.tar.bz2 144136 RMD160 7df4f7d8a54bce80cc269db7b7f5fe3c436a7535 SHA1 6b014979af44aa1550b724f4c0d94fdc50e50b37 SHA256 d3cdb21870d1d8c9ca6e82f295c228a0cb55f1744cfa98ee59da0151f5f53f75
|
||||
DIST tmpwatch-2.11.tar.bz2 145609 RMD160 3756b94e1b5b813fe7524d1d55bc1541fec91d76 SHA1 c578dd98e5ea64ad987a95ae55926685a0df0659 SHA256 93168112b2515bc4c7117e8113b8d91e06b79550d2194d62a0c174fe6c2aa8d4
|
||||
DIST tmpwatch-2.10.1.tar.bz2 140103 SHA256 d0fc8e76f32a7e596ef0e3db5a429f007a94e356a63ea342a130022e6295b446
|
||||
DIST tmpwatch-2.10.3.tar.bz2 144136 SHA256 d3cdb21870d1d8c9ca6e82f295c228a0cb55f1744cfa98ee59da0151f5f53f75
|
||||
DIST tmpwatch-2.11.tar.bz2 145609 SHA256 93168112b2515bc4c7117e8113b8d91e06b79550d2194d62a0c174fe6c2aa8d4
|
||||
|
@ -0,0 +1,12 @@
|
||||
--- a/drivers/kcompat.h 2011-03-25 18:28:18.000000000 -0400
|
||||
+++ b/drivers/kcompat.h 2012-11-27 13:37:55.000000000 -0500
|
||||
@@ -136,4 +136,9 @@
|
||||
)
|
||||
#endif
|
||||
|
||||
+#ifndef err
|
||||
+#define err(format, arg...) \
|
||||
+ printk(KERN_ERR KBUILD_MODNAME ": " format "\n", ##arg)
|
||||
+#endif
|
||||
+
|
||||
#endif /* _KCOMPAT_H */
|
@ -1 +1,2 @@
|
||||
DIST freesmee_0.7.orig.tar.gz 1532905 SHA256 1a33ece8341246cde0dedce6bc8abdf3c63267010f1c3350ba6d0d6a07bc9121 SHA512 5544ad50dd4327caae731f783775da5a50587ae25b037bec713fbbb31c35cf4563b6278339b567675cd33f17bf464acc892fdc3da78ad2788ce7eddffd260485 WHIRLPOOL 83f9b592ecce8aeea98be7318bf7ade5bd3ab1426845e36919487bb38527635e28dd204d351d883453242d21bc92cd78de41126cfe5ecb328bfae69f7935481e
|
||||
DIST freesmee_0.81.orig.tar.gz 1548747 SHA256 df214ccd6d0af15513a1703d038815f319954c88e22cbcbfeccc92be4b5c6b0b SHA512 d3f4e0c004547473a0e41879ef10e7aee871d4270b13cd28954fa747cf6fa4958e243484739303e946aa2a428c5e91be6001cc59db04e7fa01d07bb21dac531b WHIRLPOOL 4e7b4b63ede67759c868844c06861a4528e39d560e8d86af3d080a592a732f41d9fa704b8f937ed59e28d42ccc670f469e12dce7da7df5a4c4c79952947ef052
|
||||
|
@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Name=Freesmee
|
||||
Type=Application
|
||||
Comment=Tool for sending SMS and sending/receiving Freesmee-Message-Service
|
||||
Exec=freesmee
|
||||
TryExec=freesmee
|
||||
Icon=freesmee
|
||||
Categories=Network;
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/freesmee/freesmee-0.81.ebuild,v 1.1 2012/11/27 16:06:46 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit qt4-r2
|
||||
|
||||
DESCRIPTION="Tool for sending SMS and sending/receiving Freesmee-Message-Service"
|
||||
HOMEPAGE="http://www.freesmee.com"
|
||||
SRC_URI="http://download.opensuse.org/repositories/home:/${PN}/xUbuntu_12.10/${PN}_${PV}.orig.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
DEPEND="dev-util/ticpp
|
||||
x11-libs/qt-core:4
|
||||
x11-libs/qt-gui:4
|
||||
x11-libs/qt-webkit:4"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_install() {
|
||||
newbin Freesmee ${PN}
|
||||
doicon ${PN}.png
|
||||
domenu "${FILESDIR}"/${PN}.desktop
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST posh_0.10.1.tar.gz 468771 SHA256 393fcb4123cd8539c1ecdd45f9d7afd4f9bc51904981abdf6239a31d1c42e18d SHA512 c0c2652e86ce43349681cc36e4f0e52c60d4146ad619f7023886411dd315782705ea293abc0a7147eba8759ed9570093962a27cdc70ae3cb98c3910c37cc5397 WHIRLPOOL 229d0e2914656c1c65a1247b5623c6e72587428576cd5a9c072ce27e63aafad4902b0c1b694a00aa5906ce3bf025cb7bbc003d0320473753f33521c32f2ae0dd
|
||||
DIST posh_0.10.2.tar.gz 469338 SHA256 6ee7e8e2d181953efbcd991cc0e66c98c7d2a0511f1697889e239a93d625f0a1 SHA512 4abde6415eaf199f5a7998e8a8fc6ed0dd07fb2ec95724bc01ba18f01f0d9b1a0af04d6ea59e302407f9a32f7ef7555e24f48005f795390bda3ecd01e55b5878 WHIRLPOOL 208a9e97bdf3846abe2285eb21c40be0f004d4e2a72785cbb22f12830f681268a303ba0d6f3baf54a7a9f6a3933ead2cfda80e7b3fefeb9a6e7f03d39d7ee80f
|
||||
DIST posh_0.11.tar.gz 469798 SHA256 0d9b54db168e6fc7f93676d188e460988017868ffac5987b76d4fb18c2008f6f SHA512 2d4319600f4356e0b661403648c62078e87fbac0ac418a4985ebfcf6277bd26a8dd8462f61676194cd547f3c9aa31e1713fc1b562d63466511dbf8845d7a06aa WHIRLPOOL f546f9ff07daba992d9ac897ac77fdbfbca92a393640b1226c01c271cdbbb57a4d0015c5d5a463a6b1505ec2cd168f8ed2bca8a75be9189de1c27e295558500e
|
||||
|
@ -0,0 +1,19 @@
|
||||
Description: explicitly include sys/resource.h, for eglibc 2.16
|
||||
sys/resource.h is no longer included by sys/wait.h
|
||||
http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d94a4670800de6e8f088b8630ad5142866127980
|
||||
Author: Stefano Rivera <stefanor@ubuntu.com>
|
||||
Last-Updated: 2012-11-07
|
||||
|
||||
--- a/ksh_wait.h
|
||||
+++ b/ksh_wait.h
|
||||
@@ -5,6 +5,10 @@
|
||||
# include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
+#ifdef HAVE_SYS_RESOURCE_H
|
||||
+# include <sys/resource.h>
|
||||
+#endif
|
||||
+
|
||||
#ifndef POSIX_SYS_WAIT
|
||||
/* Get rid of system macros (which probably use union wait) */
|
||||
# undef WIFCORED
|
@ -1 +1,2 @@
|
||||
DIST llpp-12.tar.gz 100362 SHA256 30c66684a1b2892bd1125afb99583abad5cc433dee2c623ec0cdefb0ec4c6fe4 SHA512 c6c298bf0fdf8eb10aa1e1812d386022fae26271084b014a3a512fc1c8cf7c8ca5768c3587e7c83e34210354e4219b74cee22fb51edc1fe467de4c11b631416c WHIRLPOOL f2ffe1005b2f0d89dda865c3d0f0a306e311cad6ef45070a702eefe2c44e59ca5067e95de182fb4673526dea801b8969d44260fb32d1fd57549777f95194dfde
|
||||
DIST llpp-13.tar.gz 102399 SHA256 c6f0b4bb742e62cfa7e711f8ff1b25ca6456596961e637805c060e8ca206ff70 SHA512 c8d64adb488534353e83f70ee47075cb141475ebfdbfeecf2f19c23bf88f194499f5bf7227a102baa5e9f83671c68519001edcd6ddf0d507a3ccba5f66056b8d WHIRLPOOL 96a517113b67e5e7ea7523afd062dae587eafb265eb50c83f6412920acfeedeba4a05c49d398932da08e0eab1d65911e478eefb561c8a39320d3ff85b38a054b
|
||||
|
@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/llpp/llpp-13.ebuild,v 1.1 2012/11/27 12:39:27 xmw Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="a graphical PDF viewer which aims to superficially resemble less(1)"
|
||||
HOMEPAGE="http://repo.or.cz/w/llpp.git"
|
||||
SRC_URI="http://repo.or.cz/w/llpp.git/snapshot/68f22b01f680b7afaf56c24ec0b4d7eae3d08c35.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="media-libs/freetype
|
||||
media-libs/jbig2dec
|
||||
media-libs/openjpeg
|
||||
virtual/jpeg
|
||||
x11-libs/libX11
|
||||
x11-misc/xsel"
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/mupdf
|
||||
dev-lang/ocaml[ocamlopt]
|
||||
dev-ml/lablgl[glut]"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-11-WM_CLASS.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ocaml str.cma keystoml.ml KEYS > help.ml || die
|
||||
printf 'let version ="%s";;\n' ${PV} >> help.ml || die
|
||||
|
||||
local myccopt="$(freetype-config --cflags) -O -include ft2build.h -D_GNU_SOURCE"
|
||||
local mycclib="-lfitz -lz -ljpeg -lopenjpeg -ljbig2dec -lfreetype -lX11 -lpthread"
|
||||
ocamlopt.opt -c -o link.o -ccopt "${myccopt}" link.c || die
|
||||
ocamlopt.opt -c -o help.cmx help.ml || die
|
||||
ocamlopt.opt -c -o wsi.cmi wsi.mli || die
|
||||
ocamlopt.opt -c -o wsi.cmx wsi.ml || die
|
||||
ocamlopt.opt -c -o parser.cmx parser.ml || die
|
||||
ocamlopt.opt -c -o main.cmx -I +lablGL main.ml || die
|
||||
ocamlopt.opt -o llpp -I +lablGL \
|
||||
str.cmxa unix.cmxa lablgl.cmxa link.o \
|
||||
-cclib "${mycclib}" help.cmx parser.cmx wsi.cmx main.cmx || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
dodoc KEYS README Thanks fixme
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/rnv/rnv-1.7.10-r1.ebuild,v 1.3 2012/04/04 23:09:21 jdhore Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="A lightweight Relax NG Compact Syntax validator"
|
||||
HOMEPAGE="http://www.davidashen.net/rnv.html"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-libs/expat"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
src_install() {
|
||||
dobin rnv rvp arx
|
||||
dodoc readme.txt
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/rnv/rnv-1.7.8-r2.ebuild,v 1.4 2010/04/09 08:09:18 hwoarang Exp $
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="A lightweight Relax NG Compact Syntax validator"
|
||||
HOMEPAGE="http://www.davidashen.net/rnv.html"
|
||||
SRC_URI="http://ftp.davidashen.net/PreTI/RNV/${P}.zip"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-libs/expat"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}/${P}-respect-CFLAGS_and_CC.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
CC=$(tc-getCC) emake -j1 -f Makefile.gnu || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin rnv rvp arx
|
||||
dodoc readme.txt
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST jthread-1.2.0.tar.bz2 186718 SHA256 b58d551fffce8ff744b4844f7247278f59d8f226eadfc6bb41d2deee78f748cf SHA512 899393ac969a8f3d5af9880dc9e6a6f1096589b74641c9658e548de073a6f943353339ce821c0a714fa289e7a9ab30bd7ce9d029bfb6c84b713318da2b67c26c WHIRLPOOL fae754cfea5ef7a04b169a271134995126706960fca116abf604668b110ff5c3b599b057cf1f5cf8d468d5e2e982c1340ece855d5bec90cbc950e8d86548e38b
|
||||
DIST jthread-1.2.1.tar.bz2 187171 SHA256 e573c41e2a390dab414022fd56e2f08178c151bcf5ceb741bab085ad64582fc5 SHA512 6ac5b8b8f3f48c6a15723c207b7ef542a039fcb11523ad191a6ed5a3990fc23954fdd1b58126e8b71b935b9ba509ff2b98345a88e12eef44841f4c6321067249 WHIRLPOOL e736232ef5ab2c0d069565a277386fbd213b979db06c7d6d747febc16f5cf13bc8e7e37c1f238ca5c2b4c530c931dd1c68118bcba96d2fbe54a9ba5bb7db5194
|
||||
DIST jthread-1.3.0.tar.bz2 7770 SHA256 2342e7d5362e1860983349b4b58b400b02019d3bfcdb56e588fb5b2de45cfd2e SHA512 5fc0e62b6d42b252d112828a39ae90b706ba425bb861555f6167f8be85ae270df47c4dccd16a66999c9b3e3c0df52da1cd30242550408dea5295a2247e44e596 WHIRLPOOL 20eb8c646c3c93c34fc94e71ede3c8fa70fcbe75e332075e8328043d5af0deabdfc51292aea9161c256b20435001a068de55e2bf4779288a09b548231b78575b
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/jthread/jthread-1.3.0.ebuild,v 1.1 2012/11/27 13:19:59 pinkbyte Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="JThread provides some classes to make use of threads easy on different platforms."
|
||||
HOMEPAGE="http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jthread"
|
||||
SRC_URI="http://research.edm.uhasselt.be/jori/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="static-libs"
|
||||
|
||||
DOCS=( ChangeLog README.TXT TODO doc/manual.tex )
|
||||
|
||||
src_prepare() {
|
||||
# do not build static library, if it is not requested
|
||||
if ! use static-libs; then
|
||||
sed -i -e '/jthread-static/d' src/CMakeLists.txt || die 'sed on src/CMakeLists.txt failed'
|
||||
fi
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST libhome-0.10.1.tar.gz 282420 SHA256 25dff14d2a7e7f867f472c0627e157f76692a814d44c12e7b40248710627aefb SHA512 e2cd3a7b713f2f478be248f3182e8f6c2c3531bf788dfe84737b578817143e6617fa85224f1472be5686955a642541466bf94e10f4145558c33de0e213e8b681 WHIRLPOOL 9a701982351fd060c0d3915ec492a73b4cb54b41c59c4f55559054d1a2cbd40475787b14f517b0707f9d7082570dc5515e5ba8cfd8330618fec2e1841ab7f6de
|
||||
DIST libhome-0.10.2.tar.gz 286453 SHA256 a099e61e83c140d74e3515135881903f26358bc32ce97292c8a8c673e7c0de13 SHA512 9f144b6aeb8e01f5ca2f8f90c5289d4449895e2eddbfd2d8d9b1828bb203fd8f68c224c0f068ffabfa5ee1514f9b756cb2499f862418d793eb8d06ae960447a9 WHIRLPOOL 04db6d6406e9f4f715db2236fa48b2b1e5bc7e625cbfd1c0ac192fff58dac71bc4e9ef1dac6cdd4d8ab01beede31ecda7c9fac6ec239939ef061e576c0250b44
|
||||
|
@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libhome/libhome-0.10.1.ebuild,v 1.7 2010/06/17 21:32:16 patrick Exp $
|
||||
|
||||
inherit autotools db-use eutils
|
||||
|
||||
DESCRIPTION="libhome is a library providing a getpwnam() emulation"
|
||||
HOMEPAGE="http://pll.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/pll/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="berkdb ldap mysql pam postgres"
|
||||
|
||||
DEPEND="berkdb? ( =sys-libs/db-4* )
|
||||
ldap? ( net-nds/openldap )
|
||||
mysql? ( virtual/mysql )
|
||||
pam? ( virtual/pam )
|
||||
postgres? ( dev-db/postgresql-server )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
rm -f aclocal.m4
|
||||
epatch "${FILESDIR}"/${P}-Makefile.patch
|
||||
|
||||
# bug 225579
|
||||
sed -i -e 's:\<VERSION\>:__PKG_VERSION:' configure.in
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
econf --without-db3 \
|
||||
$(use_with berkdb db4 $(db_includedir)) \
|
||||
$(use_with ldap) \
|
||||
$(use_with mysql) \
|
||||
$(use_with pam) \
|
||||
$(use_with postgres pgsql) \
|
||||
|| die "econf failed"
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${D}" install || die "make install failed"
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>apache</herd>
|
||||
<maintainer><email>maintainer-needed@gentoo.org</email></maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1 @@
|
||||
DIST lgi-0.6.2.tar.gz 257541 SHA256 93b0a520f03822794d94cb86273d0744a3808792e2832b67f17ee03d7ded8773 SHA512 02b75f17f98d7f7240c335384a85cdb0bb1c1b117b4ea8baa065715c4e5ecac946618ef83f92ef476a87db3a17a29a0e21d71f4f79db3bc4e519cf795ae181f5 WHIRLPOOL 52b9165691691fc6214ee5697fd92e5aebacc39b1d5c461c67846545c026523c503ff3abc8820373756f5e2e755b85493763ac4f241f44917d578bf899bf9947
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lua/lgi/lgi-0.6.2.ebuild,v 1.1 2012/11/27 20:20:48 robbat2 Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils toolchain-funcs flag-o-matic
|
||||
|
||||
DESCRIPTION="Lua bindings using gobject-introspection"
|
||||
HOMEPAGE="http://github.com/pavouk/lgi"
|
||||
SRC_URI="http://github.com/downloads/pavouk/lgi/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-lang/lua-5.1
|
||||
x11-libs/gtk+[introspection]"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e "s:^LUA_LIBDIR.*$:LUA_LIBDIR = $($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua):" \
|
||||
-e "s:^LUA_SHAREDIR.*$:LUA_SHAREDIR = $($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua):" \
|
||||
"${S}"/lgi/Makefile || die "sed failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" COPTFLAGS="-Wall -Wextra ${CFLAGS}" LIBFLAG="-shared ${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dohtml -r docs/*
|
||||
dodoc README.md
|
||||
}
|
||||
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>robbat2@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
||||
DIST symfony-1.4.18.tgz 3187940 SHA256 7161427ca421899783c81a61686bfd579acb3841d6a3b5c356072be02d784426 SHA512 c12dbd3a49004e249b37cb34794d525ed90ef0fc1b1eab950c1db76e816ba1aa45843eb31c0e310043f2dca7ab2a470efdf305ee06acdc10b573c5fdc25a0262 WHIRLPOOL 9b08c12a4686744f44ae4aaeb0902883f06ca64deb4abbb4de374045021b9be538bcd987f20db9d8474abd6cdc4e838dabd5c363ddbdad95ff437cde06b0a9c1
|
||||
DIST symfony-1.4.19.tgz 3188169 SHA256 fa84b72abc61660eaab3168728c0d0fab070e690364cd7bc474d507235415308 SHA512 c288f9a70eaaad58ca7f146fbc80e88069c3afe3e37f66c23fb8d22a9a6628e7c65851e5cfcc2e994c7a87db370fbf77e33bd9cc440374dd273ad923ff8ad586 WHIRLPOOL b611fd189430552a639293aae85c3e6c66604b9da457b3ebfc22ab8a12e5351c3cd8d4fdb9a1f9fbfc213a20355e642123c63e0dbfb1b858d2743d55622cd04b
|
||||
DIST symfony-1.4.20.tgz 3193375 SHA256 d23a38ab9bf1c6d6a7d2dabd9f6a220acc19d4f0c3adc3cd3bf62116d77ef0ad SHA512 d2bc71662b0f38d6644a7af7a3e391cd11e36741dd31ac3932722c1315187b13843f4cb2c322467945c460bc3d4fecf77386417338c7af78c3c7465078312fb8 WHIRLPOOL 4025f76994b2123c0de2bff21c06fda8fd18938bf7c0e5c25b961beec1b2d917bb9707fee7649f5eec2b5a952b2a9066e596edb3ee47d1a367be72ba2049e63e
|
||||
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/symfony/symfony-1.4.20.ebuild,v 1.1 2012/11/27 12:34:52 olemarkus Exp $
|
||||
|
||||
EAPI=2
|
||||
inherit php-pear-lib-r1
|
||||
|
||||
DESCRIPTION="Open-source PHP5 professional web framework"
|
||||
HOMEPAGE="http://www.symfony-project.com/"
|
||||
SRC_URI="http://pear.symfony-project.com/get/${P}.tgz"
|
||||
|
||||
LICENSE="MIT LGPL-2.1 BSD BSD-2 FDL-1.2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-lang/php[cli,ctype,session,simplexml,tokenizer,xml]
|
||||
|| ( <dev-lang/php-5.3[pcre,reflection,spl] >=dev-lang/php-5.3 )
|
||||
dev-php/pear"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_postinst() {
|
||||
if has_version '=dev-lang/php-5*[-posix]';then
|
||||
einfo ""
|
||||
einfo "To enable color output on the symfony command line"
|
||||
einfo "add USE=\"posix\" to dev-lang/php"
|
||||
einfo ""
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST atanks-5.4.tar.gz 3129737 SHA256 c66f481f36b5ae222f6feddf3e56e73b14d7f2e3d274576d8517fee4496ed0e9 SHA512 53293ab3aa6dff2346484006a754060a5a43902ef03335ce9b9022ddcf1a6a66e0e1b8a3d73aa5c18b0433d9eed1cfe9c7215a5f8d73353d182a7dda7a0930be WHIRLPOOL 5da29b7efb10955fadada24284bdfc91763c9c8bc46a1f313920226b776d1911da4b1675700eb8382489de1e0a1940f1341158f3036dfeab8439ce077d3f4463
|
||||
DIST atanks-5.6.tar.gz 3129804 SHA256 bf42205feb48759253b78e881e3feefc6ea38b396d3dda38e0ebab0cfadf1890 SHA512 5954188293433e9a62fe852d1edcc1e500c69814d0a6e417007e86a850a498151bf33366a5d19598b2f549c65ed093379300c0ff99dfffb30a5bade19d220152 WHIRLPOOL 858ba580ebd75a1eeebf2d107cac1c612f31ac6c796d99811b680f1dbf00939024900732d207477955f5ddb0b426b7357cb67eaed2cfe6d6ef3b57c3e3788d54
|
||||
DIST atanks-5.7.tar.gz 3130406 SHA256 fb2f4239679f4de4a3213e66a2bd4ec560753d518db727ffa35bc74f3a581e83 SHA512 15ec8c9f6e365bf5739cca12b5667d30fc216646084f73eaa1a6e02e02f4071d532ce18a408d8eecea528cfbd1e037b4f45f742d553efbf4006111c552c8e29e WHIRLPOOL 80ad9547b347592611c75a79b68409c42131d98f9b0fb67ae0a7aea2488dd9d052de2444ee9985db2067f2d0cd9363e8a64a35a82e724c50d96f7c584b69a9ed
|
||||
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-action/atanks/atanks-5.7.ebuild,v 1.1 2012/11/27 20:03:06 mr_bones_ Exp $
|
||||
|
||||
EAPI=2
|
||||
inherit eutils gnome2-utils games
|
||||
|
||||
DESCRIPTION="Worms and Scorched Earth-like game"
|
||||
HOMEPAGE="http://atanks.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/atanks/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="media-libs/allegro:0[X]"
|
||||
|
||||
src_prepare() {
|
||||
find . -type f -name ".directory" -exec rm -vf '{}' +
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
BINDIR="${GAMES_BINDIR}" \
|
||||
INSTALLDIR="${GAMES_DATADIR}/${PN}" \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dogamesbin ${PN} || die
|
||||
insinto "${GAMES_DATADIR}"/${PN}
|
||||
doins -r button misc missile sound stock tank tankgun text title \
|
||||
unicode.dat *.txt || die
|
||||
doicon -s 48 ${PN}.png
|
||||
make_desktop_entry atanks "Atomic Tanks"
|
||||
dodoc Changelog README TODO
|
||||
prepgamesdirs
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
games_pkg_preinst
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
games_pkg_postinst
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -1,7 +1,3 @@
|
||||
DIST alpine-2.00-chappa-115-all.patch.gz 212705 SHA256 1503ae09b6a4a74828e3472c4987b48a310f817e7fd93ca385724660aa234d7f SHA512 5e9fcb6a80dbd18bed26109caa6b7aa5eeb88de420861d9998c32f031e8279d6367c28b6670fb54203d1b14c3dc47cf5ad25b42e4949157de64f3f1fd36d0aa7 WHIRLPOOL d9fef2fb0a07acfb8ba4e5bedbc0140a09020967e52b16853907db47b1a7e35286022c2a03b1670fe377015393d22b27bfa9f12780de05bac1f3458a81f75527
|
||||
DIST alpine-2.00-chappa-26-all.patch.gz 179066 SHA256 a14b3cc49a0f7eef6459488687b2a15ff5318f5db8586a47aca04c5bce08aea5
|
||||
DIST alpine-2.00-chappa-51-all.patch.gz 195020 SHA256 7a9e8d1e7dfa677543e9db4caf524eb0ff4da5511613c7b5c00228cc31475075
|
||||
DIST alpine-2.00-chappa-52-all.patch.gz 194980 SHA256 e0fd704cf6f8214f1daaf7ff4dff0eb04d799943f06fa70bdab2ed7280b0e070
|
||||
DIST alpine-2.00-chappa-53-all.patch.gz 196219 SHA256 153d9d903bd0015ca9064ecdd74d03d58e26502edd2116cf4e18db8e88d15e43
|
||||
DIST alpine-2.00-chappa-73-all.patch.gz 200049 SHA256 33a6c3b930a3a14b904386d847721a507e83be0b38ff5f797cb4c136a06015fa SHA512 bd540c43d1aa6c2ae4252b950ff18edd0f2ee583d26d9b775a8a248a633d6b79103630a66f6069a23a9365ca1b5f3234a8cebac8e6b631b97835fc73d4d34d66 WHIRLPOOL b69ffa9d2b00d85a1d9533bd1a140e03299b7e0ac2ee9361cb7d73ad6fb7329c565965be24921439ad04e45f9d37a83854a9eeaad59b4a453d8012a06180a414
|
||||
DIST alpine-2.00.tar.bz2 5222673 SHA256 c85db8405af90375ba2440c85b7952d80996154e9916b83acca558dc82e0a2a6 SHA512 17c6e65fbe767d4f9ffb3d3c2bb3deeab9d3620cd046cbb0009290aa484c9254effa992957631f0603bd82b82aeca2923d391aee6d20a7684d5830fbca8ce4d2 WHIRLPOOL 6c1fed63e826c12c6e39e8f79e2b33f3b85545e54c32fdbe918636086c0aaaa26073883946061a6b52df50af711b7d6bb6647a177f051afccccdbd0cf473bbc3
|
||||
|
@ -1,141 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-client/alpine/alpine-2.00-r1.ebuild,v 1.1 2009/08/17 18:50:32 tove Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils flag-o-matic
|
||||
|
||||
# http://staff.washington.edu/chappa/alpine/patches/${P}/log.txt
|
||||
CHAPPA_PL="51"
|
||||
|
||||
DESCRIPTION="alpine is an easy to use text-based based mail and news client"
|
||||
HOMEPAGE="http://www.washington.edu/alpine/ http://staff.washington.edu/chappa/alpine/"
|
||||
SRC_URI="ftp://ftp.cac.washington.edu/alpine/${P}.tar.bz2
|
||||
chappa? ( http://staff.washington.edu/chappa/alpine/patches/${P}/all.patch.gz -> ${P}-chappa-${CHAPPA_PL}-all.patch.gz )"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~sparc ~x86"
|
||||
IUSE="+chappa doc ipv6 kerberos ldap nls onlyalpine passfile smime spell ssl threads topal"
|
||||
|
||||
DEPEND="virtual/pam
|
||||
>=sys-libs/ncurses-5.1
|
||||
ssl? ( dev-libs/openssl )
|
||||
ldap? ( net-nds/openldap )
|
||||
kerberos? ( app-crypt/mit-krb5 )
|
||||
spell? ( app-text/aspell )
|
||||
topal? ( >=net-mail/topal-64 )"
|
||||
RDEPEND="${DEPEND}
|
||||
app-misc/mime-types
|
||||
!onlyalpine? ( !app-editors/pico )
|
||||
!onlyalpine? ( !mail-client/pine )
|
||||
!<=net-mail/uw-imap-2004g"
|
||||
|
||||
maildir_warn() {
|
||||
elog
|
||||
elog "This build of ${PN} has Maildir support built in as"
|
||||
elog "part of the chappa-all patch."
|
||||
elog
|
||||
elog "If you have a maildir at ~/Maildir it will be your"
|
||||
elog "default INBOX. The path may be changed with the"
|
||||
elog "\"maildir-location\" setting in alpine."
|
||||
elog
|
||||
elog "To use /var/spool/mail INBOX again, set"
|
||||
elog "\"disable-these-drivers=md\" in your .pinerc file."
|
||||
elog
|
||||
elog "Alternately, you might want to read following webpage, which explains how to"
|
||||
elog "use multiple mailboxes simultaneously:"
|
||||
elog
|
||||
elog "http://www.math.washington.edu/~chappa/pine/pine-info/collections/incoming-folders/"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if use smime && use topal ; then
|
||||
ewarn "You can not have USE='smime topal'. Assuming topal is more important."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}.tar.bz2
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use chappa && epatch "${DISTDIR}"/${P}-chappa-${CHAPPA_PL}-all.patch.gz
|
||||
use topal && epatch /usr/share/topal/patches/${P}.patch
|
||||
|
||||
epatch "${FILESDIR}"/2.00-lpam.patch
|
||||
cd "${S}/imap/src/c-client"
|
||||
epatch "${FILESDIR}"/CVE-2008-5514.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="--without-tcl
|
||||
--with-system-pinerc=/etc/pine.conf
|
||||
--with-system-fixed-pinerc=/etc/pine.conf.fixed
|
||||
--with-ssl-certs-dir=/etc/ssl/certs"
|
||||
# fixme
|
||||
# --with-system-mail-directory=DIR?
|
||||
econf $(use_with ssl) \
|
||||
$(use_with ldap) \
|
||||
$(use_with passfile passfile .pinepwd) \
|
||||
$(use_with kerberos krb5) \
|
||||
$(use_with threads pthread) \
|
||||
$(use_with spell interactive-spellcheck /usr/bin/aspell) \
|
||||
$(use_enable nls) \
|
||||
$(use_with ipv6) \
|
||||
$(use topal || use_with smime) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use onlyalpine ; then
|
||||
dobin alpine/alpine || die
|
||||
doman doc/alpine.1 || die
|
||||
else
|
||||
emake DESTDIR="${D}" install || die
|
||||
doman doc/rpdump.1 doc/rpload.1 || die
|
||||
fi
|
||||
|
||||
dodoc NOTICE || die
|
||||
if use chappa ; then
|
||||
dodoc README.maildir || die
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
dodoc README doc/brochure.txt doc/tech-notes.txt || die
|
||||
docinto imap
|
||||
dodoc imap/docs/*.txt imap/docs/CONFIG imap/docs/RELNOTES || die
|
||||
|
||||
docinto imap/rfc
|
||||
dodoc imap/docs/rfc/*.txt || die
|
||||
|
||||
docinto html/tech-notes
|
||||
dohtml -r doc/tech-notes/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use chappa && maildir_warn
|
||||
if use spell ; then
|
||||
elog
|
||||
elog "In order to use spell checking"
|
||||
elog " emerge app-dicts/aspell-\<your_langs\>"
|
||||
elog "and setup alpine with:"
|
||||
elog " Speller = /usr/bin/aspell -c"
|
||||
elog
|
||||
fi
|
||||
if use topal ; then
|
||||
elog
|
||||
elog "In order to use gpg with topal"
|
||||
elog " read /usr/doc/topal/README.txt"
|
||||
elog
|
||||
fi
|
||||
if use passfile ; then
|
||||
elog
|
||||
elog "${PN} will cache passwords between connections."
|
||||
elog "File ~/.pinepwd will be used for this."
|
||||
elog
|
||||
fi
|
||||
}
|
@ -1,141 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-client/alpine/alpine-2.00-r2.ebuild,v 1.2 2009/11/07 22:22:08 volkmar Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils flag-o-matic
|
||||
|
||||
# http://staff.washington.edu/chappa/alpine/patches/${P}/log.txt
|
||||
CHAPPA_PL="52"
|
||||
|
||||
DESCRIPTION="alpine is an easy to use text-based based mail and news client"
|
||||
HOMEPAGE="http://www.washington.edu/alpine/ http://staff.washington.edu/chappa/alpine/"
|
||||
SRC_URI="ftp://ftp.cac.washington.edu/alpine/${P}.tar.bz2
|
||||
chappa? ( http://staff.washington.edu/chappa/alpine/patches/${P}/all.patch.gz -> ${P}-chappa-${CHAPPA_PL}-all.patch.gz )"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE="+chappa doc ipv6 kerberos ldap nls onlyalpine passfile smime spell ssl threads topal"
|
||||
|
||||
DEPEND="virtual/pam
|
||||
>=sys-libs/ncurses-5.1
|
||||
ssl? ( dev-libs/openssl )
|
||||
ldap? ( net-nds/openldap )
|
||||
kerberos? ( app-crypt/mit-krb5 )
|
||||
spell? ( app-text/aspell )
|
||||
topal? ( >=net-mail/topal-64 )"
|
||||
RDEPEND="${DEPEND}
|
||||
app-misc/mime-types
|
||||
!onlyalpine? ( !app-editors/pico )
|
||||
!onlyalpine? ( !mail-client/pine )
|
||||
!<=net-mail/uw-imap-2004g"
|
||||
|
||||
maildir_warn() {
|
||||
elog
|
||||
elog "This build of ${PN} has Maildir support built in as"
|
||||
elog "part of the chappa-all patch."
|
||||
elog
|
||||
elog "If you have a maildir at ~/Maildir it will be your"
|
||||
elog "default INBOX. The path may be changed with the"
|
||||
elog "\"maildir-location\" setting in alpine."
|
||||
elog
|
||||
elog "To use /var/spool/mail INBOX again, set"
|
||||
elog "\"disable-these-drivers=md\" in your .pinerc file."
|
||||
elog
|
||||
elog "Alternately, you might want to read following webpage, which explains how to"
|
||||
elog "use multiple mailboxes simultaneously:"
|
||||
elog
|
||||
elog "http://www.math.washington.edu/~chappa/pine/pine-info/collections/incoming-folders/"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if use smime && use topal ; then
|
||||
ewarn "You can not have USE='smime topal'. Assuming topal is more important."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}.tar.bz2
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use chappa && epatch "${DISTDIR}"/${P}-chappa-${CHAPPA_PL}-all.patch.gz
|
||||
use topal && epatch /usr/share/topal/patches/${P}.patch
|
||||
|
||||
epatch "${FILESDIR}"/2.00-lpam.patch
|
||||
cd "${S}/imap/src/c-client"
|
||||
epatch "${FILESDIR}"/CVE-2008-5514.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="--without-tcl
|
||||
--with-system-pinerc=/etc/pine.conf
|
||||
--with-system-fixed-pinerc=/etc/pine.conf.fixed
|
||||
--with-ssl-certs-dir=/etc/ssl/certs"
|
||||
# fixme
|
||||
# --with-system-mail-directory=DIR?
|
||||
econf $(use_with ssl) \
|
||||
$(use_with ldap) \
|
||||
$(use_with passfile passfile .pinepwd) \
|
||||
$(use_with kerberos krb5) \
|
||||
$(use_with threads pthread) \
|
||||
$(use_with spell interactive-spellcheck /usr/bin/aspell) \
|
||||
$(use_enable nls) \
|
||||
$(use_with ipv6) \
|
||||
$(use topal || use_with smime) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use onlyalpine ; then
|
||||
dobin alpine/alpine || die
|
||||
doman doc/alpine.1 || die
|
||||
else
|
||||
emake DESTDIR="${D}" install || die
|
||||
doman doc/rpdump.1 doc/rpload.1 || die
|
||||
fi
|
||||
|
||||
dodoc NOTICE || die
|
||||
if use chappa ; then
|
||||
dodoc README.maildir || die
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
dodoc README doc/brochure.txt doc/tech-notes.txt || die
|
||||
docinto imap
|
||||
dodoc imap/docs/*.txt imap/docs/CONFIG imap/docs/RELNOTES || die
|
||||
|
||||
docinto imap/rfc
|
||||
dodoc imap/docs/rfc/*.txt || die
|
||||
|
||||
docinto html/tech-notes
|
||||
dohtml -r doc/tech-notes/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use chappa && maildir_warn
|
||||
if use spell ; then
|
||||
elog
|
||||
elog "In order to use spell checking"
|
||||
elog " emerge app-dicts/aspell-\<your_langs\>"
|
||||
elog "and setup alpine with:"
|
||||
elog " Speller = /usr/bin/aspell -c"
|
||||
elog
|
||||
fi
|
||||
if use topal ; then
|
||||
elog
|
||||
elog "In order to use gpg with topal"
|
||||
elog " read /usr/doc/topal/README.txt"
|
||||
elog
|
||||
fi
|
||||
if use passfile ; then
|
||||
elog
|
||||
elog "${PN} will cache passwords between connections."
|
||||
elog "File ~/.pinepwd will be used for this."
|
||||
elog
|
||||
fi
|
||||
}
|
@ -1,141 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-client/alpine/alpine-2.00-r3.ebuild,v 1.1 2010/03/05 12:07:14 tove Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils flag-o-matic
|
||||
|
||||
# http://staff.washington.edu/chappa/alpine/patches/${P}/log.txt
|
||||
CHAPPA_PL="53"
|
||||
|
||||
DESCRIPTION="alpine is an easy to use text-based based mail and news client"
|
||||
HOMEPAGE="http://www.washington.edu/alpine/ http://staff.washington.edu/chappa/alpine/"
|
||||
SRC_URI="ftp://ftp.cac.washington.edu/alpine/${P}.tar.bz2
|
||||
chappa? ( http://staff.washington.edu/chappa/alpine/patches/${P}/all.patch.gz -> ${P}-chappa-${CHAPPA_PL}-all.patch.gz )"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE="+chappa doc ipv6 kerberos ldap nls onlyalpine passfile smime spell ssl threads topal"
|
||||
|
||||
DEPEND="virtual/pam
|
||||
>=sys-libs/ncurses-5.1
|
||||
ssl? ( dev-libs/openssl )
|
||||
ldap? ( net-nds/openldap )
|
||||
kerberos? ( app-crypt/mit-krb5 )
|
||||
spell? ( app-text/aspell )
|
||||
topal? ( >=net-mail/topal-72 )"
|
||||
RDEPEND="${DEPEND}
|
||||
app-misc/mime-types
|
||||
!onlyalpine? ( !app-editors/pico )
|
||||
!onlyalpine? ( !mail-client/pine )
|
||||
!<=net-mail/uw-imap-2004g"
|
||||
|
||||
maildir_warn() {
|
||||
elog
|
||||
elog "This build of ${PN} has Maildir support built in as"
|
||||
elog "part of the chappa-all patch."
|
||||
elog
|
||||
elog "If you have a maildir at ~/Maildir it will be your"
|
||||
elog "default INBOX. The path may be changed with the"
|
||||
elog "\"maildir-location\" setting in alpine."
|
||||
elog
|
||||
elog "To use /var/spool/mail INBOX again, set"
|
||||
elog "\"disable-these-drivers=md\" in your .pinerc file."
|
||||
elog
|
||||
elog "Alternately, you might want to read following webpage, which explains how to"
|
||||
elog "use multiple mailboxes simultaneously:"
|
||||
elog
|
||||
elog "http://www.math.washington.edu/~chappa/pine/pine-info/collections/incoming-folders/"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if use smime && use topal ; then
|
||||
ewarn "You can not have USE='smime topal'. Assuming topal is more important."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}.tar.bz2
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use chappa && epatch "${DISTDIR}"/${P}-chappa-${CHAPPA_PL}-all.patch.gz
|
||||
use topal && epatch /usr/share/topal/patches/${P}.patch-{1,2}
|
||||
|
||||
epatch "${FILESDIR}"/2.00-lpam.patch
|
||||
cd "${S}/imap/src/c-client"
|
||||
epatch "${FILESDIR}"/CVE-2008-5514.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="--without-tcl
|
||||
--with-system-pinerc=/etc/pine.conf
|
||||
--with-system-fixed-pinerc=/etc/pine.conf.fixed
|
||||
--with-ssl-certs-dir=/etc/ssl/certs"
|
||||
# fixme
|
||||
# --with-system-mail-directory=DIR?
|
||||
econf $(use_with ssl) \
|
||||
$(use_with ldap) \
|
||||
$(use_with passfile passfile .pinepwd) \
|
||||
$(use_with kerberos krb5) \
|
||||
$(use_with threads pthread) \
|
||||
$(use_with spell interactive-spellcheck /usr/bin/aspell) \
|
||||
$(use_enable nls) \
|
||||
$(use_with ipv6) \
|
||||
$(use topal || use_with smime) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use onlyalpine ; then
|
||||
dobin alpine/alpine || die
|
||||
doman doc/alpine.1 || die
|
||||
else
|
||||
emake DESTDIR="${D}" install || die
|
||||
doman doc/rpdump.1 doc/rpload.1 || die
|
||||
fi
|
||||
|
||||
dodoc NOTICE || die
|
||||
if use chappa ; then
|
||||
dodoc README.maildir || die
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
dodoc README doc/brochure.txt doc/tech-notes.txt || die
|
||||
docinto imap
|
||||
dodoc imap/docs/*.txt imap/docs/CONFIG imap/docs/RELNOTES || die
|
||||
|
||||
docinto imap/rfc
|
||||
dodoc imap/docs/rfc/*.txt || die
|
||||
|
||||
docinto html/tech-notes
|
||||
dohtml -r doc/tech-notes/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use chappa && maildir_warn
|
||||
if use spell ; then
|
||||
elog
|
||||
elog "In order to use spell checking"
|
||||
elog " emerge app-dicts/aspell-\<your_langs\>"
|
||||
elog "and setup alpine with:"
|
||||
elog " Speller = /usr/bin/aspell -c"
|
||||
elog
|
||||
fi
|
||||
if use topal ; then
|
||||
elog
|
||||
elog "In order to use gpg with topal"
|
||||
elog " read /usr/doc/topal/README.txt"
|
||||
elog
|
||||
fi
|
||||
if use passfile ; then
|
||||
elog
|
||||
elog "${PN} will cache passwords between connections."
|
||||
elog "File ~/.pinepwd will be used for this."
|
||||
elog
|
||||
fi
|
||||
}
|
@ -1,141 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-client/alpine/alpine-2.00.ebuild,v 1.4 2009/05/22 14:59:38 armin76 Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils flag-o-matic
|
||||
|
||||
# http://staff.washington.edu/chappa/alpine/patches/${P}/log.txt
|
||||
CHAPPA_PL="26"
|
||||
|
||||
DESCRIPTION="alpine is an easy to use text-based based mail and news client"
|
||||
HOMEPAGE="http://www.washington.edu/alpine/ http://staff.washington.edu/chappa/alpine/"
|
||||
SRC_URI="ftp://ftp.cac.washington.edu/alpine/${P}.tar.bz2
|
||||
chappa? ( http://staff.washington.edu/chappa/alpine/patches/${P}/all.patch.gz -> ${P}-chappa-${CHAPPA_PL}-all.patch.gz )"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~sparc ~x86"
|
||||
IUSE="+chappa doc ipv6 kerberos ldap nls onlyalpine passfile smime spell ssl threads topal"
|
||||
|
||||
DEPEND="virtual/pam
|
||||
>=sys-libs/ncurses-5.1
|
||||
ssl? ( dev-libs/openssl )
|
||||
ldap? ( net-nds/openldap )
|
||||
kerberos? ( app-crypt/mit-krb5 )
|
||||
spell? ( app-text/aspell )
|
||||
topal? ( >=net-mail/topal-64 )"
|
||||
RDEPEND="${DEPEND}
|
||||
app-misc/mime-types
|
||||
!onlyalpine? ( !app-editors/pico )
|
||||
!onlyalpine? ( !mail-client/pine )
|
||||
!<=net-mail/uw-imap-2004g"
|
||||
|
||||
maildir_warn() {
|
||||
elog
|
||||
elog "This build of ${PN} has Maildir support built in as"
|
||||
elog "part of the chappa-all patch."
|
||||
elog
|
||||
elog "If you have a maildir at ~/Maildir it will be your"
|
||||
elog "default INBOX. The path may be changed with the"
|
||||
elog "\"maildir-location\" setting in alpine."
|
||||
elog
|
||||
elog "To use /var/spool/mail INBOX again, set"
|
||||
elog "\"disable-these-drivers=md\" in your .pinerc file."
|
||||
elog
|
||||
elog "Alternately, you might want to read following webpage, which explains how to"
|
||||
elog "use multiple mailboxes simultaneously:"
|
||||
elog
|
||||
elog "http://www.math.washington.edu/~chappa/pine/pine-info/collections/incoming-folders/"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if use smime && use topal ; then
|
||||
ewarn "You can not have USE='smime topal'. Assuming topal is more important."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}.tar.bz2
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use chappa && epatch "${DISTDIR}"/${P}-chappa-${CHAPPA_PL}-all.patch.gz
|
||||
use topal && epatch /usr/share/topal/patches/${P}.patch
|
||||
|
||||
epatch "${FILESDIR}"/2.00-lpam.patch
|
||||
cd "${S}/imap/src/c-client"
|
||||
epatch "${FILESDIR}"/CVE-2008-5514.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="--without-tcl
|
||||
--with-system-pinerc=/etc/pine.conf
|
||||
--with-system-fixed-pinerc=/etc/pine.conf.fixed
|
||||
--with-ssl-certs-dir=/etc/ssl/certs"
|
||||
# fixme
|
||||
# --with-system-mail-directory=DIR?
|
||||
econf $(use_with ssl) \
|
||||
$(use_with ldap) \
|
||||
$(use_with passfile passfile .pinepwd) \
|
||||
$(use_with kerberos krb5) \
|
||||
$(use_with threads pthread) \
|
||||
$(use_with spell interactive-spellcheck /usr/bin/aspell) \
|
||||
$(use_enable nls) \
|
||||
$(use_with ipv6) \
|
||||
$(use topal || use_with smime) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use onlyalpine ; then
|
||||
dobin alpine/alpine || die
|
||||
doman doc/alpine.1 || die
|
||||
else
|
||||
emake DESTDIR="${D}" install || die
|
||||
doman doc/rpdump.1 doc/rpload.1 || die
|
||||
fi
|
||||
|
||||
dodoc NOTICE || die
|
||||
if use chappa ; then
|
||||
dodoc README.maildir || die
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
dodoc README doc/brochure.txt doc/tech-notes.txt || die
|
||||
docinto imap
|
||||
dodoc imap/docs/*.txt imap/docs/CONFIG imap/docs/RELNOTES || die
|
||||
|
||||
docinto imap/rfc
|
||||
dodoc imap/docs/rfc/*.txt || die
|
||||
|
||||
docinto html/tech-notes
|
||||
dohtml -r doc/tech-notes/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use chappa && maildir_warn
|
||||
if use spell ; then
|
||||
elog
|
||||
elog "In order to use spell checking"
|
||||
elog " emerge app-dicts/aspell-\<your_langs\>"
|
||||
elog "and setup alpine with:"
|
||||
elog " Speller = /usr/bin/aspell -c"
|
||||
elog
|
||||
fi
|
||||
if use topal ; then
|
||||
elog
|
||||
elog "In order to use gpg with topal"
|
||||
elog " read /usr/doc/topal/README.txt"
|
||||
elog
|
||||
fi
|
||||
if use passfile ; then
|
||||
elog
|
||||
elog "${PN} will cache passwords between connections."
|
||||
elog "File ~/.pinepwd will be used for this."
|
||||
elog
|
||||
fi
|
||||
}
|
@ -1,69 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-filter/gld/gld-1.7-r1.ebuild,v 1.4 2011/06/22 21:35:10 ranger Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A standalone anti-spam greylisting algorithm on top of Postfix"
|
||||
HOMEPAGE="http://www.gasmi.net/gld.html"
|
||||
SRC_URI="http://www.gasmi.net/down/${P}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE="postgres"
|
||||
# Not adding a mysql USE flag. The package defaults to it, so we will too.
|
||||
DEPEND="sys-libs/zlib
|
||||
>=dev-libs/openssl-0.9.6
|
||||
postgres? ( dev-db/postgresql-server )
|
||||
!postgres? ( virtual/mysql )"
|
||||
|
||||
src_prepare() {
|
||||
sed -i gld.conf \
|
||||
-e 's:^LOOPBACKONLY=.*:LOOPBACKONLY=1:' \
|
||||
-e 's:^#USER=.*:USER=nobody:' \
|
||||
-e 's:^#GROUP=.*:GROUP=nobody:' \
|
||||
|| die "sed gld.conf failed"
|
||||
|
||||
sed -i Makefile.in \
|
||||
-e '/ -c /{s|-O2|$(CFLAGS)|g}' \
|
||||
-e '/ -o /{s|-O2|$(CFLAGS) $(LDFLAGS)|g}' \
|
||||
-e '/strip/d' \
|
||||
|| die "sed Makefile.in failed"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export CC
|
||||
# It's kind of weird. $(use_with postgres pgsql) won't work if you don't
|
||||
# use it...
|
||||
if use postgres ; then
|
||||
myconf="${myconf} --with-pgsql"
|
||||
fi
|
||||
|
||||
econf ${myconf} || die "econf failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin gld
|
||||
|
||||
insinto /etc
|
||||
newins gld.conf gld.conf.example
|
||||
|
||||
dodoc HISTORY README*
|
||||
|
||||
insinto /usr/share/${PN}/sql
|
||||
doins *.pgsql *-whitelist.sql "${FILESDIR}"/tables.sql
|
||||
|
||||
newinitd "${FILESDIR}"/gld.rc gld
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "Please read the README file in /usr/share/doc/${PF} for"
|
||||
elog "details on how to setup gld."
|
||||
elog
|
||||
elog "The sql files have been installed to /usr/share/${PN}/sql."
|
||||
elog
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
Don't assume ipv6 is available
|
||||
--- opendkim/tests/t-peer.lua 2011-03-19 06:11:53.000000000 +0200
|
||||
+++ opendkim/tests/t-peer.lua 2011-06-27 09:42:25.342413931 +0300
|
||||
@@ -37,14 +37,6 @@
|
||||
{ "localhost", "192.168.1.130", SMFIR_CONTINUE },
|
||||
{ "localhost", "192.168.1.131", SMFIR_CONTINUE },
|
||||
{ "localhost", "192.168.1.132", SMFIR_ACCEPT },
|
||||
--- ipv6 tests
|
||||
- { "localhost", "9001:db8::8:800:200c:417a", SMFIR_CONTINUE },
|
||||
- { "localhost", "2001:db8::91", SMFIR_ACCEPT },
|
||||
- { "localhost", "2001:db8::fff0", SMFIR_CONTINUE },
|
||||
- { "localhost", "2001:db8::fff1", SMFIR_CONTINUE },
|
||||
- { "localhost", "2001:db8::fff2", SMFIR_CONTINUE },
|
||||
- { "localhost", "2001:db8::fff3", SMFIR_CONTINUE },
|
||||
- { "localhost", "2001:db8::fff4", SMFIR_ACCEPT }
|
||||
}
|
||||
|
||||
for index = 1, table.getn(test)
|
@ -1,203 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/opendkim-2.4.3.ebuild,v 1.4 2012/06/04 23:58:02 zmedico Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils db-use user
|
||||
|
||||
# for betas
|
||||
#MY_P=${P/_b/.B}
|
||||
#S=${WORKDIR}/${PN}-2.0.0
|
||||
#SRC_URI="mirror://sourceforge/opendkim/${MY_P}.tar.gz"
|
||||
|
||||
DESCRIPTION="A milter-based application to provide DKIM signing and verification"
|
||||
HOMEPAGE="http://opendkim.org"
|
||||
SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz"
|
||||
|
||||
LICENSE="Sendmail-Open-Source BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="asyncdns +berkdb ldap lua opendbx poll sasl +ssl static-libs unbound"
|
||||
|
||||
# FUTURE: diffheaders (libtre error) - bug #296813
|
||||
|
||||
DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
|
||||
ssl? ( >=dev-libs/openssl-0.9.8 )
|
||||
berkdb? ( >=sys-libs/db-3.2 )
|
||||
opendbx? ( >=dev-db/opendbx-1.4.0 )
|
||||
lua? ( dev-lang/lua )
|
||||
ldap? ( net-nds/openldap )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
unbound? ( >=net-dns/unbound-1.4.1 net-dns/dnssec-root )"
|
||||
#diffheaders? ( dev-libs/tre )
|
||||
#gnutls? ( >=net-libs/gnutls-2.11.7 )
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
REQUIRED_USE="sasl? ( ldap )
|
||||
lua? ( berkdb )"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup milter
|
||||
# mail-milter/spamass-milter creates milter user with this home directory
|
||||
# For consistency reasons, milter user must be created here with this home directory
|
||||
# even though this package doesn't need a home directory for this user (#280571)
|
||||
enewuser milter -1 -1 /var/lib/milter milter
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's:/var/db/dkim:/etc/opendkim:g' \
|
||||
-e 's:/var/db/opendkim:/var/lib/opendkim:g' \
|
||||
-e 's:/etc/mail:/etc/opendkim:g' \
|
||||
-e 's:mailnull:milter:g' \
|
||||
-e 's:^#[[:space:]]*PidFile.*:PidFile /var/run/opendkim/opendkim.pid:' \
|
||||
opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \
|
||||
contrib/stats/opendkim-reportstats || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
if use berkdb ; then
|
||||
myconf=$(db_includedir)
|
||||
myconf="--with-db-incdir=${myconf#-I}"
|
||||
myconf+=" --enable-popauth"
|
||||
myconf+=" --enable-query_cache"
|
||||
myconf+=" --enable-report_intervals"
|
||||
myconf+=" --enable-stats"
|
||||
fi
|
||||
if use asyncdns ; then
|
||||
if use unbound; then
|
||||
myconf+=" --with-unbound"
|
||||
else
|
||||
myconf+=" --enable-arlib"
|
||||
fi
|
||||
else
|
||||
myconf+=" $(use_with unbound) --disable-arlib"
|
||||
fi
|
||||
if use ldap; then
|
||||
myconf+=" $(use_with sasl)"
|
||||
fi
|
||||
econf \
|
||||
$(use_with berkdb db) \
|
||||
$(use_with opendbx odbx) \
|
||||
$(use_with lua) \
|
||||
$(use_enable lua statsext) \
|
||||
$(use_enable lua rbl) \
|
||||
$(use_with ldap openldap) \
|
||||
$(use_enable ldap ldap_caching) \
|
||||
$(use_enable poll) \
|
||||
$(use_enable static-libs static) \
|
||||
${myconf} \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--enable-filter \
|
||||
--without-domainkeys \
|
||||
--enable-oversign \
|
||||
--enable-adsp_lists \
|
||||
--enable-dkim_reputation \
|
||||
--enable-identity_header \
|
||||
--enable-rate_limit \
|
||||
--enable-redirect \
|
||||
--enable-resign \
|
||||
--enable-replace_rules \
|
||||
--enable-selector_header \
|
||||
--enable-default_sender \
|
||||
--enable-sender_macro \
|
||||
--enable-vbr \
|
||||
--disable-rpath \
|
||||
--disable-live-testing
|
||||
#$(use_enable diffheaders)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
# file collision
|
||||
rm -f "${D}"/usr/share/man/man3/ar.3
|
||||
|
||||
dosbin contrib/stats/opendkim-reportstats
|
||||
newinitd "${FILESDIR}/opendkim.init.r2" opendkim
|
||||
dodir /etc/opendkim /var/lib/opendkim
|
||||
fowners milter:milter /var/lib/opendkim
|
||||
|
||||
# default configuration
|
||||
if [ ! -f "${ROOT}"/etc/opendkim/opendkim.conf ]; then
|
||||
grep ^[^#] "${S}"/opendkim/opendkim.conf.simple \
|
||||
> "${D}"/etc/opendkim/opendkim.conf
|
||||
if use unbound; then
|
||||
echo TrustedAnchorFile /etc/dnssec/root-anchors.txt >> "${D}"/etc/opendkim/opendkim.conf
|
||||
fi
|
||||
echo UserID milter >> "${D}"/etc/opendkim/opendkim.conf
|
||||
if use berkdb; then
|
||||
echo Statistics /var/lib/opendkim/stats.dat >> \
|
||||
"${D}"/etc/opendkim/opendkim.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
use static-libs || find "${D}" -name "*.la" -delete
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you want to sign your mail messages and need some help"
|
||||
elog "please run:"
|
||||
elog " emerge --config ${CATEGORY}/${PN}"
|
||||
elog "It will help you create your key and give you hints on how"
|
||||
elog "to configure your DNS and MTA."
|
||||
|
||||
ewarn "Make sure your MTA has r/w access to the socket file."
|
||||
ewarn "This can be done either by setting UMask to 002 and adding MTA's user"
|
||||
ewarn "to milter group or you can simply set UMask to 000."
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
local selector keysize pubkey
|
||||
|
||||
read -p "Enter the selector name (default ${HOSTNAME}): " selector
|
||||
[[ -n "${selector}" ]] || selector=${HOSTNAME}
|
||||
if [[ -z "${selector}" ]]; then
|
||||
eerror "Oddly enough, you don't have a HOSTNAME."
|
||||
return 1
|
||||
fi
|
||||
if [[ -f "${ROOT}"etc/opendkim/${selector}.private ]]; then
|
||||
ewarn "The private key for this selector already exists."
|
||||
else
|
||||
einfo "Select the size of private key:"
|
||||
einfo " [1] 512 bits"
|
||||
einfo " [2] 1024 bits"
|
||||
while read -n 1 -s -p " Press 1 or 2 on the keyboard to select the key size " keysize ; do
|
||||
[[ "${keysize}" == "1" || "${keysize}" == "2" ]] && echo && break
|
||||
done
|
||||
case ${keysize} in
|
||||
1) keysize=512 ;;
|
||||
*) keysize=1024 ;;
|
||||
esac
|
||||
|
||||
# generate the private and public keys
|
||||
opendkim-genkey -b ${keysize} -D "${ROOT}"etc/opendkim/ \
|
||||
-s ${selector} -d '(your domain)' && \
|
||||
chown milter:milter \
|
||||
"${ROOT}"etc/opendkim/"${selector}".private || \
|
||||
{ eerror "Failed to create private and public keys." ; return 1; }
|
||||
chmod go-r "${ROOT}"etc/opendkim/"${selector}".private
|
||||
fi
|
||||
|
||||
# opendkim selector configuration
|
||||
echo
|
||||
einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:"
|
||||
einfo " Keyfile /etc/opendkim/${selector}.private"
|
||||
einfo " Selector ${selector}"
|
||||
|
||||
# MTA configuration
|
||||
echo
|
||||
einfo "If you are using Postfix, add following lines to your main.cf:"
|
||||
einfo " smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
|
||||
einfo " non_smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
|
||||
einfo " and read http://www.postfix.org/MILTER_README.html"
|
||||
|
||||
# DNS configuration
|
||||
einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:"
|
||||
cat "${ROOT}"etc/opendkim/${selector}.txt
|
||||
einfo "t=y signifies you only test the DKIM on your domain. See following page for the complete list of tags:"
|
||||
einfo " http://www.dkim.org/specs/rfc4871-dkimbase.html#key-text"
|
||||
einfo
|
||||
einfo "Also look at the ADSP http://tools.ietf.org/html/rfc5617"
|
||||
}
|
@ -1,204 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/opendkim-2.5.2-r1.ebuild,v 1.4 2012/07/04 07:34:21 jdhore Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils db-use autotools user
|
||||
|
||||
# for betas
|
||||
#MY_P=${P/_b/.B}
|
||||
#S=${WORKDIR}/${PN}-2.0.0
|
||||
#SRC_URI="mirror://sourceforge/opendkim/${MY_P}.tar.gz"
|
||||
|
||||
DESCRIPTION="A milter-based application to provide DKIM signing and verification"
|
||||
HOMEPAGE="http://opendkim.org"
|
||||
SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz"
|
||||
|
||||
LICENSE="Sendmail-Open-Source BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="asyncdns +berkdb ldap lua opendbx poll sasl +ssl static-libs unbound"
|
||||
|
||||
# FUTURE: diffheaders (libtre error) - bug #296813
|
||||
|
||||
DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
|
||||
ssl? ( >=dev-libs/openssl-0.9.8 )
|
||||
berkdb? ( >=sys-libs/db-3.2 )
|
||||
opendbx? ( >=dev-db/opendbx-1.4.0 )
|
||||
lua? ( dev-lang/lua )
|
||||
ldap? ( net-nds/openldap )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
unbound? ( >=net-dns/unbound-1.4.1 net-dns/dnssec-root )"
|
||||
#diffheaders? ( dev-libs/tre )
|
||||
#gnutls? ( >=net-libs/gnutls-2.11.7 )
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
REQUIRED_USE="sasl? ( ldap )"
|
||||
#lua? ( berkdb )"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup milter
|
||||
# mail-milter/spamass-milter creates milter user with this home directory
|
||||
# For consistency reasons, milter user must be created here with this home directory
|
||||
# even though this package doesn't need a home directory for this user (#280571)
|
||||
enewuser milter -1 -1 /var/lib/milter milter
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's:/var/db/dkim:/etc/opendkim:g' \
|
||||
-e 's:/var/db/opendkim:/var/lib/opendkim:g' \
|
||||
-e 's:/etc/mail:/etc/opendkim:g' \
|
||||
-e 's:mailnull:milter:g' \
|
||||
-e 's:^#[[:space:]]*PidFile.*:PidFile /var/run/opendkim/opendkim.pid:' \
|
||||
opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \
|
||||
contrib/stats/opendkim-reportstats || die
|
||||
|
||||
sed -i -e 's:dist_doc_DATA:dist_html_DATA:' libopendkim/docs/Makefile.am \
|
||||
|| die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
if use berkdb ; then
|
||||
myconf=$(db_includedir)
|
||||
myconf="--with-db-incdir=${myconf#-I}"
|
||||
myconf+=" --enable-popauth"
|
||||
myconf+=" --enable-query_cache"
|
||||
fi
|
||||
if use asyncdns ; then
|
||||
if use unbound; then
|
||||
myconf+=" --with-unbound"
|
||||
else
|
||||
myconf+=" --enable-arlib"
|
||||
fi
|
||||
else
|
||||
myconf+=" $(use_with unbound) --disable-arlib"
|
||||
fi
|
||||
if use ldap; then
|
||||
myconf+=" $(use_with sasl)"
|
||||
fi
|
||||
econf \
|
||||
$(use_with berkdb db) \
|
||||
$(use_with opendbx odbx) \
|
||||
$(use_with lua) \
|
||||
$(use_enable lua rbl) \
|
||||
$(use_with ldap openldap) \
|
||||
$(use_enable poll) \
|
||||
$(use_enable static-libs static) \
|
||||
${myconf} \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--htmldir=/usr/share/doc/${PF}/html \
|
||||
--enable-filter \
|
||||
--enable-oversign \
|
||||
--enable-adsp_lists \
|
||||
--enable-dkim_reputation \
|
||||
--enable-identity_header \
|
||||
--enable-rate_limit \
|
||||
--enable-redirect \
|
||||
--enable-resign \
|
||||
--enable-replace_rules \
|
||||
--enable-selector_header \
|
||||
--enable-default_sender \
|
||||
--enable-sender_macro \
|
||||
--enable-vbr \
|
||||
--disable-rpath \
|
||||
--disable-live-testing
|
||||
#$(use_enable diffheaders)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
# file collision
|
||||
rm -f "${D}"/usr/share/man/man3/ar.3
|
||||
|
||||
dosbin contrib/stats/opendkim-reportstats
|
||||
newinitd "${FILESDIR}/opendkim.init.r2" opendkim
|
||||
dodir /etc/opendkim /var/lib/opendkim
|
||||
fowners milter:milter /var/lib/opendkim
|
||||
|
||||
# default configuration
|
||||
if [ ! -f "${ROOT}"/etc/opendkim/opendkim.conf ]; then
|
||||
grep ^[^#] "${S}"/opendkim/opendkim.conf.simple \
|
||||
> "${D}"/etc/opendkim/opendkim.conf
|
||||
if use unbound; then
|
||||
echo TrustedAnchorFile /etc/dnssec/root-anchors.txt >> "${D}"/etc/opendkim/opendkim.conf
|
||||
fi
|
||||
echo UserID milter >> "${D}"/etc/opendkim/opendkim.conf
|
||||
if use berkdb; then
|
||||
echo Statistics /var/lib/opendkim/stats.dat >> \
|
||||
"${D}"/etc/opendkim/opendkim.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
use static-libs || find "${D}" -name "*.la" -delete
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you want to sign your mail messages and need some help"
|
||||
elog "please run:"
|
||||
elog " emerge --config ${CATEGORY}/${PN}"
|
||||
elog "It will help you create your key and give you hints on how"
|
||||
elog "to configure your DNS and MTA."
|
||||
|
||||
ewarn "Make sure your MTA has r/w access to the socket file."
|
||||
ewarn "This can be done either by setting UMask to 002 and adding MTA's user"
|
||||
ewarn "to milter group or you can simply set UMask to 000."
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
local selector keysize pubkey
|
||||
|
||||
read -p "Enter the selector name (default ${HOSTNAME}): " selector
|
||||
[[ -n "${selector}" ]] || selector=${HOSTNAME}
|
||||
if [[ -z "${selector}" ]]; then
|
||||
eerror "Oddly enough, you don't have a HOSTNAME."
|
||||
return 1
|
||||
fi
|
||||
if [[ -f "${ROOT}"etc/opendkim/${selector}.private ]]; then
|
||||
ewarn "The private key for this selector already exists."
|
||||
else
|
||||
einfo "Select the size of private key:"
|
||||
einfo " [1] 512 bits"
|
||||
einfo " [2] 1024 bits"
|
||||
while read -n 1 -s -p " Press 1 or 2 on the keyboard to select the key size " keysize ; do
|
||||
[[ "${keysize}" == "1" || "${keysize}" == "2" ]] && echo && break
|
||||
done
|
||||
case ${keysize} in
|
||||
1) keysize=512 ;;
|
||||
*) keysize=1024 ;;
|
||||
esac
|
||||
|
||||
# generate the private and public keys
|
||||
opendkim-genkey -b ${keysize} -D "${ROOT}"etc/opendkim/ \
|
||||
-s ${selector} -d '(your domain)' && \
|
||||
chown milter:milter \
|
||||
"${ROOT}"etc/opendkim/"${selector}".private || \
|
||||
{ eerror "Failed to create private and public keys." ; return 1; }
|
||||
chmod go-r "${ROOT}"etc/opendkim/"${selector}".private
|
||||
fi
|
||||
|
||||
# opendkim selector configuration
|
||||
echo
|
||||
einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:"
|
||||
einfo " Keyfile /etc/opendkim/${selector}.private"
|
||||
einfo " Selector ${selector}"
|
||||
|
||||
# MTA configuration
|
||||
echo
|
||||
einfo "If you are using Postfix, add following lines to your main.cf:"
|
||||
einfo " smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
|
||||
einfo " non_smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
|
||||
einfo " and read http://www.postfix.org/MILTER_README.html"
|
||||
|
||||
# DNS configuration
|
||||
einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:"
|
||||
cat "${ROOT}"etc/opendkim/${selector}.txt
|
||||
einfo "t=y signifies you only test the DKIM on your domain. See following page for the complete list of tags:"
|
||||
einfo " http://www.dkim.org/specs/rfc4871-dkimbase.html#key-text"
|
||||
einfo
|
||||
einfo "Also look at the ADSP http://tools.ietf.org/html/rfc5617"
|
||||
}
|
@ -1,202 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/opendkim-2.6.3.ebuild,v 1.1 2012/07/12 17:14:04 eras Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils db-use autotools user
|
||||
|
||||
# for betas
|
||||
#MY_P=${P/_b/.B}
|
||||
#S=${WORKDIR}/${PN}-2.0.0
|
||||
#SRC_URI="mirror://sourceforge/opendkim/${MY_P}.tar.gz"
|
||||
|
||||
DESCRIPTION="A milter-based application to provide DKIM signing and verification"
|
||||
HOMEPAGE="http://opendkim.org"
|
||||
SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz"
|
||||
|
||||
LICENSE="Sendmail-Open-Source BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="asyncdns +berkdb ldap lua opendbx poll sasl +ssl static-libs unbound"
|
||||
|
||||
# FUTURE: diffheaders (libtre error) - bug #296813
|
||||
|
||||
DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
|
||||
ssl? ( >=dev-libs/openssl-0.9.8 )
|
||||
berkdb? ( >=sys-libs/db-3.2 )
|
||||
opendbx? ( >=dev-db/opendbx-1.4.0 )
|
||||
lua? ( dev-lang/lua )
|
||||
ldap? ( net-nds/openldap )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
unbound? ( >=net-dns/unbound-1.4.1 net-dns/dnssec-root )"
|
||||
#diffheaders? ( dev-libs/tre )
|
||||
#gnutls? ( >=net-libs/gnutls-2.11.7 )
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
REQUIRED_USE="sasl? ( ldap )"
|
||||
#lua? ( berkdb )"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup milter
|
||||
# mail-milter/spamass-milter creates milter user with this home directory
|
||||
# For consistency reasons, milter user must be created here with this home directory
|
||||
# even though this package doesn't need a home directory for this user (#280571)
|
||||
enewuser milter -1 -1 /var/lib/milter milter
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's:/var/db/dkim:/etc/opendkim:g' \
|
||||
-e 's:/var/db/opendkim:/var/lib/opendkim:g' \
|
||||
-e 's:/etc/mail:/etc/opendkim:g' \
|
||||
-e 's:mailnull:milter:g' \
|
||||
-e 's:^#[[:space:]]*PidFile.*:PidFile /var/run/opendkim/opendkim.pid:' \
|
||||
opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \
|
||||
stats/opendkim-reportstats || die
|
||||
|
||||
sed -i -e 's:dist_doc_DATA:dist_html_DATA:' libopendkim/docs/Makefile.am \
|
||||
|| die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
if use berkdb ; then
|
||||
myconf=$(db_includedir)
|
||||
myconf="--with-db-incdir=${myconf#-I}"
|
||||
myconf+=" --enable-popauth"
|
||||
myconf+=" --enable-query_cache"
|
||||
fi
|
||||
if use asyncdns ; then
|
||||
if use unbound; then
|
||||
myconf+=" --with-unbound"
|
||||
else
|
||||
myconf+=" --enable-arlib"
|
||||
fi
|
||||
else
|
||||
myconf+=" $(use_with unbound) --disable-arlib"
|
||||
fi
|
||||
if use ldap; then
|
||||
myconf+=" $(use_with sasl)"
|
||||
fi
|
||||
econf \
|
||||
$(use_with berkdb db) \
|
||||
$(use_with opendbx odbx) \
|
||||
$(use_with lua) \
|
||||
$(use_enable lua rbl) \
|
||||
$(use_with ldap openldap) \
|
||||
$(use_enable poll) \
|
||||
$(use_enable static-libs static) \
|
||||
${myconf} \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--htmldir=/usr/share/doc/${PF}/html \
|
||||
--enable-filter \
|
||||
--enable-oversign \
|
||||
--enable-adsp_lists \
|
||||
--enable-dkim_reputation \
|
||||
--enable-identity_header \
|
||||
--enable-rate_limit \
|
||||
--enable-redirect \
|
||||
--enable-resign \
|
||||
--enable-replace_rules \
|
||||
--enable-default_sender \
|
||||
--enable-sender_macro \
|
||||
--enable-vbr \
|
||||
--disable-rpath \
|
||||
--disable-live-testing
|
||||
#$(use_enable diffheaders)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
# file collision
|
||||
rm -f "${D}"/usr/share/man/man3/ar.3
|
||||
|
||||
dosbin stats/opendkim-reportstats
|
||||
newinitd "${FILESDIR}/opendkim.init.r2" opendkim
|
||||
dodir /etc/opendkim /var/lib/opendkim
|
||||
fowners milter:milter /var/lib/opendkim
|
||||
|
||||
# default configuration
|
||||
if [ ! -f "${ROOT}"/etc/opendkim/opendkim.conf ]; then
|
||||
grep ^[^#] "${S}"/opendkim/opendkim.conf.simple \
|
||||
> "${D}"/etc/opendkim/opendkim.conf
|
||||
if use unbound; then
|
||||
echo TrustedAnchorFile /etc/dnssec/root-anchors.txt >> "${D}"/etc/opendkim/opendkim.conf
|
||||
fi
|
||||
echo UserID milter >> "${D}"/etc/opendkim/opendkim.conf
|
||||
if use berkdb; then
|
||||
echo Statistics /var/lib/opendkim/stats.dat >> \
|
||||
"${D}"/etc/opendkim/opendkim.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
use static-libs || find "${D}" -name "*.la" -delete
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you want to sign your mail messages and need some help"
|
||||
elog "please run:"
|
||||
elog " emerge --config ${CATEGORY}/${PN}"
|
||||
elog "It will help you create your key and give you hints on how"
|
||||
elog "to configure your DNS and MTA."
|
||||
|
||||
ewarn "Make sure your MTA has r/w access to the socket file."
|
||||
ewarn "This can be done either by setting UMask to 002 and adding MTA's user"
|
||||
ewarn "to milter group or you can simply set UMask to 000."
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
local selector keysize pubkey
|
||||
|
||||
read -p "Enter the selector name (default ${HOSTNAME}): " selector
|
||||
[[ -n "${selector}" ]] || selector=${HOSTNAME}
|
||||
if [[ -z "${selector}" ]]; then
|
||||
eerror "Oddly enough, you don't have a HOSTNAME."
|
||||
return 1
|
||||
fi
|
||||
if [[ -f "${ROOT}"etc/opendkim/${selector}.private ]]; then
|
||||
ewarn "The private key for this selector already exists."
|
||||
else
|
||||
einfo "Select the size of private key:"
|
||||
einfo " [1] 512 bits"
|
||||
einfo " [2] 1024 bits"
|
||||
while read -n 1 -s -p " Press 1 or 2 on the keyboard to select the key size " keysize ; do
|
||||
[[ "${keysize}" == "1" || "${keysize}" == "2" ]] && echo && break
|
||||
done
|
||||
case ${keysize} in
|
||||
1) keysize=512 ;;
|
||||
*) keysize=1024 ;;
|
||||
esac
|
||||
|
||||
# generate the private and public keys
|
||||
opendkim-genkey -b ${keysize} -D "${ROOT}"etc/opendkim/ \
|
||||
-s ${selector} -d '(your domain)' && \
|
||||
chown milter:milter \
|
||||
"${ROOT}"etc/opendkim/"${selector}".private || \
|
||||
{ eerror "Failed to create private and public keys." ; return 1; }
|
||||
chmod go-r "${ROOT}"etc/opendkim/"${selector}".private
|
||||
fi
|
||||
|
||||
# opendkim selector configuration
|
||||
echo
|
||||
einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:"
|
||||
einfo " Keyfile /etc/opendkim/${selector}.private"
|
||||
einfo " Selector ${selector}"
|
||||
|
||||
# MTA configuration
|
||||
echo
|
||||
einfo "If you are using Postfix, add following lines to your main.cf:"
|
||||
einfo " smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
|
||||
einfo " non_smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
|
||||
einfo " and read http://www.postfix.org/MILTER_README.html"
|
||||
|
||||
# DNS configuration
|
||||
einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:"
|
||||
cat "${ROOT}"etc/opendkim/${selector}.txt
|
||||
einfo "t=y signifies you only test the DKIM on your domain. See following page for the complete list of tags:"
|
||||
einfo " http://www.dkim.org/specs/rfc4871-dkimbase.html#key-text"
|
||||
einfo
|
||||
einfo "Also look at the ADSP http://tools.ietf.org/html/rfc5617"
|
||||
}
|
@ -1,202 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/opendkim-2.6.4.ebuild,v 1.1 2012/07/13 06:17:44 eras Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils db-use autotools user
|
||||
|
||||
# for betas
|
||||
#MY_P=${P/_b/.B}
|
||||
#S=${WORKDIR}/${PN}-2.0.0
|
||||
#SRC_URI="mirror://sourceforge/opendkim/${MY_P}.tar.gz"
|
||||
|
||||
DESCRIPTION="A milter-based application to provide DKIM signing and verification"
|
||||
HOMEPAGE="http://opendkim.org"
|
||||
SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz"
|
||||
|
||||
LICENSE="Sendmail-Open-Source BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="asyncdns +berkdb ldap lua opendbx poll sasl +ssl static-libs unbound"
|
||||
|
||||
# FUTURE: diffheaders (libtre error) - bug #296813
|
||||
|
||||
DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
|
||||
ssl? ( >=dev-libs/openssl-0.9.8 )
|
||||
berkdb? ( >=sys-libs/db-3.2 )
|
||||
opendbx? ( >=dev-db/opendbx-1.4.0 )
|
||||
lua? ( dev-lang/lua )
|
||||
ldap? ( net-nds/openldap )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
unbound? ( >=net-dns/unbound-1.4.1 net-dns/dnssec-root )"
|
||||
#diffheaders? ( dev-libs/tre )
|
||||
#gnutls? ( >=net-libs/gnutls-2.11.7 )
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
REQUIRED_USE="sasl? ( ldap )"
|
||||
#lua? ( berkdb )"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup milter
|
||||
# mail-milter/spamass-milter creates milter user with this home directory
|
||||
# For consistency reasons, milter user must be created here with this home directory
|
||||
# even though this package doesn't need a home directory for this user (#280571)
|
||||
enewuser milter -1 -1 /var/lib/milter milter
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's:/var/db/dkim:/etc/opendkim:g' \
|
||||
-e 's:/var/db/opendkim:/var/lib/opendkim:g' \
|
||||
-e 's:/etc/mail:/etc/opendkim:g' \
|
||||
-e 's:mailnull:milter:g' \
|
||||
-e 's:^#[[:space:]]*PidFile.*:PidFile /var/run/opendkim/opendkim.pid:' \
|
||||
opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \
|
||||
stats/opendkim-reportstats || die
|
||||
|
||||
sed -i -e 's:dist_doc_DATA:dist_html_DATA:' libopendkim/docs/Makefile.am \
|
||||
|| die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
if use berkdb ; then
|
||||
myconf=$(db_includedir)
|
||||
myconf="--with-db-incdir=${myconf#-I}"
|
||||
myconf+=" --enable-popauth"
|
||||
myconf+=" --enable-query_cache"
|
||||
fi
|
||||
if use asyncdns ; then
|
||||
if use unbound; then
|
||||
myconf+=" --with-unbound"
|
||||
else
|
||||
myconf+=" --enable-arlib"
|
||||
fi
|
||||
else
|
||||
myconf+=" $(use_with unbound) --disable-arlib"
|
||||
fi
|
||||
if use ldap; then
|
||||
myconf+=" $(use_with sasl)"
|
||||
fi
|
||||
econf \
|
||||
$(use_with berkdb db) \
|
||||
$(use_with opendbx odbx) \
|
||||
$(use_with lua) \
|
||||
$(use_enable lua rbl) \
|
||||
$(use_with ldap openldap) \
|
||||
$(use_enable poll) \
|
||||
$(use_enable static-libs static) \
|
||||
${myconf} \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--htmldir=/usr/share/doc/${PF}/html \
|
||||
--enable-filter \
|
||||
--enable-oversign \
|
||||
--enable-adsp_lists \
|
||||
--enable-dkim_reputation \
|
||||
--enable-identity_header \
|
||||
--enable-rate_limit \
|
||||
--enable-redirect \
|
||||
--enable-resign \
|
||||
--enable-replace_rules \
|
||||
--enable-default_sender \
|
||||
--enable-sender_macro \
|
||||
--enable-vbr \
|
||||
--disable-rpath \
|
||||
--disable-live-testing
|
||||
#$(use_enable diffheaders)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
# file collision
|
||||
rm -f "${D}"/usr/share/man/man3/ar.3
|
||||
|
||||
dosbin stats/opendkim-reportstats
|
||||
newinitd "${FILESDIR}/opendkim.init.r2" opendkim
|
||||
dodir /etc/opendkim /var/lib/opendkim
|
||||
fowners milter:milter /var/lib/opendkim
|
||||
|
||||
# default configuration
|
||||
if [ ! -f "${ROOT}"/etc/opendkim/opendkim.conf ]; then
|
||||
grep ^[^#] "${S}"/opendkim/opendkim.conf.simple \
|
||||
> "${D}"/etc/opendkim/opendkim.conf
|
||||
if use unbound; then
|
||||
echo TrustedAnchorFile /etc/dnssec/root-anchors.txt >> "${D}"/etc/opendkim/opendkim.conf
|
||||
fi
|
||||
echo UserID milter >> "${D}"/etc/opendkim/opendkim.conf
|
||||
if use berkdb; then
|
||||
echo Statistics /var/lib/opendkim/stats.dat >> \
|
||||
"${D}"/etc/opendkim/opendkim.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
use static-libs || find "${D}" -name "*.la" -delete
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you want to sign your mail messages and need some help"
|
||||
elog "please run:"
|
||||
elog " emerge --config ${CATEGORY}/${PN}"
|
||||
elog "It will help you create your key and give you hints on how"
|
||||
elog "to configure your DNS and MTA."
|
||||
|
||||
ewarn "Make sure your MTA has r/w access to the socket file."
|
||||
ewarn "This can be done either by setting UMask to 002 and adding MTA's user"
|
||||
ewarn "to milter group or you can simply set UMask to 000."
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
local selector keysize pubkey
|
||||
|
||||
read -p "Enter the selector name (default ${HOSTNAME}): " selector
|
||||
[[ -n "${selector}" ]] || selector=${HOSTNAME}
|
||||
if [[ -z "${selector}" ]]; then
|
||||
eerror "Oddly enough, you don't have a HOSTNAME."
|
||||
return 1
|
||||
fi
|
||||
if [[ -f "${ROOT}"etc/opendkim/${selector}.private ]]; then
|
||||
ewarn "The private key for this selector already exists."
|
||||
else
|
||||
einfo "Select the size of private key:"
|
||||
einfo " [1] 512 bits"
|
||||
einfo " [2] 1024 bits"
|
||||
while read -n 1 -s -p " Press 1 or 2 on the keyboard to select the key size " keysize ; do
|
||||
[[ "${keysize}" == "1" || "${keysize}" == "2" ]] && echo && break
|
||||
done
|
||||
case ${keysize} in
|
||||
1) keysize=512 ;;
|
||||
*) keysize=1024 ;;
|
||||
esac
|
||||
|
||||
# generate the private and public keys
|
||||
opendkim-genkey -b ${keysize} -D "${ROOT}"etc/opendkim/ \
|
||||
-s ${selector} -d '(your domain)' && \
|
||||
chown milter:milter \
|
||||
"${ROOT}"etc/opendkim/"${selector}".private || \
|
||||
{ eerror "Failed to create private and public keys." ; return 1; }
|
||||
chmod go-r "${ROOT}"etc/opendkim/"${selector}".private
|
||||
fi
|
||||
|
||||
# opendkim selector configuration
|
||||
echo
|
||||
einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:"
|
||||
einfo " Keyfile /etc/opendkim/${selector}.private"
|
||||
einfo " Selector ${selector}"
|
||||
|
||||
# MTA configuration
|
||||
echo
|
||||
einfo "If you are using Postfix, add following lines to your main.cf:"
|
||||
einfo " smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
|
||||
einfo " non_smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
|
||||
einfo " and read http://www.postfix.org/MILTER_README.html"
|
||||
|
||||
# DNS configuration
|
||||
einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:"
|
||||
cat "${ROOT}"etc/opendkim/${selector}.txt
|
||||
einfo "t=y signifies you only test the DKIM on your domain. See following page for the complete list of tags:"
|
||||
einfo " http://www.dkim.org/specs/rfc4871-dkimbase.html#key-text"
|
||||
einfo
|
||||
einfo "Also look at the ADSP http://tools.ietf.org/html/rfc5617"
|
||||
}
|
@ -1,202 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-filter/opendkim/opendkim-2.6.7.ebuild,v 1.1 2012/07/24 09:06:04 eras Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils db-use autotools user
|
||||
|
||||
# for betas
|
||||
#MY_P=${P/_b/.B}
|
||||
#S=${WORKDIR}/${PN}-2.0.0
|
||||
#SRC_URI="mirror://sourceforge/opendkim/${MY_P}.tar.gz"
|
||||
|
||||
DESCRIPTION="A milter-based application to provide DKIM signing and verification"
|
||||
HOMEPAGE="http://opendkim.org"
|
||||
SRC_URI="mirror://sourceforge/opendkim/${P}.tar.gz"
|
||||
|
||||
LICENSE="Sendmail-Open-Source BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="asyncdns +berkdb ldap lua opendbx poll sasl +ssl static-libs unbound"
|
||||
|
||||
# FUTURE: diffheaders (libtre error) - bug #296813
|
||||
|
||||
DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
|
||||
ssl? ( >=dev-libs/openssl-0.9.8 )
|
||||
berkdb? ( >=sys-libs/db-3.2 )
|
||||
opendbx? ( >=dev-db/opendbx-1.4.0 )
|
||||
lua? ( dev-lang/lua )
|
||||
ldap? ( net-nds/openldap )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
unbound? ( >=net-dns/unbound-1.4.1 net-dns/dnssec-root )"
|
||||
#diffheaders? ( dev-libs/tre )
|
||||
#gnutls? ( >=net-libs/gnutls-2.11.7 )
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
REQUIRED_USE="sasl? ( ldap )"
|
||||
#lua? ( berkdb )"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup milter
|
||||
# mail-milter/spamass-milter creates milter user with this home directory
|
||||
# For consistency reasons, milter user must be created here with this home directory
|
||||
# even though this package doesn't need a home directory for this user (#280571)
|
||||
enewuser milter -1 -1 /var/lib/milter milter
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's:/var/db/dkim:/etc/opendkim:g' \
|
||||
-e 's:/var/db/opendkim:/var/lib/opendkim:g' \
|
||||
-e 's:/etc/mail:/etc/opendkim:g' \
|
||||
-e 's:mailnull:milter:g' \
|
||||
-e 's:^#[[:space:]]*PidFile.*:PidFile /var/run/opendkim/opendkim.pid:' \
|
||||
opendkim/opendkim.conf.sample opendkim/opendkim.conf.simple.in \
|
||||
stats/opendkim-reportstats || die
|
||||
|
||||
sed -i -e 's:dist_doc_DATA:dist_html_DATA:' libopendkim/docs/Makefile.am \
|
||||
|| die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
if use berkdb ; then
|
||||
myconf=$(db_includedir)
|
||||
myconf="--with-db-incdir=${myconf#-I}"
|
||||
myconf+=" --enable-popauth"
|
||||
myconf+=" --enable-query_cache"
|
||||
fi
|
||||
if use asyncdns ; then
|
||||
if use unbound; then
|
||||
myconf+=" --with-unbound"
|
||||
else
|
||||
myconf+=" --enable-arlib"
|
||||
fi
|
||||
else
|
||||
myconf+=" $(use_with unbound) --disable-arlib"
|
||||
fi
|
||||
if use ldap; then
|
||||
myconf+=" $(use_with sasl)"
|
||||
fi
|
||||
econf \
|
||||
$(use_with berkdb db) \
|
||||
$(use_with opendbx odbx) \
|
||||
$(use_with lua) \
|
||||
$(use_enable lua rbl) \
|
||||
$(use_with ldap openldap) \
|
||||
$(use_enable poll) \
|
||||
$(use_enable static-libs static) \
|
||||
${myconf} \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--htmldir=/usr/share/doc/${PF}/html \
|
||||
--enable-filter \
|
||||
--enable-oversign \
|
||||
--enable-adsp_lists \
|
||||
--enable-dkim_reputation \
|
||||
--enable-identity_header \
|
||||
--enable-rate_limit \
|
||||
--enable-redirect \
|
||||
--enable-resign \
|
||||
--enable-replace_rules \
|
||||
--enable-default_sender \
|
||||
--enable-sender_macro \
|
||||
--enable-vbr \
|
||||
--disable-rpath \
|
||||
--disable-live-testing
|
||||
#$(use_enable diffheaders)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
# file collision
|
||||
rm -f "${D}"/usr/share/man/man3/ar.3
|
||||
|
||||
dosbin stats/opendkim-reportstats
|
||||
newinitd "${FILESDIR}/opendkim.init.r2" opendkim
|
||||
dodir /etc/opendkim /var/lib/opendkim
|
||||
fowners milter:milter /var/lib/opendkim
|
||||
|
||||
# default configuration
|
||||
if [ ! -f "${ROOT}"/etc/opendkim/opendkim.conf ]; then
|
||||
grep ^[^#] "${S}"/opendkim/opendkim.conf.simple \
|
||||
> "${D}"/etc/opendkim/opendkim.conf
|
||||
if use unbound; then
|
||||
echo TrustedAnchorFile /etc/dnssec/root-anchors.txt >> "${D}"/etc/opendkim/opendkim.conf
|
||||
fi
|
||||
echo UserID milter >> "${D}"/etc/opendkim/opendkim.conf
|
||||
if use berkdb; then
|
||||
echo Statistics /var/lib/opendkim/stats.dat >> \
|
||||
"${D}"/etc/opendkim/opendkim.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
use static-libs || find "${D}" -name "*.la" -delete
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you want to sign your mail messages and need some help"
|
||||
elog "please run:"
|
||||
elog " emerge --config ${CATEGORY}/${PN}"
|
||||
elog "It will help you create your key and give you hints on how"
|
||||
elog "to configure your DNS and MTA."
|
||||
|
||||
ewarn "Make sure your MTA has r/w access to the socket file."
|
||||
ewarn "This can be done either by setting UMask to 002 and adding MTA's user"
|
||||
ewarn "to milter group or you can simply set UMask to 000."
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
local selector keysize pubkey
|
||||
|
||||
read -p "Enter the selector name (default ${HOSTNAME}): " selector
|
||||
[[ -n "${selector}" ]] || selector=${HOSTNAME}
|
||||
if [[ -z "${selector}" ]]; then
|
||||
eerror "Oddly enough, you don't have a HOSTNAME."
|
||||
return 1
|
||||
fi
|
||||
if [[ -f "${ROOT}"etc/opendkim/${selector}.private ]]; then
|
||||
ewarn "The private key for this selector already exists."
|
||||
else
|
||||
einfo "Select the size of private key:"
|
||||
einfo " [1] 512 bits"
|
||||
einfo " [2] 1024 bits"
|
||||
while read -n 1 -s -p " Press 1 or 2 on the keyboard to select the key size " keysize ; do
|
||||
[[ "${keysize}" == "1" || "${keysize}" == "2" ]] && echo && break
|
||||
done
|
||||
case ${keysize} in
|
||||
1) keysize=512 ;;
|
||||
*) keysize=1024 ;;
|
||||
esac
|
||||
|
||||
# generate the private and public keys
|
||||
opendkim-genkey -b ${keysize} -D "${ROOT}"etc/opendkim/ \
|
||||
-s ${selector} -d '(your domain)' && \
|
||||
chown milter:milter \
|
||||
"${ROOT}"etc/opendkim/"${selector}".private || \
|
||||
{ eerror "Failed to create private and public keys." ; return 1; }
|
||||
chmod go-r "${ROOT}"etc/opendkim/"${selector}".private
|
||||
fi
|
||||
|
||||
# opendkim selector configuration
|
||||
echo
|
||||
einfo "Make sure you have the following settings in your /etc/opendkim/opendkim.conf:"
|
||||
einfo " Keyfile /etc/opendkim/${selector}.private"
|
||||
einfo " Selector ${selector}"
|
||||
|
||||
# MTA configuration
|
||||
echo
|
||||
einfo "If you are using Postfix, add following lines to your main.cf:"
|
||||
einfo " smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
|
||||
einfo " non_smtpd_milters = unix:/var/run/opendkim/opendkim.sock"
|
||||
einfo " and read http://www.postfix.org/MILTER_README.html"
|
||||
|
||||
# DNS configuration
|
||||
einfo "After you configured your MTA, publish your key by adding this TXT record to your domain:"
|
||||
cat "${ROOT}"etc/opendkim/${selector}.txt
|
||||
einfo "t=y signifies you only test the DKIM on your domain. See following page for the complete list of tags:"
|
||||
einfo " http://www.dkim.org/specs/rfc4871-dkimbase.html#key-text"
|
||||
einfo
|
||||
einfo "Also look at the ADSP http://tools.ietf.org/html/rfc5617"
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST spamass-milter-0.3.1.tar.bz2 116591 SHA256 d7423835af7bb9cdf97bba7f31c5bea197dc86a600133d354aa6083bf1bbd24c
|
||||
DIST spamass-milter-0.3.2.tar.bz2 125350 SHA256 ba2eb8c9e4c50307ffae38bb06444b9830695e742e9fd8c9da40953e7e1d830b SHA512 19279c53c8af738fbdd796e3aa382754474fc8c2ed17a3f857906d61740aefbd30f4759952fc1aaeff31af492fa8782363cbaac8ea1f389b4e2c1237226086d8 WHIRLPOOL e7e9df528b12a1b9b29f1ace8c2d0e7398806aac0ca148ee74f68fa0c2a86240578e36e8d20a21279159ccbef3f651ec27eb2286351f0396014ad4fce5fb6c87
|
||||
|
@ -1,15 +0,0 @@
|
||||
Do not mangle headers - bug #264304
|
||||
--- spamass-milter.cppi~ 2011-06-08 11:33:25.000000000 +0000
|
||||
+++ spamass-milter.cpp 2011-06-08 11:34:31.000000000 +0000
|
||||
@@ -1002,9 +1002,9 @@
|
||||
|
||||
assassin->output((string)
|
||||
"Received: from "+macro_s+" ("+macro__+")\r\n\t"+
|
||||
- "by "+macro_j+"("+macro_v+"/"+macro_Z+") with "+macro_r+" id "+macro_i+"\r\n\t"+
|
||||
+ "by "+macro_j+" ("+macro_v+"/"+macro_Z+") with "+macro_r+" id "+macro_i+"\r\n\t"+
|
||||
macro_b+"\r\n\t"+
|
||||
- "(envelope-from "+assassin->from()+"\r\n");
|
||||
+ "(envelope-from "+assassin->from()+")\r\n");
|
||||
|
||||
} else
|
||||
assassin->output((string)"X-Envelope-To: "+envrcpt[0]+"\r\n");
|
@ -1,220 +0,0 @@
|
||||
--- spamass-milter.cpp 2011-07-09 11:26:20.000000000 +0000
|
||||
+++ spamass-milter.cpp 2011-07-09 11:53:53.000000000 +0000
|
||||
@@ -172,10 +172,6 @@
|
||||
bool warnedmacro = false; /* have we logged that we couldn't fetch a macro? */
|
||||
bool ignore_authenticated_senders = false;
|
||||
|
||||
-#if defined(__FreeBSD__) /* popen bug - see PR bin/50770 */
|
||||
-static pthread_mutex_t popen_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
-#endif
|
||||
-
|
||||
// {{{ main()
|
||||
|
||||
int
|
||||
@@ -467,59 +463,23 @@
|
||||
send another copy. The milter API will not let you send the
|
||||
message AND return a failure code to the sender, so this is
|
||||
the only way to do it. */
|
||||
-#if defined(__FreeBSD__)
|
||||
- int rv;
|
||||
-#endif
|
||||
-
|
||||
-#if defined(HAVE_ASPRINTF)
|
||||
- char *buf;
|
||||
-#else
|
||||
- char buf[1024];
|
||||
-#endif
|
||||
- char *fmt="%s \"%s\"";
|
||||
+ char sendmail_prog[] = SENDMAIL;
|
||||
+ char *const popen_argv[] = { sendmail_prog, spambucket, NULL };
|
||||
FILE *p;
|
||||
+ pid_t pid;
|
||||
|
||||
-#if defined(HAVE_ASPRINTF)
|
||||
- asprintf(&buf, fmt, SENDMAIL, spambucket);
|
||||
-#else
|
||||
-#if defined(HAVE_SNPRINTF)
|
||||
- snprintf(buf, sizeof(buf)-1, fmt, SENDMAIL, spambucket);
|
||||
-#else
|
||||
- /* XXX possible buffer overflow here */
|
||||
- sprintf(buf, fmt, SENDMAIL, spambucket);
|
||||
-#endif
|
||||
-#endif
|
||||
-
|
||||
- debug(D_COPY, "calling %s", buf);
|
||||
-#if defined(__FreeBSD__) /* popen bug - see PR bin/50770 */
|
||||
- rv = pthread_mutex_lock(&popen_mutex);
|
||||
- if (rv)
|
||||
- {
|
||||
- debug(D_ALWAYS, "Could not lock popen mutex: %s", strerror(rv));
|
||||
- abort();
|
||||
- }
|
||||
-#endif
|
||||
- p = popen(buf, "w");
|
||||
+ debug(D_COPY, "calling %s %s", SENDMAIL, spambucket);
|
||||
+ p = popenv(popen_argv, "w", &pid);
|
||||
if (!p)
|
||||
{
|
||||
- debug(D_COPY, "popen failed(%s). Will not send a copy to spambucket", strerror(errno));
|
||||
+ debug(D_COPY, "popenv failed(%s). Will not send a copy to spambucket", strerror(errno));
|
||||
} else
|
||||
{
|
||||
// Send message provided by SpamAssassin
|
||||
fwrite(assassin->d().c_str(), assassin->d().size(), 1, p);
|
||||
- pclose(p); p = NULL;
|
||||
+ fclose(p); p = NULL;
|
||||
+ waitpid(pid, NULL, 0);
|
||||
}
|
||||
-#if defined(__FreeBSD__)
|
||||
- rv = pthread_mutex_unlock(&popen_mutex);
|
||||
- if (rv)
|
||||
- {
|
||||
- debug(D_ALWAYS, "Could not unlock popen mutex: %s", strerror(rv));
|
||||
- abort();
|
||||
- }
|
||||
-#endif
|
||||
-#if defined(HAVE_ASPRINTF)
|
||||
- free(buf);
|
||||
-#endif
|
||||
}
|
||||
return SMFIS_REJECT;
|
||||
}
|
||||
@@ -864,30 +824,17 @@
|
||||
/* open a pipe to sendmail so we can do address expansion */
|
||||
|
||||
char buf[1024];
|
||||
- char *fmt="%s -bv \"%s\" 2>&1";
|
||||
-
|
||||
-#if defined(HAVE_SNPRINTF)
|
||||
- snprintf(buf, sizeof(buf)-1, fmt, SENDMAIL, envrcpt[0]);
|
||||
-#else
|
||||
- /* XXX possible buffer overflow here */
|
||||
- sprintf(buf, fmt, SENDMAIL, envrcpt[0]);
|
||||
-#endif
|
||||
-
|
||||
- debug(D_RCPT, "calling %s", buf);
|
||||
+ char sendmail_prog[] = SENDMAIL;
|
||||
+ char sendmail_mode[] = "-bv";
|
||||
+ char * const popen_argv[] = { sendmail_prog, sendmail_mode, envrcpt[0], NULL };
|
||||
+ pid_t pid;
|
||||
|
||||
-#if defined(__FreeBSD__) /* popen bug - see PR bin/50770 */
|
||||
- rv = pthread_mutex_lock(&popen_mutex);
|
||||
- if (rv)
|
||||
- {
|
||||
- debug(D_ALWAYS, "Could not lock popen mutex: %s", strerror(rv));
|
||||
- abort();
|
||||
- }
|
||||
-#endif
|
||||
+ debug(D_RCPT, "calling %s -bv %s", SENDMAIL, envrcpt[0]);
|
||||
|
||||
- p = popen(buf, "r");
|
||||
+ p = popenv(popen_argv, "r", &pid);
|
||||
if (!p)
|
||||
{
|
||||
- debug(D_RCPT, "popen failed(%s). Will not expand aliases", strerror(errno));
|
||||
+ debug(D_RCPT, "popenv failed(%s). Will not expand aliases", strerror(errno));
|
||||
assassin->expandedrcpt.push_back(envrcpt[0]);
|
||||
} else
|
||||
{
|
||||
@@ -912,16 +859,9 @@
|
||||
assassin->expandedrcpt.push_back(p+7);
|
||||
}
|
||||
}
|
||||
- pclose(p); p = NULL;
|
||||
+ fclose(p); p = NULL;
|
||||
+ waitpid(pid, NULL, 0);
|
||||
}
|
||||
-#if defined(__FreeBSD__)
|
||||
- rv = pthread_mutex_unlock(&popen_mutex);
|
||||
- if (rv)
|
||||
- {
|
||||
- debug(D_ALWAYS, "Could not unlock popen mutex: %s", strerror(rv));
|
||||
- abort();
|
||||
- }
|
||||
-#endif
|
||||
} else
|
||||
{
|
||||
assassin->expandedrcpt.push_back(envrcpt[0]);
|
||||
@@ -2179,5 +2119,72 @@
|
||||
warnedmacro = true;
|
||||
}
|
||||
|
||||
+/*
|
||||
+ untrusted-argument-safe popen function - only supports "r" and "w" modes
|
||||
+ for simplicity, and always reads stdout and stderr in "r" mode. Call
|
||||
+ fclose to close the FILE, and waitpid to reap the child process (pid).
|
||||
+*/
|
||||
+FILE *popenv(char *const argv[], const char *type, pid_t *pid)
|
||||
+{
|
||||
+ FILE *iop;
|
||||
+ int pdes[2];
|
||||
+ int save_errno;
|
||||
+
|
||||
+ if ((*type != 'r' && *type != 'w') || type[1])
|
||||
+ {
|
||||
+ errno = EINVAL;
|
||||
+ return (NULL);
|
||||
+ }
|
||||
+ if (pipe(pdes) < 0)
|
||||
+ return (NULL);
|
||||
+ switch (*pid = fork()) {
|
||||
+
|
||||
+ case -1: /* Error. */
|
||||
+ save_errno = errno;
|
||||
+ (void)close(pdes[0]);
|
||||
+ (void)close(pdes[1]);
|
||||
+ errno = save_errno;
|
||||
+ return (NULL);
|
||||
+ /* NOTREACHED */
|
||||
+ case 0: /* Child. */
|
||||
+ if (*type == 'r') {
|
||||
+ /*
|
||||
+ * The dup2() to STDIN_FILENO is repeated to avoid
|
||||
+ * writing to pdes[1], which might corrupt the
|
||||
+ * parent's copy. This isn't good enough in
|
||||
+ * general, since the exit() is no return, so
|
||||
+ * the compiler is free to corrupt all the local
|
||||
+ * variables.
|
||||
+ */
|
||||
+ (void)close(pdes[0]);
|
||||
+ (void)dup2(pdes[1], STDOUT_FILENO);
|
||||
+ (void)dup2(pdes[1], STDERR_FILENO);
|
||||
+ if (pdes[1] != STDOUT_FILENO && pdes[1] != STDERR_FILENO) {
|
||||
+ (void)close(pdes[1]);
|
||||
+ }
|
||||
+ } else {
|
||||
+ if (pdes[0] != STDIN_FILENO) {
|
||||
+ (void)dup2(pdes[0], STDIN_FILENO);
|
||||
+ (void)close(pdes[0]);
|
||||
+ }
|
||||
+ (void)close(pdes[1]);
|
||||
+ }
|
||||
+ execv(argv[0], argv);
|
||||
+ exit(127);
|
||||
+ /* NOTREACHED */
|
||||
+ }
|
||||
+
|
||||
+ /* Parent; assume fdopen can't fail. */
|
||||
+ if (*type == 'r') {
|
||||
+ iop = fdopen(pdes[0], type);
|
||||
+ (void)close(pdes[1]);
|
||||
+ } else {
|
||||
+ iop = fdopen(pdes[1], type);
|
||||
+ (void)close(pdes[0]);
|
||||
+ }
|
||||
+
|
||||
+ return (iop);
|
||||
+}
|
||||
+
|
||||
// }}}
|
||||
// vim6:ai:noexpandtab
|
||||
--- spamass-milter.h 2011-07-09 11:55:14.000000000 +0000
|
||||
+++ spamass-milter.h 2011-07-09 11:56:02.000000000 +0000
|
||||
@@ -186,5 +186,6 @@
|
||||
void parse_debuglevel(char* string);
|
||||
char *strlwr(char *str);
|
||||
void warnmacro(char *macro, char *scope);
|
||||
+FILE *popenv(char *const argv[], const char *type, pid_t *pid);
|
||||
|
||||
#endif
|
@ -1,38 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2006 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamass-milter/files/spamass-milter.rc3,v 1.1 2008/06/15 09:28:02 dertobi123 Exp $
|
||||
|
||||
depend() {
|
||||
need net spamd
|
||||
use logger
|
||||
before mta
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting spamass-milter"
|
||||
start-stop-daemon --start --quiet --pidfile ${PIDFILE} -c ${SOCKET_USER:-milter}:${SOCKET_GROUP:-milter} \
|
||||
--exec ${DAEMON} -- -P ${PIDFILE} -p ${SOCKET} -f ${OPTIONS}
|
||||
eend $? "Failed to start ${DAEMON}"
|
||||
for ((spamass_timeout=0 ; spamass_timeout <= 20 ; spamass_timeout++))
|
||||
do
|
||||
if [ ! -S "${SOCKET}" -o ! -r "${SOCKET}" ]
|
||||
then
|
||||
sleep 1
|
||||
else
|
||||
break
|
||||
fi
|
||||
done
|
||||
chown ${SOCKET_USER:-milter}:${SOCKET_GROUP:-milter} ${SOCKET} 1>/dev/null 2>&1
|
||||
chmod ${SOCKET_MODE:-664} ${SOCKET} 1>/dev/null 2>&1
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping spamass-milter"
|
||||
start-stop-daemon --stop --quiet --pidfile ${PIDFILE} &&
|
||||
{
|
||||
sleep 5
|
||||
rm -f ${SOCKET}
|
||||
}
|
||||
eend $? "Failed to stop ${DAEMON}"
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamass-milter/spamass-milter-0.3.1-r5.ebuild,v 1.3 2012/06/05 00:06:47 zmedico Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils user
|
||||
|
||||
IUSE=""
|
||||
|
||||
DESCRIPTION="A milter for SpamAssassin"
|
||||
HOMEPAGE="http://savannah.nongnu.org/projects/spamass-milt/"
|
||||
SRC_URI="http://savannah.nongnu.org/download/spamass-milt/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc x86"
|
||||
|
||||
DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
|
||||
>=mail-filter/spamassassin-3.1.0"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup milter
|
||||
enewuser milter -1 -1 /var/lib/milter milter
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-header.patch
|
||||
epatch "${FILESDIR}"/${PN}-auth_users.patch
|
||||
epatch "${FILESDIR}"/${PN}-popen-r1.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
newinitd "${FILESDIR}"/spamass-milter.rc3 spamass-milter
|
||||
newconfd "${FILESDIR}"/spamass-milter.conf3 spamass-milter
|
||||
dodir /var/run/milter
|
||||
keepdir /var/run/milter
|
||||
fowners milter:milter /var/run/milter
|
||||
dodir /var/lib/milter
|
||||
keepdir /var/lib/milter
|
||||
fowners milter:milter /var/lib/milter
|
||||
|
||||
dodoc AUTHORS NEWS README ChangeLog "${FILESDIR}/README.gentoo"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Documentation is installed in /usr/share/doc/${P}"
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.10_pre20121031.ebuild,v 1.2 2012/11/06 11:19:44 eras Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.10_pre20121123.ebuild,v 1.1 2012/11/27 19:59:36 eras Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam user versionator
|
@ -1,2 +1 @@
|
||||
DIST cmt_src_1.15.tgz 61522 SHA256 0b814938040c7403dd24367b1dbbf0b0db7ac11df7447129e9c1b7f33890b1e9 SHA512 b4d8983242ac81dd620d30270563ca403b35cab69d32186963c482d6c0de89b2b1bba4f54d66a2b53a34299b96e5004ae1eeadda79956f1c51f46848d2a05207 WHIRLPOOL 45c070d7ff8dd863518d08c94897391cae78cabe9673a7f58cb7f6b33ea722d67aa4ef23d81d33962af0ec7f4de85ab66c893dbab25531c3c76adb3b5b1b4296
|
||||
DIST cmt_src_1.16.tgz 63909 SHA256 512a1d7e698b9e0e7c692202c29f4bd70846d52241ec254e1a324abaef405635 SHA512 be4aaa064183b6121b4ca8d7d2535cb9a3bcb557e3a2f22b45ec9775b0e296f70a9a7edf697b78095d6ef1564bb5459bb742649082ac724d1774c0790379af21 WHIRLPOOL 7daeaf8dfc30c1acb6b9387fe96ac55121f136c355c7cb0d48d402ac8c9ea2fcabf6f3d436ed009c65d9cafcedab2ed705204ef34e7f4a24dbcdca0054cbc0d8
|
||||
|
@ -0,0 +1,14 @@
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=334711
|
||||
|
||||
--- cmt/src/makefile.old 2010-09-13 16:43:26.000000000 +0100
|
||||
+++ cmt/src/makefile 2010-09-13 16:45:08.000000000 +0100
|
||||
@@ -66,7 +66,8 @@
|
||||
targets: $(PLUGIN_LIB)
|
||||
|
||||
$(PLUGIN_LIB): $(PLUGIN_OBJECTS)
|
||||
- $(CXX) -shared \
|
||||
+ $(CXX) $(LDFLAGS) \
|
||||
+ -shared \
|
||||
-o $(PLUGIN_LIB) \
|
||||
$(PLUGIN_OBJECTS)
|
||||
|
@ -0,0 +1,18 @@
|
||||
Fix strict aliasing warnings: reeverb/Components/allpass.h:36:2: warning:
|
||||
dereferencing type-punned pointer will break strict-aliasing rules
|
||||
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=307563
|
||||
|
||||
Index: cmt/src/freeverb/Components/denormals.h
|
||||
===================================================================
|
||||
--- cmt.orig/src/freeverb/Components/denormals.h
|
||||
+++ cmt/src/freeverb/Components/denormals.h
|
||||
@@ -8,7 +8,7 @@
|
||||
#ifndef _denormals_
|
||||
#define _denormals_
|
||||
|
||||
-#define undenormalise(sample) if(((*(unsigned int*)&sample)&0x7f800000)==0) sample=0.0f
|
||||
+#define undenormalise(sample) if((((unsigned int)sample)&0x7f800000)==0) sample=0.0f
|
||||
|
||||
#endif//_denormals_
|
||||
|
@ -1,84 +0,0 @@
|
||||
diff -u src-org/analogue.cpp src/analogue.cpp
|
||||
--- src-org/analogue.cpp Thu Oct 28 19:22:56 2004
|
||||
+++ src/analogue.cpp Thu Oct 28 19:24:43 2004
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
-#include <malloc.h>
|
||||
+#include <unistd.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include "cmt.h"
|
||||
diff -u src-org/canyondelay.cpp src/canyondelay.cpp
|
||||
--- src-org/canyondelay.cpp Thu Oct 28 19:22:56 2004
|
||||
+++ src/canyondelay.cpp Thu Oct 28 19:24:43 2004
|
||||
@@ -25,7 +25,7 @@
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
-#include <malloc.h>
|
||||
+#include <unistd.h>
|
||||
#include <math.h>
|
||||
#include "cmt.h"
|
||||
|
||||
Common subdirectories: src-org/freeverb and src/freeverb
|
||||
diff -u src-org/lofi.cpp src/lofi.cpp
|
||||
--- src-org/lofi.cpp Thu Oct 28 19:22:56 2004
|
||||
+++ src/lofi.cpp Thu Oct 28 19:24:43 2004
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
-#include <malloc.h>
|
||||
+#include <unistd.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include "cmt.h"
|
||||
diff -u src-org/makefile src/makefile
|
||||
--- src-org/makefile Thu Oct 28 19:22:56 2004
|
||||
+++ src/makefile Thu Oct 28 19:28:16 2004
|
||||
@@ -68,7 +68,7 @@
|
||||
targets: $(PLUGIN_LIB)
|
||||
|
||||
$(PLUGIN_LIB): $(PLUGIN_OBJECTS)
|
||||
- $(CXX) -shared \
|
||||
+ $(CXX) -dynamiclib -ldl \
|
||||
-o $(PLUGIN_LIB) \
|
||||
$(PLUGIN_OBJECTS)
|
||||
|
||||
--- src-org/phasemod.cpp Thu Oct 28 19:22:56 2004
|
||||
+++ src/phasemod.cpp Thu Oct 28 19:24:43 2004
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
-#include <malloc.h>
|
||||
+#include <unistd.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include "cmt.h"
|
||||
diff -u src-org/syndrum.cpp src/syndrum.cpp
|
||||
--- src-org/syndrum.cpp Thu Oct 28 19:22:56 2004
|
||||
+++ src/syndrum.cpp Thu Oct 28 19:24:43 2004
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
-#include <malloc.h>
|
||||
+#include <unistd.h>
|
||||
#include <math.h>
|
||||
#include "cmt.h"
|
||||
|
||||
diff -u src-org/vcf303.cpp src/vcf303.cpp
|
||||
--- src-org/vcf303.cpp Thu Oct 28 19:22:56 2004
|
||||
+++ src/vcf303.cpp Thu Oct 28 19:24:43 2004
|
||||
@@ -26,7 +26,7 @@
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
-#include <malloc.h>
|
||||
+#include <unistd.h>
|
||||
#include <math.h>
|
||||
#include "cmt.h"
|
||||
|
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/ladspa-cmt/ladspa-cmt-1.16-r2.ebuild,v 1.1 2012/11/27 12:08:45 aballier Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils multilib toolchain-funcs
|
||||
|
||||
IUSE=""
|
||||
|
||||
S="${WORKDIR}/cmt/src"
|
||||
MY_P="cmt_src_${PV}"
|
||||
|
||||
DESCRIPTION="CMT (computer music toolkit) Lasdpa library plugins"
|
||||
HOMEPAGE="http://www.ladspa.org/"
|
||||
SRC_URI="http://www.ladspa.org/download/${MY_P}.tgz"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="media-libs/ladspa-sdk
|
||||
>=sys-apps/sed-4"
|
||||
RDEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e "/^CFLAGS/ s/-O3/${CFLAGS}/" \
|
||||
-e 's|/usr/local/include||g' \
|
||||
-e 's|/usr/local/lib||g' makefile \
|
||||
|| die "sed makefile failed"
|
||||
sed -i -e "s/^CXXFLAGS*/CXXFLAGS = ${CXXFLAGS} \$(INCLUDES) -Wall -fPIC\n#/" \
|
||||
"${S}/makefile" || die "sed makefile failed (CXXFLAGS)"
|
||||
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}/${P}-mallocstdlib.patch"
|
||||
epatch "${FILESDIR}/${P}-respect-ldflags.patch"
|
||||
epatch "${FILESDIR}/${P}-sa.patch"
|
||||
use userland_Darwin && epatch "${FILESDIR}/${P}-darwin.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CXX
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/ladspa/rdf/
|
||||
doins "${FILESDIR}/cmt.rdf"
|
||||
|
||||
insopts -m755
|
||||
insinto /usr/$(get_libdir)/ladspa
|
||||
doins ../plugins/*.so
|
||||
|
||||
dodoc ../README
|
||||
dohtml ../doc/*
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=437018
|
||||
|
||||
Index: ZynAddSubFX-2.4.3/src/main.cpp
|
||||
===================================================================
|
||||
--- ZynAddSubFX-2.4.3.orig/src/main.cpp
|
||||
+++ ZynAddSubFX-2.4.3/src/main.cpp
|
||||
@@ -37,8 +37,6 @@
|
||||
#include "Misc/Dump.h"
|
||||
extern Dump dump;
|
||||
|
||||
-#include <FL/Fl.H>
|
||||
-
|
||||
//Nio System
|
||||
#include "Nio/Nio.h"
|
||||
|
||||
@@ -51,6 +49,8 @@ QApplication *app;
|
||||
|
||||
#elif defined FLTK_GUI
|
||||
|
||||
+#include <FL/Fl.H>
|
||||
+
|
||||
#include "UI/MasterUI.h"
|
||||
#endif // FLTK_GUI
|
||||
|
@ -1 +1 @@
|
||||
Tue, 27 Nov 2012 10:36:52 +0000
|
||||
Tue, 27 Nov 2012 21:36:51 +0000
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue