/[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.3 - (hide annotations) (download)
Wed Feb 17 15:47:12 2010 UTC (10 years ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Drop per bug #245506 and #117892.

1 vivo 1.2 # Copyright 1999-2006 Gentoo Foundation
2 swegener 1.1 # Distributed under the terms of the GNU General Public License v2
3 scarabeus 1.3 # $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-services/ptlink-services-2.26.1.ebuild,v 1.2 2006/11/23 17:29:06 vivo Exp $
4 swegener 1.1
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 vivo 1.2 DEPEND="mysql? ( virtual/mysql )"
18 swegener 1.1
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