mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-irc/ptlink-ircd: remove last-rited package
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST PTlink6.19.6.tar.gz 799388 BLAKE2B 709f07f8af79aeb844609556de2f81d38c8e56df0ec5d8a9d568f162ae6347d914677fc3fa3cee7bb27b14e14d284111dd88e320fb31891042adbe65ddd8d4f6 SHA512 5036efc429d8c5dbb5076cc690221b9409990bfe71a710bf6f8ce60e8779ff8f55e695c1fc1ca56435928d416bc1907c91105cf533538dafeea4344cd038d4d5
|
||||
@@ -1,5 +0,0 @@
|
||||
# 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"
|
||||
@@ -1,23 +0,0 @@
|
||||
#!/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 $?
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
</pkgmetadata>
|
||||
@@ -1,94 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils ssl-cert user vcs-clean
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user