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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Wed Nov 30 09:48:56 2005 UTC (14 years, 2 months ago) by chriswhite
Changes since 1.1: +1 -1 lines
*** empty log message ***

1 # Copyright 1999-2005 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.26.1.ebuild,v 1.1 2005/04/10 11:34:20 swegener Exp $
4
5 inherit fixheadtails eutils versionator
6
7 MY_P="PTlink.Services$(get_version_component_range 1-2)-eol.$(get_version_component_range 3)"
8
9 DESCRIPTION="PTlink Services"
10 HOMEPAGE="http://www.ptlink.net/"
11 SRC_URI="ftp://ftp.sunsite.dk/projects/ptlink/services2/${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 $(use_with mysql) || 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 || die "newbin failed"
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 \
51 src/lang/$(basename ${file} .l) \
52 src/lang/$(basename ${file} .l).auth \
53 src/lang/$(basename ${file} .l).setemail || die "doins failed"
54 done
55 dosym /usr/share/ptlink-services/languages /var/lib/ptlink-services
56
57 insinto /etc/ptlink-services
58 newins data/example.conf services.conf || die "newins failed"
59 doins data/create_tables.sql data/domain.def || die "doins failed"
60
61 dohtml html_manual/* || die "dohtml failed"
62 dodoc CHANGES FAQ FEATURES README || die "dodoc failed"
63
64 newinitd ${FILESDIR}/ptlink-services.init.d ptlink-services
65 newconfd ${FILESDIR}/ptlink-services.conf.d ptlink-services
66 }
67
68 pkg_postinst() {
69 enewuser ptlink-services
70 chown ptlink-services ${ROOT}/var/{log,lib}/ptlink-services
71 }

  ViewVC Help
Powered by ViewVC 1.1.20