Sip Express Router 2.0.0 ebuild
Created attachment 125010 [details] init.d script
Created attachment 125011 [details] conf.d script
Created attachment 125013 [details, diff] TLS patch
Created attachment 125014 [details, diff] auth_ldap patch
Created attachment 125015 [details] Ebuild
Comment on attachment 125015 [details] Ebuild ><HTML><HEAD/><BODY><PRE># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/net-misc/ser/ser-2.0.0.ebuild,v 1.3 2006/12/06 10:43:13 drizzt Exp $ > >inherit eutils flag-o-matic toolchain-funcs > >IUSE="ipv6 mysql radius postgres jabber ldap ssl presence" > >ETHZ_PV="1.0" >LDAP_PV="1.0" >LDAPS_PV="1.0" >SILOMAIL_PV="1.0" >MODULES_PV="2.0.0" > >DESCRIPTION="SIP Express Router" >HOMEPAGE="http://www.iptel.org/ser" >#SRC_URI="http://ftp.iptel.org/pub/ser/daily-snapshots/testing/${P}+cvs20070629_src.tar.gz" >SRC_URI="ftp://siprouter.onsip.org/pub/ser/${P}_src.tar.gz" > >SLOT="0" >LICENSE="GPL-2" >KEYWORDS="~ppc ~sparc ~x86" > >RDEPEND=" > mysql? ( virtual/mysql ) > radius? ( >=net-dialup/radiusclient-ng-0.5.0 ) > postgres? ( dev-db/postgresql ) > jabber? ( dev-libs/expat ) > ldap? ( > net-nds/openldap > ssl? ( dev-libs/openssl ) > )" > >DEPEND="${RDEPEND} > >=sys-devel/bison-1.35 > >=sys-devel/flex-2.5.4a" > >pkg_setup() { > enewgroup ser > enewuser ser -1 -1 /dev/null ser >} > >src_unpack() { > local modules modules_group MY_A x > > # unpack ser source > unpack ${P}_src.tar.gz > > cd "${S}" > use ipv6 || \ > sed -i -e "s/-DUSE_IPV6//g" Makefile.defs || die > sed -i -e 's/\(CFLAGS+=-mcpu=ultrasparc\) -minline-all-stringops/\1/g' \ > Makefile.defs || die #157109 > > modules_group="standard" > > use mysql && \ > modules_group="${modules_group} mysql" > > use radius && \ > modules_group="${modules_group} radius" \ > modules="${modules} group_radius uri_radius" > > use presence && \ > modules_group="${modules_group} presence" > > use jabber && \ > modules="${modules} jabber" > > use postgres && \ > modules="${modules} postgres" > > use ldap && \ > epatch "${FILESDIR}/${P}-auth_ldap.patch" && \ > modules="${modules} ldap auth_ldap" > > use ssl && \ > epatch "${FILESDIR}/${P}-tls.patch" && \ > modules="${modules} tls" > > # put list of modules into Makefile, we need the list > # during compile and install phase... > sed -i -e "s:^\(skip_modules.*\):\1 \ngroup_include?=${modules_group} \ninclude_modules?=${modules}:" \ > Makefile || die > > # fix ser.cfg > sed -i -e "/force_send_socket(smaug:5080);/ d" \ > etc/ser.cfg || die > > # remove sasl if openldap hasn't been built with it > if use ldap && ! built_with_use net-nds/openldap sasl; then > sed -i -e "s:-lsasl::g" \ > "${S}"/modules/ldap/Makefile || die > sed -i -e "s:-lsasl::g" \ > "${S}"/modules/auth_ldap/Makefile || die > fi >} > >src_compile() { > # add -fPIC > append-flags -fPIC > > emake all \ > CC="`tc-getCC`" \ > CFLAGS="${CFLAGS}" \ > cfg-prefix=/ \ > cfg-target=/etc/ser/ \ > ${myconf} || die >} > >src_install () { > emake install \ > prefix="" \ > bin-prefix="${D}"/usr/sbin \ > bin-dir="" \ > cfg-prefix="${D}"/etc \ > cfg-dir=ser/ \ > cfg-target=/etc/ser/ \ > modules-prefix="${D}"/usr/lib/ser \ > modules-dir=modules \ > modules-target=/usr/lib/ser/modules/ \ > man-prefix="${D}"/usr/share/man \ > man-dir="" \ > doc-prefix="${D}"/usr/share/doc \ > doc-dir=${P} || die > > newinitd "${FILESDIR}"/ser.rc6 ser > newconfd "${FILESDIR}"/ser.confd ser > exeinto /usr/sbin > newexe scripts/harv_ser.sh harv_ser.sh > newexe scripts/sc serctl > use postgres && \ > ( newexe scripts/postgres/ser_postgres.sh ser_postgres.sh || die ) > use mysql && \ > ( newexe scripts/mysql/ser_mysql.sh ser_mysql.sh || die ) > > chown -R root:ser "${D}"/etc/ser > chmod 750 "${D}"/etc/ser > chmod 640 "${D}"/etc/ser/* > > # fix manpages > sed -i -e "s:^.B /ser-${PV}AUTHORS:.B /usr/share/doc/${PF}/AUTHORS:" \ > -e "s:^.B /ser:.B /usr/sbin/ser:" \ > "${D}"/usr/share/man/*/* || die >} > >pkg_postinst() { > if has_version ${CATEGORY}/${PN}; then > einfo "Changing permissions on ${ROOT}etc/ser" > > chown -R root:ser "${ROOT}"/etc/ser > chmod 750 "${ROOT}"/etc/ser > chmod 640 "${ROOT}"/etc/ser/* > fi >} ></PRE></BODY></HTML>
# Michał Górny <mgorny@gentoo.org> (05 Jun 2017) # (on behalf of Treecleaner project) # Unmaintained in Gentoo, awfully old version. Uses obsolete # built_with_use. # Removal in 30 days. Bug #610454. net-misc/ser
commit 8fba210bb099eb6e5733fde1e701cf6a77af6252 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: Wed Jul 5 15:41:44 2017 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: Wed Jul 5 15:47:55 2017 net-misc/ser: Remove last-rited pkg, #610454