* [gentoo-commits] repo/gentoo:master commit in: mail-filter/policyd/
@ 2021-02-14 10:36 David Seifert
0 siblings, 0 replies; 9+ messages in thread
From: David Seifert @ 2021-02-14 10:36 UTC (permalink / raw
To: gentoo-commits
commit: 0410c0ed2b65ca36f40a630d7f84f01a5a7681af
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Sun Feb 14 10:32:45 2021 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Feb 14 10:32:45 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0410c0ed
mail-filter/policyd: Apply gcc-10 workaround, drop libressl support
* Dead upstream, patching requires bigger code rewrite
Closes: https://bugs.gentoo.org/708060
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>
mail-filter/policyd/metadata.xml | 8 ++--
...licyd-1.82-r3.ebuild => policyd-1.82-r4.ebuild} | 49 ++++++++++++----------
2 files changed, 30 insertions(+), 27 deletions(-)
diff --git a/mail-filter/policyd/metadata.xml b/mail-filter/policyd/metadata.xml
index e38074e8002..99c804e9dc6 100644
--- a/mail-filter/policyd/metadata.xml
+++ b/mail-filter/policyd/metadata.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
- <upstream>
- <remote-id type="sourceforge">policyd</remote-id>
- </upstream>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">policyd</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/mail-filter/policyd/policyd-1.82-r3.ebuild b/mail-filter/policyd/policyd-1.82-r4.ebuild
similarity index 64%
rename from mail-filter/policyd/policyd-1.82-r3.ebuild
rename to mail-filter/policyd/policyd-1.82-r4.ebuild
index 1fc4a90aaed..ff0daf33992 100644
--- a/mail-filter/policyd/policyd-1.82-r3.ebuild
+++ b/mail-filter/policyd/policyd-1.82-r4.ebuild
@@ -1,41 +1,44 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="7"
+EAPI=7
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
DESCRIPTION="Policy daemon for postfix and other MTAs"
HOMEPAGE="http://policyd.sf.net/"
-
-# This is not available through SF mirrors
SRC_URI="http://policyd.sourceforge.net/${P}.tar.gz"
+
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~hppa x86"
-IUSE="libressl"
-DEPEND="dev-db/mysql-connector-c:0=
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( dev-libs/libressl:= )"
+
+DEPEND="
+ dev-db/mysql-connector-c:0=
+ dev-libs/openssl:0="
RDEPEND="${DEPEND}"
PATCHES=(
- "${FILESDIR}/${PN}-post182.patch"
- "${FILESDIR}/${PN}-makefile.patch"
+ "${FILESDIR}"/${PN}-post182.patch
+ "${FILESDIR}"/${PN}-makefile.patch
)
src_prepare() {
default
sed -i -e 's/@${CC}/${CC}/' -e 's/@$(CC)/$(CC)/' Makefile
- ebegin "Applying config patches"
+ # config patches
sed -i -e s:UID=0:UID=65534:g \
- -e s:GID=0:GID=65534:g \
- -e s:DAEMON=0:DAEMON=1:g \
- -e s:DEBUG=3:DEBUG=0:g \
- -e s:DATABASE_KEEPALIVE=0:DATABASE_KEEPALIVE=1:g \
- policyd.conf || die "sed failed"
- eend
+ -e s:GID=0:GID=65534:g \
+ -e s:DAEMON=0:DAEMON=1:g \
+ -e s:DEBUG=3:DEBUG=0:g \
+ -e s:DATABASE_KEEPALIVE=0:DATABASE_KEEPALIVE=1:g \
+ policyd.conf || die
+}
+
+src_configure() {
+ append-cflags -fcommon
+ default
}
src_compile() {
@@ -44,8 +47,8 @@ src_compile() {
src_install() {
insopts -o root -g nobody -m 0750
- mv cleanup policyd_cleanup
- mv stats policyd_stats
+ mv cleanup policyd_cleanup || die
+ mv stats policyd_stats || die
dosbin policyd policyd_cleanup policyd_stats
@@ -55,12 +58,12 @@ src_install() {
insopts -o root -g nobody -m 0700
exeinto /etc/cron.hourly
- newexe "${FILESDIR}/${PN}-cleanup.cron" ${PN}-cleanup.cron
+ newexe "${FILESDIR}"/${PN}-cleanup.cron ${PN}-cleanup.cron
dodoc ChangeLog DATABASE.mysql README doc/support.txt
- newinitd "${FILESDIR}/${PN}.rc" ${PN}
- newconfd "${FILESDIR}/${PN}.confd" ${PN}
+ newinitd "${FILESDIR}"/${PN}.rc policyd
+ newconfd "${FILESDIR}"/${PN}.confd policyd
}
pkg_postinst() {
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: mail-filter/policyd/
@ 2022-07-29 6:47 Sam James
0 siblings, 0 replies; 9+ messages in thread
From: Sam James @ 2022-07-29 6:47 UTC (permalink / raw
To: gentoo-commits
commit: d19ab2a566961cd3d1e430c6b930a5da922f506b
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Fri Jul 29 05:28:53 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 29 06:47:46 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d19ab2a5
mail-filter/policyd: update HOMEPAGE, fix SRC_URI, LICENSE
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Portage 3.0.34 / pkgdev 0.2.1 / pkgcheck 0.10.11
Closes: https://github.com/gentoo/gentoo/pull/26643
Signed-off-by: Sam James <sam <AT> gentoo.org>
mail-filter/policyd/policyd-1.82-r4.ebuild | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mail-filter/policyd/policyd-1.82-r4.ebuild b/mail-filter/policyd/policyd-1.82-r4.ebuild
index fdf57b2112b7..c4c0e75853d5 100644
--- a/mail-filter/policyd/policyd-1.82-r4.ebuild
+++ b/mail-filter/policyd/policyd-1.82-r4.ebuild
@@ -6,10 +6,10 @@ EAPI=7
inherit flag-o-matic toolchain-funcs
DESCRIPTION="Policy daemon for postfix and other MTAs"
-HOMEPAGE="http://policyd.sf.net/"
-SRC_URI="http://policyd.sourceforge.net/${P}.tar.gz"
+HOMEPAGE="https://wiki.policyd.org"
+SRC_URI="https://download.policyd.org/v1.82/${P}.tar.gz"
-LICENSE="GPL-2"
+LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~hppa x86"
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: mail-filter/policyd/
@ 2022-03-20 0:16 Sam James
0 siblings, 0 replies; 9+ messages in thread
From: Sam James @ 2022-03-20 0:16 UTC (permalink / raw
To: gentoo-commits
commit: ef265e16006f2553ec5db1baba5303f7707bab05
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 20 00:09:11 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 20 00:09:11 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef265e16
mail-filter/policyd: [QA] fix tc-get* quoting
This can cause build problems for e.g. 32-bit (gcc -m32 ...)
Signed-off-by: Sam James <sam <AT> gentoo.org>
mail-filter/policyd/policyd-1.82-r4.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mail-filter/policyd/policyd-1.82-r4.ebuild b/mail-filter/policyd/policyd-1.82-r4.ebuild
index ff0daf33992c..fdf57b2112b7 100644
--- a/mail-filter/policyd/policyd-1.82-r4.ebuild
+++ b/mail-filter/policyd/policyd-1.82-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -42,7 +42,7 @@ src_configure() {
}
src_compile() {
- emake CC=$(tc-getCC) build
+ emake CC="$(tc-getCC)" build
}
src_install() {
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: mail-filter/policyd/
@ 2019-10-07 9:09 Michał Górny
0 siblings, 0 replies; 9+ messages in thread
From: Michał Górny @ 2019-10-07 9:09 UTC (permalink / raw
To: gentoo-commits
commit: e58fb19e5f23518463339c1106bf3d28a93ebca5
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 7 09:05:17 2019 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Oct 7 09:09:24 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e58fb19e
mail-filter/policyd: Drop old (EAPI=0)
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
mail-filter/policyd/policyd-1.82-r1.ebuild | 76 ------------------------------
1 file changed, 76 deletions(-)
diff --git a/mail-filter/policyd/policyd-1.82-r1.ebuild b/mail-filter/policyd/policyd-1.82-r1.ebuild
deleted file mode 100644
index ab88aeb093e..00000000000
--- a/mail-filter/policyd/policyd-1.82-r1.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=0
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Policy daemon for postfix and other MTAs"
-HOMEPAGE="http://policyd.sf.net/"
-
-# This is not available through SF mirrors
-SRC_URI="http://policyd.sourceforge.net/${P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~hppa x86"
-IUSE=""
-DEPEND="virtual/mysql
- dev-libs/openssl"
-RDEPEND="${DEPEND}"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/${PN}-post182.patch"
- epatch "${FILESDIR}/${PN}-makefile.patch"
- sed -i -e "s/gcc/$(tc-getCC)/" Makefile
-
- ebegin "Applying config patches"
- sed -i -e s:UID=0:UID=65534:g \
- -e s:GID=0:GID=65534:g \
- -e s:DAEMON=0:DAEMON=1:g \
- -e s:DEBUG=3:DEBUG=0:g \
- -e s:DATABASE_KEEPALIVE=0:DATABASE_KEEPALIVE=1:g \
- policyd.conf || die "sed failed"
- eend
-}
-
-src_compile() {
- emake build || die "emake build failed"
-}
-
-src_install() {
- insopts -o root -g nobody -m 0750
- mv cleanup policyd_cleanup
- mv stats policyd_stats
-
- dosbin policyd policyd_cleanup policyd_stats
-
- insopts -o root -g nobody -m 0640
- insinto /etc
- doins policyd.conf
-
- insopts -o root -g nobody -m 0700
- exeinto /etc/cron.hourly
- newexe "${FILESDIR}/${PN}-cleanup.cron" ${PN}-cleanup.cron
-
- dodoc ChangeLog DATABASE.mysql README doc/support.txt
-
- newinitd "${FILESDIR}/${PN}.rc" ${PN}
- newconfd "${FILESDIR}/${PN}.confd" ${PN}
-}
-
-pkg_postinst() {
- elog "You will need to create the database using the script DATABASE.mysql"
- elog "in /usr/share/doc/${PF}/"
- elog "Read the mysql section of the README.txt for details."
- elog
- elog "To use policyd with postfix, update your /etc/postfix/main.cf file by adding"
- elog " check_policy_service inet:127.0.0.1:10031"
- elog "to your smtpd_recipient_restrictions line, or similar."
- elog
- elog "Also remember to start the daemon at boot:"
- elog " rc-update add policyd default"
- elog
- elog "Read the documentation for more info."
-}
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: mail-filter/policyd/
@ 2019-10-07 8:59 Agostino Sarubbo
0 siblings, 0 replies; 9+ messages in thread
From: Agostino Sarubbo @ 2019-10-07 8:59 UTC (permalink / raw
To: gentoo-commits
commit: 35d623a4bca8661f18634da3d3aa07b66d6caadf
Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 7 08:58:13 2019 +0000
Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Mon Oct 7 08:58:13 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35d623a4
mail-filter/policyd: x86 stable wrt bug #696306
Package-Manager: Portage-2.3.76, Repoman-2.3.16
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>
mail-filter/policyd/policyd-1.82-r3.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mail-filter/policyd/policyd-1.82-r3.ebuild b/mail-filter/policyd/policyd-1.82-r3.ebuild
index 4a174e4fc73..1fc4a90aaed 100644
--- a/mail-filter/policyd/policyd-1.82-r3.ebuild
+++ b/mail-filter/policyd/policyd-1.82-r3.ebuild
@@ -12,7 +12,7 @@ HOMEPAGE="http://policyd.sf.net/"
SRC_URI="http://policyd.sourceforge.net/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="amd64 ~hppa ~x86"
+KEYWORDS="amd64 ~hppa x86"
IUSE="libressl"
DEPEND="dev-db/mysql-connector-c:0=
!libressl? ( dev-libs/openssl:0= )
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: mail-filter/policyd/
@ 2019-02-13 15:14 Brian Evans
0 siblings, 0 replies; 9+ messages in thread
From: Brian Evans @ 2019-02-13 15:14 UTC (permalink / raw
To: gentoo-commits
commit: 5412d11adaa4a0862e6ab5228f76c6ce9484297e
Author: Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 13 15:13:49 2019 +0000
Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Wed Feb 13 15:13:49 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5412d11a
mail-filter/policyd: Update dependency, EAPI and make verbose
Non-maintainer commit
Bug: https://bugs.gentoo.org/665916
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
.../{policyd-1.82-r2.ebuild => policyd-1.82-r3.ebuild} | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/mail-filter/policyd/policyd-1.82-r2.ebuild b/mail-filter/policyd/policyd-1.82-r3.ebuild
similarity index 87%
rename from mail-filter/policyd/policyd-1.82-r2.ebuild
rename to mail-filter/policyd/policyd-1.82-r3.ebuild
index 1e145672a00..0d1be22af1b 100644
--- a/mail-filter/policyd/policyd-1.82-r2.ebuild
+++ b/mail-filter/policyd/policyd-1.82-r3.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI="7"
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
DESCRIPTION="Policy daemon for postfix and other MTAs"
HOMEPAGE="http://policyd.sf.net/"
@@ -14,15 +14,19 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~x86"
IUSE="libressl"
-DEPEND="virtual/mysql
+DEPEND="dev-db/mysql-connector-c:0=
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:= )"
RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}/${PN}-post182.patch"
+ "${FILESDIR}/${PN}-makefile.patch"
+)
+
src_prepare() {
- epatch "${FILESDIR}/${PN}-post182.patch"
- epatch "${FILESDIR}/${PN}-makefile.patch"
- sed -i -e "s/gcc/$(tc-getCC)/" Makefile
+ default
+ sed -i -e 's/@${CC}/${CC}/' -e 's/@$(CC)/$(CC)/' Makefile
ebegin "Applying config patches"
sed -i -e s:UID=0:UID=65534:g \
@@ -35,7 +39,7 @@ src_prepare() {
}
src_compile() {
- emake build || die "emake build failed"
+ emake CC=$(tc-getCC) build
}
src_install() {
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: mail-filter/policyd/
@ 2019-01-07 19:15 Lars Wendler
0 siblings, 0 replies; 9+ messages in thread
From: Lars Wendler @ 2019-01-07 19:15 UTC (permalink / raw
To: gentoo-commits
commit: cd6c4caf5f2b90b1a06685503bf44a502054e318
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 7 18:32:03 2019 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Jan 7 19:15:37 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd6c4caf
mail-filter/policyd: Adjusted sub-slot dep on dev-libs/openssl
Package-Manager: Portage-2.3.54, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
mail-filter/policyd/policyd-1.82-r2.ebuild | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mail-filter/policyd/policyd-1.82-r2.ebuild b/mail-filter/policyd/policyd-1.82-r2.ebuild
index b472846f713..1e145672a00 100644
--- a/mail-filter/policyd/policyd-1.82-r2.ebuild
+++ b/mail-filter/policyd/policyd-1.82-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
@@ -15,8 +15,8 @@ SLOT="0"
KEYWORDS="~amd64 ~hppa ~x86"
IUSE="libressl"
DEPEND="virtual/mysql
- !libressl? ( dev-libs/openssl:0 )
- libressl? ( dev-libs/libressl )"
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:= )"
RDEPEND="${DEPEND}"
src_prepare() {
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: mail-filter/policyd/
@ 2015-10-11 0:27 Anthony G. Basile
0 siblings, 0 replies; 9+ messages in thread
From: Anthony G. Basile @ 2015-10-11 0:27 UTC (permalink / raw
To: gentoo-commits
commit: 11f3de0593787292a3c7aebb292dc62acf36c0cd
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 11 00:32:45 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Oct 11 00:32:57 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11f3de05
mail-filter/policyd: fix copyright line
Package-Manager: portage-2.2.20.1
mail-filter/policyd/policyd-1.82-r2.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mail-filter/policyd/policyd-1.82-r2.ebuild b/mail-filter/policyd/policyd-1.82-r2.ebuild
index c54494a..55092b8 100644
--- a/mail-filter/policyd/policyd-1.82-r2.ebuild
+++ b/mail-filter/policyd/policyd-1.82-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: mail-filter/policyd/
@ 2015-10-11 0:26 Anthony G. Basile
0 siblings, 0 replies; 9+ messages in thread
From: Anthony G. Basile @ 2015-10-11 0:26 UTC (permalink / raw
To: gentoo-commits
commit: 835d4bda9b6d3176afe230a5df99194a309e5d15
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 11 00:31:56 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Oct 11 00:31:56 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=835d4bda
mail-filter/policyd: add libressl support
Package-Manager: portage-2.2.20.1
mail-filter/policyd/policyd-1.82-r2.ebuild | 76 ++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
diff --git a/mail-filter/policyd/policyd-1.82-r2.ebuild b/mail-filter/policyd/policyd-1.82-r2.ebuild
new file mode 100644
index 0000000..c54494a
--- /dev/null
+++ b/mail-filter/policyd/policyd-1.82-r2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Policy daemon for postfix and other MTAs"
+HOMEPAGE="http://policyd.sf.net/"
+
+# This is not available through SF mirrors
+SRC_URI="http://policyd.sourceforge.net/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~x86"
+IUSE="libressl"
+DEPEND="virtual/mysql
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-post182.patch"
+ epatch "${FILESDIR}/${PN}-makefile.patch"
+ sed -i -e "s/gcc/$(tc-getCC)/" Makefile
+
+ ebegin "Applying config patches"
+ sed -i -e s:UID=0:UID=65534:g \
+ -e s:GID=0:GID=65534:g \
+ -e s:DAEMON=0:DAEMON=1:g \
+ -e s:DEBUG=3:DEBUG=0:g \
+ -e s:DATABASE_KEEPALIVE=0:DATABASE_KEEPALIVE=1:g \
+ policyd.conf || die "sed failed"
+ eend
+}
+
+src_compile() {
+ emake build || die "emake build failed"
+}
+
+src_install() {
+ insopts -o root -g nobody -m 0750
+ mv cleanup policyd_cleanup
+ mv stats policyd_stats
+
+ dosbin policyd policyd_cleanup policyd_stats
+
+ insopts -o root -g nobody -m 0640
+ insinto /etc
+ doins policyd.conf
+
+ insopts -o root -g nobody -m 0700
+ exeinto /etc/cron.hourly
+ newexe "${FILESDIR}/${PN}-cleanup.cron" ${PN}-cleanup.cron
+
+ dodoc ChangeLog DATABASE.mysql README doc/support.txt
+
+ newinitd "${FILESDIR}/${PN}.rc" ${PN}
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+}
+
+pkg_postinst() {
+ elog "You will need to create the database using the script DATABASE.mysql"
+ elog "in /usr/share/doc/${PF}/"
+ elog "Read the mysql section of the README.txt for details."
+ elog
+ elog "To use policyd with postfix, update your /etc/postfix/main.cf file by adding"
+ elog " check_policy_service inet:127.0.0.1:10031"
+ elog "to your smtpd_recipient_restrictions line, or similar."
+ elog
+ elog "Also remember to start the daemon at boot:"
+ elog " rc-update add policyd default"
+ elog
+ elog "Read the documentation for more info."
+}
^ permalink raw reply related [flat|nested] 9+ messages in thread
end of thread, other threads:[~2022-07-29 6:47 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-14 10:36 [gentoo-commits] repo/gentoo:master commit in: mail-filter/policyd/ David Seifert
-- strict thread matches above, loose matches on Subject: below --
2022-07-29 6:47 Sam James
2022-03-20 0:16 Sam James
2019-10-07 9:09 Michał Górny
2019-10-07 8:59 Agostino Sarubbo
2019-02-13 15:14 Brian Evans
2019-01-07 19:15 Lars Wendler
2015-10-11 0:27 Anthony G. Basile
2015-10-11 0:26 Anthony G. Basile
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox