From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-irc/ptlink-ircd/Manifest | 7 ++ net-irc/ptlink-ircd/files/ptlink-ircd.confd | 5 ++ net-irc/ptlink-ircd/files/ptlink-ircd.initd | 23 ++++++ net-irc/ptlink-ircd/metadata.xml | 5 ++ net-irc/ptlink-ircd/ptlink-ircd-6.19.6-r3.ebuild | 94 ++++++++++++++++++++++++ 5 files changed, 134 insertions(+) create mode 100644 net-irc/ptlink-ircd/Manifest create mode 100644 net-irc/ptlink-ircd/files/ptlink-ircd.confd create mode 100644 net-irc/ptlink-ircd/files/ptlink-ircd.initd create mode 100644 net-irc/ptlink-ircd/metadata.xml create mode 100644 net-irc/ptlink-ircd/ptlink-ircd-6.19.6-r3.ebuild (limited to 'net-irc/ptlink-ircd') diff --git a/net-irc/ptlink-ircd/Manifest b/net-irc/ptlink-ircd/Manifest new file mode 100644 index 000000000000..9cf28ca41c15 --- /dev/null +++ b/net-irc/ptlink-ircd/Manifest @@ -0,0 +1,7 @@ +AUX ptlink-ircd.confd 167 SHA256 21241fe4cbbef6e8fbe61192be988a15ba4c2140e8094691eefbb97a7aec0471 SHA512 21059ef835fc56e4c8d2780dcc94abbb4951d6a10b89aa1d27cb702489ab1ac398f0928f63392f45e7b0b27949a59f07e9c0c280ef42abededc65749fc5f68e6 WHIRLPOOL a51effce87e8ef44c0c04420d169096b6f23ba5bbb63b4763df958d131d6d29fc6d414781bcf246248e5c6657cc0b980c8d165d012b19bbb959ad18265d4bd06 +AUX ptlink-ircd.initd 505 SHA256 da25c64d4708f77427845c6b003473c6406adaa1388f9b4f585d11bdbf75b573 SHA512 c1d9848181c9c91024b6e54e242b200b9eaee0823f5e39deb3ab0e5cbcafa16de03085c4a13a0a574886b14711feebcbcda96deebeb9b70dab0aacb0342b0472 WHIRLPOOL f33baed364cbeb722f00416fa701f7540f22680c1efe0223fce460bb6e1b9265dba1c2328733201b96ab30289c94a2f8e61485cc4f609543deb2b3147d38f5a7 +DIST PTlink6.19.6.tar.gz 799388 SHA256 80a9100b0f0c41c914dda6c576207721fa05bb4a0ccf77c6337d6740d1ce0131 SHA512 5036efc429d8c5dbb5076cc690221b9409990bfe71a710bf6f8ce60e8779ff8f55e695c1fc1ca56435928d416bc1907c91105cf533538dafeea4344cd038d4d5 WHIRLPOOL 7328e2c550592422beb29ae0895a80b98541ae91932963df9338983bf86053886ba309f7a775d2cfb0dce12ff91ee08d1148dec32f0788304150ec90d556d4f9 +EBUILD ptlink-ircd-6.19.6-r3.ebuild 2329 SHA256 42239b0f57ba2a622a17df35e6c5579c61b6f59e0df01b988f68df786c48dfbe SHA512 2fe66e1b2805e4a6ca744ab88f2f1840f2bcf81cd8da83ed915036b747d5db7c35af20f4ed6b8de36a762a33751d8842b8e65298f1a8ae43aa4a66ad27d75ddd WHIRLPOOL 2a49ab43b677e8ed67e68bd5ba8947f04e4946fa6d4ade5ccff10cdebd23c333ff8ab12660dcee418859e97b6a599824fcb0e5b6f4c8970463d9fdc2e206979b +MISC ChangeLog 2958 SHA256 4a056b0b8a6c182ea401ed205509931711d192017713133d33f445507242a66c SHA512 4174cb426ab9fb3bfaca1e2e242d9d7be649e1bc5a89f8e09aaaca651fa198e53a7496318109016ff5333797ce52d425e59aa83b1e307644ecc8ee4480a6d6e6 WHIRLPOOL 774274883b927c436142a20ecd47659450b100275491c0ea69b76eb6191f13edfbcbbb371177eecf912036ec5d424c64a79120ef98a1157f2f70425027973fa7 +MISC ChangeLog-2015 3958 SHA256 3fa187d623f005919124b0fe6253b3aa12f7b79eadb634365aaa2cd4881295d3 SHA512 a402c2420205a2fc7449e8c5e6c6f3fb47184a5788e69031b228acc7937c7a5a4a47dce81652e6e7897f248c2a36fe8d4cf45ccccbeb575891642152a4be4057 WHIRLPOOL 3d2ebe3e187b291156b6a06a144378a91676e62430bf90fc1fb0033ebdfcb42bf03a2a85974b11b9ad707cd77aa93944c997558e434b45ff28efcd922959ff1b +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/net-irc/ptlink-ircd/files/ptlink-ircd.confd b/net-irc/ptlink-ircd/files/ptlink-ircd.confd new file mode 100644 index 000000000000..a14466cc412b --- /dev/null +++ b/net-irc/ptlink-ircd/files/ptlink-ircd.confd @@ -0,0 +1,5 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# User to run ptlink-ircd as +PTLINKIRCD_USER="ptlink-ircd" diff --git a/net-irc/ptlink-ircd/files/ptlink-ircd.initd b/net-irc/ptlink-ircd/files/ptlink-ircd.initd new file mode 100644 index 000000000000..5b7c1f441d7e --- /dev/null +++ b/net-irc/ptlink-ircd/files/ptlink-ircd.initd @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net + use dns + provide ircd +} + +start() { + ebegin "Starting ptlink-ircd" + start-stop-daemon --start --quiet --exec /usr/bin/ptlink-ircd \ + --chuid ${PTLINKIRCD_USER} -- -l /var/lib/ptlink-ircd \ + -e /etc/ptlink-ircd >/dev/null + eend $? +} + +stop() { + ebegin "Shutting down ptlink-ircd" + start-stop-daemon --stop --pidfile /var/lib/ptlink-ircd/ircd.pid + eend $? +} diff --git a/net-irc/ptlink-ircd/metadata.xml b/net-irc/ptlink-ircd/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/net-irc/ptlink-ircd/metadata.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/net-irc/ptlink-ircd/ptlink-ircd-6.19.6-r3.ebuild b/net-irc/ptlink-ircd/ptlink-ircd-6.19.6-r3.ebuild new file mode 100644 index 000000000000..6b9f9a8ccdcc --- /dev/null +++ b/net-irc/ptlink-ircd/ptlink-ircd-6.19.6-r3.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils ssl-cert user + +MY_P="PTlink${PV}" + +DESCRIPTION="Secure IRC daemon with many advanced features" +HOMEPAGE="http://www.ptlink.net/" +SRC_URI="ftp://ftp.sunsite.dk/projects/ptlink/ircd/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc ~sparc ~x86" +IUSE="ssl" + +DEPEND=" + sys-libs/zlib + ssl? ( dev-libs/openssl:0= )" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + ecvs_clean + + default +} + +src_configure() { + econf \ + --disable-ipv6 \ + $(use_with ssl ssl openssl) +} + +src_compile() { + emake CFLAGS="${CFLAGS}" +} + +src_install() { + newbin src/ircd ptlink-ircd + newbin tools/fixklines ptlink-ircd-fixklines + newbin tools/mkpasswd ptlink-ircd-mkpasswd + + insinto /etc/ptlink-ircd + fperms 700 /etc/ptlink-ircd + doins samples/{kline.conf,{opers,ptlink}.motd,help.{admin,oper,user}} + newins samples/example.conf.short ircd.conf + newins samples/example.conf.trillian ircd.conf.trillian + newins samples/main.dconf.sample main.dconf + newins samples/network.dconf.sample network.dconf + + insinto /usr/share/ptlink-ircd/codepage + doins src/codepage/*.enc + dosym /usr/share/ptlink-ircd/codepage /etc/ptlink-ircd/codepage + + rm -rf doc/old + dodoc doc/* doc_hybrid6/* ircdcron/* CHANGES README + + keepdir /var/log/ptlink-ircd /var/lib/ptlink-ircd + dosym /var/log/ptlink-ircd /var/lib/ptlink-ircd/log + + newinitd "${FILESDIR}/ptlink-ircd.initd" ptlink-ircd + newconfd "${FILESDIR}/ptlink-ircd.confd" ptlink-ircd +} + +pkg_postinst() { + # Move docert from src_install() to install_cert for bug #201678 + use ssl && ( + if [[ ! -f "${ROOT}"/etc/ptlink-ircd/server.key.pem ]]; then + install_cert /etc/ptlink-ircd/server || die "install_cert failed" + mv "${ROOT}"/etc/ptlink-ircd/server.{crt,cert.pem} + mv "${ROOT}"/etc/ptlink-ircd/server.{csr,req.pem} + mv "${ROOT}"/etc/ptlink-ircd/server.key{,.pem} + fi + ) + + enewuser ptlink-ircd + + chown ptlink-ircd \ + "${ROOT}"/{etc,var/{log,lib}}/ptlink-ircd \ + "${ROOT}"/etc/ptlink-ircd/server.key.pem + + echo + elog "PTlink IRCd will run without configuration, although this is strongly" + elog "advised against." + echo + elog "You can find example cron script ircd.cron here:" + elog " /usr/share/doc/${PF}" + echo + elog "You can also use /etc/init.d/ptlink-ircd to start at boot" + echo +} -- cgit v1.2.3