diff options
author | Sven Wegener <swegener@gentoo.org> | 2004-07-10 22:50:41 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2004-07-10 22:50:41 +0000 |
commit | 33781544b5635704e81275f3989674459818583f (patch) | |
tree | 76b04650e6b983871912534026d744e8c0032d2c | |
parent | Renamed to net-irc/ptlink-ircd (diff) | |
download | gentoo-2-33781544b5635704e81275f3989674459818583f.tar.gz gentoo-2-33781544b5635704e81275f3989674459818583f.tar.bz2 gentoo-2-33781544b5635704e81275f3989674459818583f.zip |
Initial import, ebuild written by me.
-rw-r--r-- | net-irc/ptlink-opm/ChangeLog | 11 | ||||
-rw-r--r-- | net-irc/ptlink-opm/Manifest | 2 | ||||
-rw-r--r-- | net-irc/ptlink-opm/files/digest-ptlink-opm-1.1.1 | 1 | ||||
-rw-r--r-- | net-irc/ptlink-opm/files/ptlink-opm.conf.d | 6 | ||||
-rw-r--r-- | net-irc/ptlink-opm/files/ptlink-opm.init.d | 22 | ||||
-rw-r--r-- | net-irc/ptlink-opm/metadata.xml | 5 | ||||
-rw-r--r-- | net-irc/ptlink-opm/ptlink-opm-1.1.1.ebuild | 57 |
7 files changed, 104 insertions, 0 deletions
diff --git a/net-irc/ptlink-opm/ChangeLog b/net-irc/ptlink-opm/ChangeLog new file mode 100644 index 000000000000..af67ba34f756 --- /dev/null +++ b/net-irc/ptlink-opm/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-irc/ptlink-opm +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-opm/ChangeLog,v 1.1 2004/07/10 22:50:41 swegener Exp $ + +*ptlink-opm-1.1.1 (11 Jul 2004) + + 11 Jul 2004; Sven Wegener <swegener@gentoo.org> +metadata.xml, + +files/ptlink-opm.conf.d, +files/ptlink-opm.init.d, + +ptlink-opm-1.1.1.ebuild: + Initial import, ebuild written by me. + diff --git a/net-irc/ptlink-opm/Manifest b/net-irc/ptlink-opm/Manifest new file mode 100644 index 000000000000..860914d298a5 --- /dev/null +++ b/net-irc/ptlink-opm/Manifest @@ -0,0 +1,2 @@ +MD5 69ad8b25a6d3e01c30b8856f770eea64 ptlink-opm-1.1.1.ebuild 1746 +MD5 55de0a052638e8efbbcfbd39b00b699b files/digest-ptlink-opm-1.1.1 67 diff --git a/net-irc/ptlink-opm/files/digest-ptlink-opm-1.1.1 b/net-irc/ptlink-opm/files/digest-ptlink-opm-1.1.1 new file mode 100644 index 000000000000..962a147137a0 --- /dev/null +++ b/net-irc/ptlink-opm/files/digest-ptlink-opm-1.1.1 @@ -0,0 +1 @@ +MD5 01aff2f5dac3fc3b41761b24aed68bdc PTlink.OPM1.1.1.tar.gz 106155 diff --git a/net-irc/ptlink-opm/files/ptlink-opm.conf.d b/net-irc/ptlink-opm/files/ptlink-opm.conf.d new file mode 100644 index 000000000000..524ca831f9d8 --- /dev/null +++ b/net-irc/ptlink-opm/files/ptlink-opm.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-opm/files/ptlink-opm.conf.d,v 1.1 2004/07/10 22:50:41 swegener Exp $ + +# User to run ptlink-opm as +PTLINKOPM_USER="ptlink-opm" diff --git a/net-irc/ptlink-opm/files/ptlink-opm.init.d b/net-irc/ptlink-opm/files/ptlink-opm.init.d new file mode 100644 index 000000000000..07db385f76fe --- /dev/null +++ b/net-irc/ptlink-opm/files/ptlink-opm.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-opm/files/ptlink-opm.init.d,v 1.1 2004/07/10 22:50:41 swegener Exp $ + +depend() { + need net + use dns +} + +start() { + ebegin "Starting ptlink-opm" + start-stop-daemon --start --quiet --exec /usr/bin/ptlink-opm \ + --chuid ${PTLINKOPM_USER} >/dev/null + eend $? +} + +stop() { + ebegin "Shutting down ptlink-opm" + start-stop-daemon --stop --exec /usr/bin/ptlink-opm + eend $? +} diff --git a/net-irc/ptlink-opm/metadata.xml b/net-irc/ptlink-opm/metadata.xml new file mode 100644 index 000000000000..6ef15e900f17 --- /dev/null +++ b/net-irc/ptlink-opm/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-opm/ptlink-opm-1.1.1.ebuild b/net-irc/ptlink-opm/ptlink-opm-1.1.1.ebuild new file mode 100644 index 000000000000..7479f8d3a3fc --- /dev/null +++ b/net-irc/ptlink-opm/ptlink-opm-1.1.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-opm/ptlink-opm-1.1.1.ebuild,v 1.1 2004/07/10 22:50:41 swegener Exp $ + +MY_P="PTlink.OPM${PV}" + +DESCRIPTION="PTlink Open Proxy Monitor" +HOMEPAGE="http://www.ptlink.net/" +SRC_URI="mirror://sourceforge/ptlinksoft/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + sed -i \ + -e 's:ptopm\.dconf:/etc/ptlink-opm/ptopm.dconf:' \ + -e 's:ptopm\.log:log/ptopm.log:' \ + ${S}/src/ptopm.c +} + +src_compile() { + econf || die "econf failed" + + # Now we're going to override the paths setup by configure + echo "#define BPATH \"/usr/bin\"" > include/path.h + echo "#define DPATH \"/var/lib/ptlink-opm\"" >> include/path.h + + emake || die "emake failed" +} + +src_install() { + newbin src/ptopm ptlink-opm + + keepdir /var/{lib,log}/ptlink-opm + dosym /var/log/ptlink-opm /var/lib/ptlink-opm/log + + insinto /etc/ptlink-opm + newins samples/ptopm.dconf.sample ptopm.dconf + + dodoc CHANGES README + + exeinto /etc/init.d + newexe ${FILESDIR}/ptlink-opm.init.d ptlink-opm + insinto /etc/conf.d + newins ${FILESDIR}/ptlink-opm.conf.d ptlink-opm +} + +pkg_postinst() { + enewuser ptlink-opm + chown ptlink-opm ${ROOT}/var/{log,lib}/ptlink-opm +} |