diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-04-19 22:13:58 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-04-19 22:13:58 +0000 |
commit | c51350218e63a083c68d3f15724bea39f0d2649c (patch) | |
tree | a22dac8c5d00fa3dc7918880152f8dbda778acce /net-mail | |
parent | old (diff) | |
download | historical-c51350218e63a083c68d3f15724bea39f0d2649c.tar.gz historical-c51350218e63a083c68d3f15724bea39f0d2649c.tar.bz2 historical-c51350218e63a083c68d3f15724bea39f0d2649c.zip |
Make the init script run under the nobody user by default #86271 by Olivier and fix the .lua permissions #89612 by MickKi.
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/freepops/ChangeLog | 9 | ||||
-rw-r--r-- | net-mail/freepops/Manifest | 7 | ||||
-rw-r--r-- | net-mail/freepops/files/digest-freepops-0.0.27-r1 | 1 | ||||
-rw-r--r-- | net-mail/freepops/files/freepops-0.0.27-initd.patch | 23 | ||||
-rw-r--r-- | net-mail/freepops/freepops-0.0.27-r1.ebuild | 48 |
5 files changed, 84 insertions, 4 deletions
diff --git a/net-mail/freepops/ChangeLog b/net-mail/freepops/ChangeLog index 85fb8a37ec58..9b1076657b5d 100644 --- a/net-mail/freepops/ChangeLog +++ b/net-mail/freepops/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-mail/freepops # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/freepops/ChangeLog,v 1.10 2005/04/16 07:33:03 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/freepops/ChangeLog,v 1.11 2005/04/19 22:13:58 vapier Exp $ + +*freepops-0.0.27-r1 (19 Apr 2005) + + 19 Apr 2005; Mike Frysinger <vapier@gentoo.org> + +files/freepops-0.0.27-initd.patch, +freepops-0.0.27-r1.ebuild: + Make the init script run under the nobody user by default #86271 by Olivier + and fix the .lua permissions #89612 by MickKi. *freepops-0.0.27 (16 Apr 2005) diff --git a/net-mail/freepops/Manifest b/net-mail/freepops/Manifest index 911d0abf4627..870ea5b3e509 100644 --- a/net-mail/freepops/Manifest +++ b/net-mail/freepops/Manifest @@ -1,8 +1,9 @@ MD5 a4448c81cb3d85ff481cab00caf23133 freepops-0.0.23.ebuild 1033 -MD5 9d89e0567ec2077ce9f0768f319b9733 ChangeLog 1603 +MD5 7347768ec5b72713cf2a600de8c187b8 ChangeLog 1882 MD5 21c9bd65b924f959e9ec675d33b6df27 metadata.xml 222 MD5 fbab6709ec0274a3b4bb5890caf82d9f freepops-0.0.26.ebuild 1044 -MD5 198a63011c2af0cebea371ca071339bb freepops-0.0.27.ebuild 1044 +MD5 317ebffa58c2438cb2d8332ff5272f04 freepops-0.0.27-r1.ebuild 1192 MD5 e8491c490067aeec3e15b03892123f4f files/digest-freepops-0.0.26 68 -MD5 d7ca204372719b1d3fa4aca59cf9a442 files/digest-freepops-0.0.27 68 +MD5 87de47c4792aa1687b9d521a4e4c313a files/freepops-0.0.27-initd.patch 634 MD5 d412e621e93ef97bebe65fed2a0e2dea files/digest-freepops-0.0.23 68 +MD5 d7ca204372719b1d3fa4aca59cf9a442 files/digest-freepops-0.0.27-r1 68 diff --git a/net-mail/freepops/files/digest-freepops-0.0.27-r1 b/net-mail/freepops/files/digest-freepops-0.0.27-r1 new file mode 100644 index 000000000000..0da614b3f833 --- /dev/null +++ b/net-mail/freepops/files/digest-freepops-0.0.27-r1 @@ -0,0 +1 @@ +MD5 f4842a2666ec8e439fd08e1f38a46d4e freepops-0.0.27.tar.gz 1851699 diff --git a/net-mail/freepops/files/freepops-0.0.27-initd.patch b/net-mail/freepops/files/freepops-0.0.27-initd.patch new file mode 100644 index 000000000000..589bc88718cd --- /dev/null +++ b/net-mail/freepops/files/freepops-0.0.27-initd.patch @@ -0,0 +1,23 @@ +Drop root privs by default. + +--- buildfactory/freePOPsd.initd ++++ buildfactory/freePOPsd.initd +@@ -35,6 +35,9 @@ + if [ ${USER_NAME} ] && [ ${USER_PASSWD} ]; then + ARGS="${ARGS} -A ${USER_NAME}:${USER_PASSWD}" + fi ++ if [ ${SUID_USER} ] && [ ${SUID_GROUP} ]; then ++ ARGS="${ARGS} -s ${SUID_USER}.${SUID_GROUP}" ++ fi + start-stop-daemon --start --exec /usr/bin/freepopsd \ + -- -d ${ARGS} + eend ${?} +--- buildfactory/freePOPsd.confd ++++ buildfactory/freePOPsd.confd +@@ -24,3 +24,6 @@ + # USER_NAME="" + # USER_PASSWD="" + ++# You can drop root privs by changing to this username/group ++SUID_USER="nobody" ++SUID_GROUP="nogroup" diff --git a/net-mail/freepops/freepops-0.0.27-r1.ebuild b/net-mail/freepops/freepops-0.0.27-r1.ebuild new file mode 100644 index 000000000000..7060fe246d74 --- /dev/null +++ b/net-mail/freepops/freepops-0.0.27-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/freepops/freepops-0.0.27-r1.ebuild,v 1.1 2005/04/19 22:13:58 vapier Exp $ + +inherit eutils + +DESCRIPTION="WebMail->POP3 converter and more" +HOMEPAGE="http://freepops.sourceforge.net/" +SRC_URI="mirror://sourceforge/freepops/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="doc" + +RDEPEND=">=net-misc/curl-7.10.8" +DEPEND="${RDEPEND} + >=sys-apps/portage-2.0.51 + doc? ( + >=app-doc/doxygen-1.3* + app-text/tetex + virtual/ghostscript + )" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-initd.patch #86271 + chmod a+r $(find . -name '*.lua') #89612 +} + +src_compile() { + ./configure.sh linux || die "configure failed" + emake -j1 all WHERE=/usr/ || die "make failed" + if use doc ; then + emake -j1 doc || die "make doc failed" + fi +} + +src_install() { + make install DESTDIR="${D}" WHERE=/usr/ || die + dodoc AUTHORS README ChangeLog TODO \ + "${D}"/usr/share/doc/${PN}/MANUAL.txt + rm -rf "${D}"/usr/share/doc/${PN} + + newinitd buildfactory/freePOPsd.initd freepopsd + newconfd buildfactory/freePOPsd.confd freepopsd +} |