diff options
author | Sven Wegener <swegener@gentoo.org> | 2004-07-10 23:09:39 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2004-07-10 23:09:39 +0000 |
commit | d931bb32be0744aa0884962e1ed33bedd54446c2 (patch) | |
tree | b4f352990986b20791787afb9f9cb04ed7ae3370 /net-irc/ptlink-services | |
parent | We need to inherit eutils for enewuser. (Manifest recommit) (diff) | |
download | gentoo-2-d931bb32be0744aa0884962e1ed33bedd54446c2.tar.gz gentoo-2-d931bb32be0744aa0884962e1ed33bedd54446c2.tar.bz2 gentoo-2-d931bb32be0744aa0884962e1ed33bedd54446c2.zip |
Initial import, ebuild written by me.
Diffstat (limited to 'net-irc/ptlink-services')
-rw-r--r-- | net-irc/ptlink-services/ChangeLog | 11 | ||||
-rw-r--r-- | net-irc/ptlink-services/Manifest | 2 | ||||
-rw-r--r-- | net-irc/ptlink-services/files/digest-ptlink-services-2.24.1 | 1 | ||||
-rw-r--r-- | net-irc/ptlink-services/files/ptlink-services.conf.d | 6 | ||||
-rw-r--r-- | net-irc/ptlink-services/files/ptlink-services.init.d | 22 | ||||
-rw-r--r-- | net-irc/ptlink-services/metadata.xml | 5 | ||||
-rw-r--r-- | net-irc/ptlink-services/ptlink-services-2.24.1.ebuild | 72 |
7 files changed, 119 insertions, 0 deletions
diff --git a/net-irc/ptlink-services/ChangeLog b/net-irc/ptlink-services/ChangeLog new file mode 100644 index 000000000000..d4fd47cbf749 --- /dev/null +++ b/net-irc/ptlink-services/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-irc/ptlink-services +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-services/ChangeLog,v 1.1 2004/07/10 23:09:39 swegener Exp $ + +*ptlink-services-2.24.1 (11 Jul 2004) + + 11 Jul 2004; Sven Wegener <swegener@gentoo.org> +metadata.xml, + +files/ptlink-services.conf.d, +files/ptlink-services.init.d, + +ptlink-services-2.24.1.ebuild: + Initial import, ebuild written by me. + diff --git a/net-irc/ptlink-services/Manifest b/net-irc/ptlink-services/Manifest new file mode 100644 index 000000000000..e4a007da5694 --- /dev/null +++ b/net-irc/ptlink-services/Manifest @@ -0,0 +1,2 @@ +MD5 25aa94d58fd060d68231e2b0200731de ptlink-services-2.24.1.ebuild 418 +MD5 1781889575de92eacb29dd5d2e58cfe1 files/digest-ptlink-services-2.24.1 73 diff --git a/net-irc/ptlink-services/files/digest-ptlink-services-2.24.1 b/net-irc/ptlink-services/files/digest-ptlink-services-2.24.1 new file mode 100644 index 000000000000..1cabbbd64f05 --- /dev/null +++ b/net-irc/ptlink-services/files/digest-ptlink-services-2.24.1 @@ -0,0 +1 @@ +MD5 df570b4dca86fb2e4a15cb4c8834b2d9 PTlink.Services2.24.1.tar.gz 498981 diff --git a/net-irc/ptlink-services/files/ptlink-services.conf.d b/net-irc/ptlink-services/files/ptlink-services.conf.d new file mode 100644 index 000000000000..9ab7e59508f8 --- /dev/null +++ b/net-irc/ptlink-services/files/ptlink-services.conf.d @@ -0,0 +1,6 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-services/files/ptlink-services.conf.d,v 1.1 2004/07/10 23:09:39 swegener Exp $ + +# User to run ptlink-services as +PTLINKSERVICES_USER="ptlink-services" diff --git a/net-irc/ptlink-services/files/ptlink-services.init.d b/net-irc/ptlink-services/files/ptlink-services.init.d new file mode 100644 index 000000000000..63a5a5ca9a96 --- /dev/null +++ b/net-irc/ptlink-services/files/ptlink-services.init.d @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-services/files/ptlink-services.init.d,v 1.1 2004/07/10 23:09:39 swegener Exp $ + +depend() { + need net + use dns +} + +start() { + ebegin "Starting ptlink-services" + start-stop-daemon --start --quiet --exec /usr/bin/ptlink-services \ + --chuid ${PTLINKSERVICES_USER} >/dev/null + eend $? +} + +stop() { + ebegin "Shutting down ptlink-services" + start-stop-daemon --stop --exec /usr/bin/ptlink-services + eend $? +} diff --git a/net-irc/ptlink-services/metadata.xml b/net-irc/ptlink-services/metadata.xml new file mode 100644 index 000000000000..6ef15e900f17 --- /dev/null +++ b/net-irc/ptlink-services/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-irc</herd> +</pkgmetadata> diff --git a/net-irc/ptlink-services/ptlink-services-2.24.1.ebuild b/net-irc/ptlink-services/ptlink-services-2.24.1.ebuild new file mode 100644 index 000000000000..a3b9315b2ec0 --- /dev/null +++ b/net-irc/ptlink-services/ptlink-services-2.24.1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2004 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.24.1.ebuild,v 1.1 2004/07/10 23:09:39 swegener Exp $ + +inherit fixheadtails eutils + +MY_P="PTlink.Services${PV}" + +DESCRIPTION="PTlink Services" +HOMEPAGE="http://www.ptlink.net/" +SRC_URI="ftp://ftp.sunsite.dk/projects/ptlink/services/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +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 || 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 + + 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) + doins src/lang/$(basename ${file} .l).auth + doins src/lang/$(basename ${file} .l).setemail + done + dosym /usr/share/ptlink-services/languages /var/lib/ptlink-services + + insinto /etc/ptlink-services + newins data/example.conf services.conf + doins data/create_tables.sql + + dohtml html_manual/* + dodoc CHANGES FAQ FEATURES README + + exeinto /etc/init.d + newexe ${FILESDIR}/ptlink-services.init.d ptlink-services + insinto /etc/conf.d + newins ${FILESDIR}/ptlink-services.conf.d ptlink-services +} + +pkg_postinst() { + enewuser ptlink-services + chown ptlink-services ${ROOT}/var/{log,lib}/ptlink-services +} |