/[gentoo-x86]/net-misc/bopm/bopm-3.1.3.ebuild
Gentoo

Contents of /net-misc/bopm/bopm-3.1.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Jan 8 06:35:12 2014 UTC (5 years, 11 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
Inherit the user eclass for enewuser/etc...

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/bopm/bopm-3.1.3.ebuild,v 1.4 2010/10/28 09:55:53 ssuominen Exp $
4
5 inherit eutils user
6
7 DESCRIPTION="Blitzed Open Proxy Monitor"
8 HOMEPAGE="http://www.blitzed.org/bopm/"
9 SRC_URI="http://static.blitzed.org/www.blitzed.org/${PN}/files/${P}.tar.gz"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="~alpha ~amd64 ~ppc ~x86"
13 IUSE=""
14
15 RDEPEND=""
16 DEPEND="${RDEPEND}
17 sys-apps/sed"
18
19 src_compile() {
20 econf \
21 --sysconfdir=/etc \
22 --datadir=/usr/share/doc/${PF} \
23 --localstatedir=/var/log/bopm || die "econf failed"
24 emake || die "emake failed"
25 }
26
27 src_install () {
28 sed -i \
29 -e 's!/some/path/bopm.pid!/var/run/bopm/bopm.pid!' \
30 -e 's!/some/path/scan.log!/var/log/bopm/scan.log!' bopm.conf.sample
31
32 make \
33 DESTDIR="${D}" \
34 sysconfdir="${D}"/etc \
35 datadir=/usr/share/doc/${PF} \
36 localstatedir="${D}"/var/log/bopm \
37 install || die "install failed"
38
39 fperms 600 /etc/bopm.conf
40
41 # Remove libopm related files, because bopm links statically to it
42 # If anybody wants libopm, please install net-libs/libopm
43 rm -r "${D}"/usr/lib "${D}"/usr/include
44
45 newinitd "${FILESDIR}"/bopm.init.d bopm
46 newconfd "${FILESDIR}"/bopm.conf.d bopm
47
48 dodoc ChangeLog INSTALL README TODO
49 }
50
51 pkg_postinst() {
52 enewuser bopm
53
54 install -d -m 0700 -o bopm -g root "${ROOT}"/var/log/bopm
55 install -d -m 0700 -o bopm -g root "${ROOT}"/var/run/bopm
56 chown bopm "${ROOT}"/etc/bopm.conf
57 }

  ViewVC Help
Powered by ViewVC 1.1.20