summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2005-03-15 00:20:54 +0000
committerSven Wegener <swegener@gentoo.org>2005-03-15 00:20:54 +0000
commitfcb0c98dd1f514373042833c411bbfefa4190baf (patch)
treebdbe90e2fda7feabf2aea9404ff65ef6f0fe4d0e /net-irc/ptlink-services/ptlink-services-2.26.ebuild
parentarm/hppa pie love (diff)
downloadgentoo-2-fcb0c98dd1f514373042833c411bbfefa4190baf.tar.gz
gentoo-2-fcb0c98dd1f514373042833c411bbfefa4190baf.tar.bz2
gentoo-2-fcb0c98dd1f514373042833c411bbfefa4190baf.zip
Version bump.
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-irc/ptlink-services/ptlink-services-2.26.ebuild')
-rw-r--r--net-irc/ptlink-services/ptlink-services-2.26.ebuild70
1 files changed, 70 insertions, 0 deletions
diff --git a/net-irc/ptlink-services/ptlink-services-2.26.ebuild b/net-irc/ptlink-services/ptlink-services-2.26.ebuild
new file mode 100644
index 000000000000..031b87583b56
--- /dev/null
+++ b/net-irc/ptlink-services/ptlink-services-2.26.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-services/ptlink-services-2.26.ebuild,v 1.1 2005/03/15 00:20:54 swegener Exp $
+
+inherit fixheadtails eutils
+
+MY_P="PTlink.Services${PV}-eol"
+
+DESCRIPTION="PTlink Services"
+HOMEPAGE="http://www.ptlink.net/"
+SRC_URI="ftp://ftp.sunsite.dk/projects/ptlink/services2/${MY_P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+IUSE="mysql"
+
+DEPEND="mysql? ( dev-db/mysql )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ ht_fix_file configure
+
+ find ${S} -type d -name CVS -exec rm -rf {} \; 2>/dev/null
+}
+
+src_compile() {
+ econf $(use_with mysql) || die "econf failed"
+
+ # Now we're going to override the paths setup by configure
+ echo "#define BINPATH \"/usr/bin\"" > include/path.h
+ echo "#define ETCPATH \"/etc/ptlink-services\"" >> include/path.h
+ echo "#define DATAPATH \"/var/lib/ptlink-services\"" >> include/path.h
+
+ emake CFLAGS="${CFLAGS}" || die "emake failed"
+ emake -C src/lang CFLAGS="${CFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ newbin src/services ptlink-services || die "newbin failed"
+
+ keepdir /var/{lib,log}/ptlink-services
+ dosym /var/log/ptlink-services /var/lib/ptlink-services/logs
+
+ insinto /usr/share/ptlink-services/languages
+ for file in src/lang/*.l ; do
+ doins src/lang/$(basename ${file} .l) || die "doins failed"
+ doins src/lang/$(basename ${file} .l).auth || die "doins failed"
+ doins src/lang/$(basename ${file} .l).setemail || die "doins failed"
+ done
+ dosym /usr/share/ptlink-services/languages /var/lib/ptlink-services
+
+ insinto /etc/ptlink-services
+ newins data/example.conf services.conf || die "newins failed"
+ doins data/create_tables.sql data/domain.def || die "doins failed"
+
+ dohtml html_manual/* || die "dohtml failed"
+ dodoc CHANGES FAQ FEATURES README || die "dodoc failed"
+
+ newinitd ${FILESDIR}/ptlink-services.init.d ptlink-services
+ newconfd ${FILESDIR}/ptlink-services.conf.d ptlink-services
+}
+
+pkg_postinst() {
+ enewuser ptlink-services
+ chown ptlink-services ${ROOT}/var/{log,lib}/ptlink-services
+}