updated 1.1.19 ebuild based on 1.1.18
This commit is contained in:
parent
2b45b752a7
commit
035b7b9e20
3 changed files with 110 additions and 0 deletions
|
@ -1,2 +1,4 @@
|
|||
AUX silcd.initd-r1 738 SHA256 dacb34edd44c66bddba39d565c836b735dfc787e9ee6a12287fd23b179950f40 SHA512 0808daf3eed023ee20c7ef2c8b71fe18a0548720a98589b4299a423c7b56fe1d39f0a23111e0c1e6ea8c7fb969e5bc9f5aa348aa0a1491d6deeab1b5efd87314 WHIRLPOOL 3474d201607e2964ef754e1a57fe4ca3b5e80d88152f3ee412154e812ffefb7d3ade02ee5b1fe7da95d7583105e9505029415f4a7fd9b9c63f760de7f7d7c08c
|
||||
DIST silc-server-1.1.19.tar.gz 1228752 SHA256 4aeb473014a0b2586b1174a3b394cc137f72d55d6a8dd39de01c1e520f26ed20 SHA512 820bbc1942f92593822b275e74cf3ac83d40bb9a348f5cad38a7449e96e965109a960e45e48d7c47993cc0f6fa6aa82355c262d19b1c4c182cb3caef19e9fbed WHIRLPOOL d2a88f406356dce0251a4c7ab28a86588ef02db3129580dcce6c6b1208a1eeac7bf31365d46e0f9359fbf930f74560ea14089952a0e6fc02936e11bc6e50e977
|
||||
EBUILD silc-server-1.1.19-r1.ebuild 1908 SHA256 d59b5962cd36b0eb2e6f58402f3ccd7397656d0b3a4156c93052a6b5111f06cb SHA512 0d7ab45af597be697c18182f95dfd16a0d29d2de0aa7dc7520098f26084a5a022372a18d30556c3eab312f176b1f9b5395765fda5264386aa22a459d56423400 WHIRLPOOL 32c36f7eb17a2b1b62a40e0cf6bf93fb2284a75d5c91f879a155260bcb91785dc9607eab6075083bc473f1e2b52458d1f812056c22cbe53531b537b01301629b
|
||||
EBUILD silc-server-1.1.19.ebuild 1748 SHA256 4e04211eee68f0fc812923a52a7f744144c5cb04e85ab730dc1e9e4bedaadc17 SHA512 98f24feb78bcb156a3bc7abd1631e58624f6d4e4e7bb9303b4357ed7a28b5ce5dafc3fd06ae18abc7c3943f91479792717b76d6041f6af6fbe49ecdb6fcd2ee5 WHIRLPOOL 567ba4ee22f6acb7ff781a2ac75489f88a4f6bff09c48bfb42496b8a957fae59bdd5c28c96d83a2e7547df6d6a0023e79525f586a8f9da4b83db6dca0a9e9cd0
|
||||
|
|
25
net-im/silc-server/files/silcd.initd-r1
Normal file
25
net-im/silc-server/files/silcd.initd-r1
Normal file
|
@ -0,0 +1,25 @@
|
|||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/net-im/silc-server/files/silcd.initd-r1,v 1.1 2013/10/31 10:01:09 polynomial-c Exp $
|
||||
|
||||
description="Server for Secure Internet Live Conferencing"
|
||||
pidfile="/run/silcd.pid"
|
||||
command="/usr/sbin/silcd"
|
||||
command_args="-f /etc/silc/silcd.conf >/dev/null 2>&1"
|
||||
start_stop_daemon_args="-w 2000"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use dns
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
local silcdconf="/etc/silc/silcd.conf"
|
||||
|
||||
if [ ! -f "${silcdconf}" ] ; then
|
||||
eerror "You need to set up a ${silcdconf} file in order to start the server."
|
||||
eerror "You can find an example config in /usr/share/doc/silc-server*"
|
||||
return 1
|
||||
fi
|
||||
}
|
83
net-im/silc-server/silc-server-1.1.19-r1.ebuild
Normal file
83
net-im/silc-server/silc-server-1.1.19-r1.ebuild
Normal file
|
@ -0,0 +1,83 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/net-im/silc-server/silc-server-1.1.18.ebuild,v 1.2 2014/01/08 06:41:24 vapier Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils flag-o-matic user
|
||||
|
||||
DESCRIPTION="Server for Secure Internet Live Conferencing"
|
||||
#SRC_URI="http://www.silcnet.org/download/server/sources/${P}.tar.bz2"
|
||||
SRC_URI="mirror://sourceforge/silc/${P}.tar.gz"
|
||||
HOMEPAGE="http://silcnet.org/"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
||||
IUSE="gmp ipv6 debug"
|
||||
|
||||
RDEPEND="!<net-im/silc-toolkit-1.1.12
|
||||
!<=net-im/silc-client-1.1.11
|
||||
gmp? ( dev-libs/gmp )"
|
||||
|
||||
pkg_setup() {
|
||||
enewuser silcd
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--datadir=/usr/share/${PN} \
|
||||
--datarootdir=/usr/share/${PN} \
|
||||
--mandir=/usr/share/man \
|
||||
--sysconfdir=/etc/silc \
|
||||
--libdir=/usr/$(get_libdir)/${PN} \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--disable-optimizations \
|
||||
--with-logsdir=/var/log/${PN} \
|
||||
--with-silcd-pid-file=/var/run/silcd.pid \
|
||||
$(use_with gmp) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable debug)
|
||||
}
|
||||
|
||||
#src_compile() {
|
||||
# emake -j1
|
||||
#}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
insinto /etc/silc
|
||||
doins doc/silcalgs.conf
|
||||
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins doc/examples/*.conf
|
||||
|
||||
fperms 600 /etc/silc
|
||||
keepdir /var/log/${PN}
|
||||
|
||||
rm -rf \
|
||||
"${D}"/usr/libsilc* \
|
||||
"${D}"/usr/include \
|
||||
"${D}"/etc/silc/silcd.{pub,prv}
|
||||
|
||||
newinitd "${FILESDIR}/silcd.initd-r1" silcd
|
||||
doman doc/silcd.8 doc/silcd.conf.5
|
||||
|
||||
sed -i \
|
||||
-e 's:10.2.1.6:0.0.0.0:' \
|
||||
-e 's:User = "nobody";:User = "silcd";:' \
|
||||
-e 's:/var/run:/run:' \
|
||||
-e 's:lassi.kuo.fi.ssh.com:localhost:' \
|
||||
doc/example_silcd.conf \
|
||||
|| die
|
||||
dodoc doc/example_silcd.conf
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [ ! -f "${ROOT}"/etc/silc/silcd.prv ] ; then
|
||||
einfo "Creating key pair in /etc/silc"
|
||||
silcd -C "${ROOT}"/etc/silc
|
||||
chmod 600 "${ROOT}"/etc/silc/silcd.{prv,pub}
|
||||
fi
|
||||
}
|
Loading…
Reference in a new issue