2013-08-13 01:17:55 +00:00
|
|
|
# Maintainer: Danilo Luvizotto <danilo.luvizotto@gmail.com>
|
|
|
|
# Contributor: Wieland Hoffmann <the_mineo@web.de>
|
2010-12-22 01:39:15 +00:00
|
|
|
# Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
|
|
|
|
pkgname=p910nd
|
2011-06-09 21:54:23 +00:00
|
|
|
pkgver=0.95
|
2013-08-13 01:17:55 +00:00
|
|
|
pkgrel=7
|
2010-12-22 01:39:15 +00:00
|
|
|
pkgdesc="A small printer daemon intended for diskless workstations that passes jobs directly to the printer"
|
2013-08-13 01:17:55 +00:00
|
|
|
arch=('i686' 'x86_64' 'armv5' 'armv5h' 'armv6' 'armv6h' 'armv7' 'armv7h')
|
2010-12-22 01:39:15 +00:00
|
|
|
url="http://p910nd.sourceforge.net"
|
|
|
|
license=('GPL2')
|
|
|
|
backup=('etc/conf.d/p910nd')
|
|
|
|
options=('emptydirs')
|
|
|
|
source=(http://downloads.sf.net/$pkgname/$pkgname-$pkgver.tar.bz2 \
|
2013-08-13 01:17:55 +00:00
|
|
|
$pkgname.service \
|
|
|
|
$pkgname.conf)
|
|
|
|
|
|
|
|
CONFIGDIR=/etc/conf.d
|
|
|
|
INITSCRIPT=""
|
|
|
|
SCRIPTDIR=""
|
2010-12-22 01:39:15 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
2011-06-09 21:54:23 +00:00
|
|
|
sed -e "s|/var/lock/subsys|/var/lock/$pkgname|" -i $pkgname.c
|
2013-08-13 01:17:55 +00:00
|
|
|
sed -e 's|$(INSTALL) $(INITSCRIPT) $(DESTDIR)$(SCRIPTDIR)/$(PROG)||' -i Makefile
|
|
|
|
make CONFIGDIR=$CONFIGDIR INITSCRIPT=$INITSCRIPT SCRIPTDIR=$SCRIPTDIR
|
|
|
|
sed -e 's|P910ND_OPTS=""|P910ND_OPTS="-f /dev/usb/lp0"|' -i $pkgname.conf
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
make CONFIGDIR=$CONFIGDIR INITSCRIPT=$INITSCRIPT SCRIPTDIR=$SCRIPTDIR DESTDIR=$pkgdir install
|
2010-12-22 01:39:15 +00:00
|
|
|
install -d -m755 $pkgdir/var/lock/$pkgname
|
2013-08-13 01:17:55 +00:00
|
|
|
install -d -m755 $pkgdir/usr/lib/systemd/system
|
|
|
|
install -d -m755 $pkgdir/usr/lib/tmpfiles.d
|
|
|
|
install -m644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
|
|
|
|
install -m644 $srcdir/$pkgname.conf $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf
|
2010-12-22 01:39:15 +00:00
|
|
|
chmod 1777 $pkgdir/var/lock
|
|
|
|
}
|
2013-08-13 01:17:55 +00:00
|
|
|
|
2011-06-09 21:54:23 +00:00
|
|
|
md5sums=('c7ac6afdf7730ac8387a8e87198d4491'
|
2013-08-13 01:17:55 +00:00
|
|
|
'e37030a69b7bf302cfb23d88e25ebbdf'
|
|
|
|
'ea1db6d612058532c525efedd54990f2')
|