/[gentoo-x86]/net-irc/ptlink-services/ptlink-services-2.24.1.ebuild
Gentoo

Contents of /net-irc/ptlink-services/ptlink-services-2.24.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Nov 14 15:42:58 2004 UTC (15 years, 2 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Removed old ebuild.

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-services/ptlink-services-2.24.1.ebuild,v 1.3 2004/07/17 10:00:57 dholm Exp $
4
5 inherit fixheadtails eutils
6
7 MY_P="PTlink.Services${PV}"
8
9 DESCRIPTION="PTlink Services"
10 HOMEPAGE="http://www.ptlink.net/"
11 SRC_URI="ftp://ftp.sunsite.dk/projects/ptlink/services/${MY_P}.tar.gz"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~x86 ~ppc"
15 IUSE="mysql"
16
17 DEPEND="mysql? ( dev-db/mysql )"
18
19 S=${WORKDIR}/${MY_P}
20
21 src_unpack() {
22 unpack ${A}
23 cd ${S}
24
25 ht_fix_file configure
26
27 find ${S} -type d -name CVS -exec rm -rf {} \; 2>/dev/null
28 }
29
30 src_compile() {
31 econf || die "econf failed"
32
33 # Now we're going to override the paths setup by configure
34 echo "#define BINPATH \"/usr/bin\"" > include/path.h
35 echo "#define ETCPATH \"/etc/ptlink-services\"" >> include/path.h
36 echo "#define DATAPATH \"/var/lib/ptlink-services\"" >> include/path.h
37
38 emake CFLAGS="${CFLAGS}" || die "emake failed"
39 emake -C src/lang CFLAGS="${CFLAGS}" || die "emake failed"
40 }
41
42 src_install() {
43 newbin src/services ptlink-services
44
45 keepdir /var/{lib,log}/ptlink-services
46 dosym /var/log/ptlink-services /var/lib/ptlink-services/logs
47
48 insinto /usr/share/ptlink-services/languages
49 for file in src/lang/*.l ; do
50 doins src/lang/$(basename ${file} .l)
51 doins src/lang/$(basename ${file} .l).auth
52 doins src/lang/$(basename ${file} .l).setemail
53 done
54 dosym /usr/share/ptlink-services/languages /var/lib/ptlink-services
55
56 insinto /etc/ptlink-services
57 newins data/example.conf services.conf
58 doins data/create_tables.sql
59
60 dohtml html_manual/*
61 dodoc CHANGES FAQ FEATURES README
62
63 exeinto /etc/init.d
64 newexe ${FILESDIR}/ptlink-services.init.d ptlink-services
65 insinto /etc/conf.d
66 newins ${FILESDIR}/ptlink-services.conf.d ptlink-services
67 }
68
69 pkg_postinst() {
70 enewuser ptlink-services
71 chown ptlink-services ${ROOT}/var/{log,lib}/ptlink-services
72 }

  ViewVC Help
Powered by ViewVC 1.1.20