mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
testing/rtnppd Added with postgresql support
This commit is contained in:
parent
9df1181ade
commit
75d7d985d2
40
testing/rtnppd/APKBUILD
Normal file
40
testing/rtnppd/APKBUILD
Normal 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"
|
||||
13
testing/rtnppd/Makefile.patch
Normal file
13
testing/rtnppd/Makefile.patch
Normal 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./
|
||||
1
testing/rtnppd/rtnppd.confd
Normal file
1
testing/rtnppd/rtnppd.confd
Normal file
@ -0,0 +1 @@
|
||||
#RTNPPD_OPTS=""
|
||||
21
testing/rtnppd/rtnppd.initd
Normal file
21
testing/rtnppd/rtnppd.initd
Normal 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 $?
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user