testing/rtnppd Added with postgresql support

This commit is contained in:
Michael Mason 2010-03-30 14:56:43 +00:00
parent 9df1181ade
commit 75d7d985d2
4 changed files with 75 additions and 0 deletions

40
testing/rtnppd/APKBUILD Normal file
View File

@ -0,0 +1,40 @@
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=rtnppd
_builddir="$pkgname"
pkgver=1.7b
pkgrel=0
pkgdesc="A program route TNPP 3.8 (Telocator Network Paging Protocol) packets between serial and other links"
url="http://sourceforge.net/projects/rtnppd/"
license="GPL"
depends=""
makedepends="postgresql-dev"
install=
subpackages=""
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
Makefile.patch
$pkgname.initd
$pkgname.confd"
build() {
cd "$srcdir"/"$_builddir"
patch -p1 < ../Makefile.patch || return 1
make || return 1
}
package() {
cd "$srcdir"/"$_builddir"
#make DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -m755 -D ./rtnppd "$pkgdir"/usr/sbin/rtnppd
install -m755 -D ./tnpppage "$pkgdir"/usr/sbin/tnpppage
install -m755 -D ./testq "$pkgdir"/usr/sbin/testq
install -m644 -D ./rtnppd.conf "$pkgdir"/etc/rtnppd/rtnppd.conf
install -m644 -D ./tnpp_dev.conf "$pkgdir"/etc/rtnppd/tnpp_dev.conf
install -m644 -D ./tnpp_trans.conf "$pkgdir"/etc/rtnppd/tnpp_trans.conf
}
md5sums="3f484a7307b1c237652135fcc26ee798 rtnppd-1.7b.tar.gz
17ec69098e967021face024251da20fc Makefile.patch
9bb8ca4d1f073d0b3663d368ff322ecf rtnppd.initd
58b8113f483bd824e9ef82fbfdf743d8 rtnppd.confd"

View File

@ -0,0 +1,13 @@
--- rtnppd.orig/Makefile Tue Mar 30 14:46:20 2010
+++ rtnppd/Makefile Tue Mar 30 14:46:30 2010
@@ -23,8 +23,8 @@
# Use PostgreSQL-server (with includes in /usr/include/pgsql
# and libs in /usr/lib
-#CFLAGS = -DUSE_POSTGRESQL -I/usr/include/pgsql
-#LIBS = -lpq
+CFLAGS = -DUSE_POSTGRESQL -I/usr/include/pgsql
+LIBS = -lpq
PREFIX = /usr/local
INCLUDES = -I./

View File

@ -0,0 +1 @@
#RTNPPD_OPTS=""

View File

@ -0,0 +1,21 @@
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DAEMON=/usr/sbin/rtnppd
USER=rtnppd
start() {
ebegin "Starting $(basename $DAEMON)"
start-stop-daemon --start --user ${USER} --exec ${DAEMON} \
-- ${RTNPPD_OPTS}
eend $?
}
stop() {
ebegin "Stopping $(basename $DAEMON)"
start-stop-daemon --stop --exec ${DAEMON}
eend $?
}