Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 91212 Details for
Bug 112261
policyd - a policy deamon for postfix (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
1.79
policyd-1.79.ebuild (text/plain), 2.52 KB, created by
Benny Pedersen
on 2006-07-08 09:26:05 UTC
(
hide
)
Description:
1.79
Filename:
MIME Type:
Creator:
Benny Pedersen
Created:
2006-07-08 09:26:05 UTC
Size:
2.52 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils > >DESCRIPTION="Policyd daemon for postfix" >HOMEPAGE="http://policyd.sf.net/" >SRC_URI="http://policyd.sourceforge.net/${PN}-v${PV}.tar.gz mirror://sourceforge/${PN}/${PN}-v${PV}.tar.gz" >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="x86 amd64" >IUSE="" >DEPEND=">=mail-mta/postfix-2.1.5 > >=dev-db/mysql-4.0.24 > >=dev-libs/openssl-0.9.7e-r1" > >S=${WORKDIR}/${PN}-v${PV} > >src_unpack() { > unpack ${A} > cd ${S} > # epatch ${FILESDIR}/${PV}-Makefile.patch || die "epatch Makefile.patch failed" > # cp ${FILESDIR}/${PV}-Makefile_new Makefile >} > >src_compile() { > cd ${S} > # sanitice them a little since we run on high ports root access is not needed > sed -i -e s/UID=0/UID=65534/ -e s/GID=0/GID=65534/ -e s/DAEMON=0/DAEMON=1/ -e s/DEBUG=3/DEBUG=0/ -e s/DATABASE_KEEPALIVE=0/DATABASE_KEEPALIVE=1/ policyd.conf > # change default makefile to use 1024 FDS > sed -i -e s/MAXFDS=4096/MAXFDS=1024/ Makefile > # emake build || die "emake failed" > emake policyd_start || die "emake start failed" > emake policyd || die "emake policyd failed" > emake cleanup || die "emake cleanup failed" > emake stats || die "emake stats failed" >} > >src_install() { > # ups wee run as nobody so lets give that permission :-) > insopts -o root -g nobody -m 0770 > dosbin policyd cleanup stats > > insinto /etc > # same here as nobody we need to have read access on group > insopts -o root -g nobody -m 0640 > doins policyd.conf > > exeinto /etc/cron.hourly > # only root runs crons here > insopts -o root -g nobody -m 0700 > newexe ${FILESDIR}/${PN}.gentoo.cron ${PN}.cron > > exeinto /etc/cron.daily > # same for this one > insopts -o root -g nobody -m 0700 > newexe ${FILESDIR}/${PN}-stats.cron ${PN}.stats.cron > > # we use the sql files under config > # dodoc Changelog.txt DATABASE.mysql License.txt README.txt doc/support.txt doc/blacklist_helo.sql doc/whitelist.sql > dodoc Changelog.txt DATABASE.mysql License.txt README.txt doc/support.txt > newinitd ${FILESDIR}/${PN}.gentoo.init ${PN} >} > >pkg_postinst() { > einfo "To make use of policyd, please update your postfix config:" > einfo "Add \"check_policy_service inet:127.0.0.1:10031\" to" > einfo "smtpd_recipient restrictions setting in your /etc/postfix/main.cf" > einfo "and restart postfix." > einfo "Also remember to make the daemon start durig system boot:" > einfo " rc-update add policyd default" > ewarn "Read the documentation for more info." > einfo "Follow the maillist please." >} > ># ># pkg_config should configure mysql ># steel the ideer from dspam ebuild :-) >#
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 112261
:
73363
|
77157
|
77158
|
77160
|
77161
|
78763
|
78764
|
78766
|
78770
|
78771
|
81669
|
81670
|
88629
|
91212
|
91977
|
91978
|
95874
|
95875
|
95876
|
95878
|
95879
|
95960
|
97921
|
97922
|
97923
|
97924
|
100205