Gentoo Archives: gentoo-commits

From: "Alin Nastac (mrness)" <mrness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/dspam-web: ChangeLog dspam-web-3.8.0-r1.ebuild dspam-web-3.8.0.ebuild
Date: Mon, 31 Dec 2007 08:00:19
Message-Id: E1J9FZE-00038v-GT@stork.gentoo.org
1 mrness 07/12/31 08:00:12
2
3 Modified: ChangeLog
4 Added: dspam-web-3.8.0-r1.ebuild
5 Removed: dspam-web-3.8.0.ebuild
6 Log:
7 Fix dspam-web graphs by correcting 14_all_cgi-fixes patch.
8 (Portage version: 2.1.3.19, RepoMan options: --force)
9
10 Revision Changes Path
11 1.40 www-apps/dspam-web/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/dspam-web/ChangeLog?rev=1.40&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/dspam-web/ChangeLog?rev=1.40&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/dspam-web/ChangeLog?r1=1.39&r2=1.40
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-apps/dspam-web/ChangeLog,v
20 retrieving revision 1.39
21 retrieving revision 1.40
22 diff -u -r1.39 -r1.40
23 --- ChangeLog 22 Oct 2007 22:51:20 -0000 1.39
24 +++ ChangeLog 31 Dec 2007 08:00:11 -0000 1.40
25 @@ -1,6 +1,12 @@
26 # ChangeLog for www-apps/dspam-web
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/ChangeLog,v 1.39 2007/10/22 22:51:20 mrness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/ChangeLog,v 1.40 2007/12/31 08:00:11 mrness Exp $
30 +
31 +*dspam-web-3.8.0-r1 (31 Dec 2007)
32 +
33 + 31 Dec 2007; Alin Năstac <mrness@g.o> -dspam-web-3.8.0.ebuild,
34 + +dspam-web-3.8.0-r1.ebuild:
35 + Fix dspam-web graphs by correcting 14_all_cgi-fixes patch.
36
37 22 Oct 2007; Alin Năstac <mrness@g.o> dspam-web-3.8.0.ebuild:
38 Use the latest patches tarball.
39
40
41
42 1.1 www-apps/dspam-web/dspam-web-3.8.0-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/dspam-web/dspam-web-3.8.0-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/dspam-web/dspam-web-3.8.0-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: dspam-web-3.8.0-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-apps/dspam-web/dspam-web-3.8.0-r1.ebuild,v 1.1 2007/12/31 08:00:11 mrness Exp $
52
53 inherit webapp eutils autotools
54
55 PATCHES_RELEASE_DATE="20071231"
56
57 DESCRIPTION="Web based administration and user controls for dspam"
58 HOMEPAGE="http://dspam.nuclearelephant.com/"
59 SRC_URI="http://dspam.nuclearelephant.com/sources/dspam-${PV}.tar.gz
60 mirror://gentoo/dspam-${PV}-patches-${PATCHES_RELEASE_DATE}.tar.gz"
61
62 LICENSE="GPL-2"
63 KEYWORDS="~amd64 ~ppc sparc x86"
64 IUSE=""
65
66 # These are really run-time dependencies, but we need to make sure they are installed
67 # before pkg_setup runs the built_with_use tests
68 DEPEND=">=mail-filter/dspam-${PV}
69 dev-perl/GD"
70
71 RDEPEND="${DEPEND}
72 dev-perl/GD-Graph3d
73 dev-perl/GDGraph
74 dev-perl/GDTextUtil"
75
76 # some FHS-like structure
77 HOMEDIR="/var/spool/dspam"
78 CONFDIR="/etc/mail/dspam"
79
80 S="${WORKDIR}/dspam-${PV}"
81
82 pkg_setup() {
83 local use_tests_failed=false
84 if built_with_use "mail-filter/dspam" user-homedirs; then
85 echo
86 eerror "The DSPAM web interface requires that mail-filter/dspam be installed without user-homedirs USE flag."
87 eerror "Please disable this flag and re-emerge dspam."
88 use_tests_failed=true
89 fi
90 if ! built_with_use "dev-perl/GD" png; then
91 echo
92 eerror "The DSPAM web interface requires that dev-perl/GD be installed with png USE flag."
93 eerror "Please enable this flag and re-emerge GD."
94 use_tests_failed=true
95 fi
96 ${use_tests_failed} && die "Dependency installed with incompatible USE flags"
97
98 webapp_pkg_setup
99 }
100
101 src_unpack() {
102 unpack ${A}
103 cd "${S}"
104
105 EPATCH_SUFFIX="patch"
106 epatch "${WORKDIR}"/patches
107
108 AT_M4DIR="${S}/m4"
109 eautoreconf
110 }
111
112 src_compile() {
113 econf \
114 --with-dspam-home=${HOMEDIR} \
115 --sysconfdir=${CONFDIR} || die "econf failed"
116 cd "${S}/webui"
117 emake || die "emake failed"
118 }
119
120 src_install() {
121 webapp_src_preinst
122
123 cd "${S}/webui"
124 insinto "${MY_HTDOCSDIR}"
125 insopts -m644
126 doins htdocs/*.{css,gif}
127 insinto "${MY_CGIBINDIR}/templates"
128 doins cgi-bin/templates/*.html
129 insinto "${MY_CGIBINDIR}"
130 doins cgi-bin/{admins,configure.pl,default.prefs,rgb.txt,*.cgi}
131
132 webapp_configfile "${MY_CGIBINDIR}"/{admins,configure.pl,default.prefs,rgb.txt}
133
134 webapp_hook_script "${FILESDIR}/setperms"
135 webapp_postinst_txt en "${FILESDIR}/postinst-en.txt"
136
137 webapp_src_install
138 }
139
140 pkg_postinst() {
141 ewarn "If you're using apache dspam-web's config requires the scripts in the cgi-bin"
142 ewarn "to be run as dspam:dspam. You will have to put a global SuexecUserGroup"
143 ewarn "declaration in the main server config which will force everything in cgi-bin"
144 ewarn "to run as dspam:dspam."
145 ewarn "You should use a dedicated virtual host for this application or at least"
146 ewarn "one that don't have any other cgi scripts."
147 echo
148 webapp_pkg_postinst
149 }
150
151
152
153 --
154 gentoo-commits@g.o mailing list