mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
sane: removed systemd support
This commit is contained in:
parent
0dd061cddf
commit
4ec0396f6f
3 changed files with 1 additions and 28 deletions
|
@ -1,9 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=saned incoming socket
|
|
||||||
|
|
||||||
[Socket]
|
|
||||||
ListenStream=6566
|
|
||||||
Accept=yes
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=sockets.target
|
|
|
@ -1,8 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Scanner Service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Group=scanner
|
|
||||||
ExecStart=/usr/sbin/saned
|
|
||||||
StandardInput=socket
|
|
||||||
StandardError=syslog
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for 'sane'.
|
# Template build file for 'sane'.
|
||||||
pkgname=sane
|
pkgname=sane
|
||||||
version=1.0.24
|
version=1.0.24
|
||||||
revision=12
|
revision=13
|
||||||
wrksrc="sane-backends-${version}"
|
wrksrc="sane-backends-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-locking --enable-avahi --disable-latex --enable-ipv6
|
configure_args="--disable-locking --enable-avahi --disable-latex --enable-ipv6
|
||||||
|
@ -92,11 +92,6 @@ license="GPL-2"
|
||||||
distfiles="http://ftp.lfs-matrix.net/pub/blfs/conglomeration/sane-backends/sane-backends-${version}.tar.gz"
|
distfiles="http://ftp.lfs-matrix.net/pub/blfs/conglomeration/sane-backends/sane-backends-${version}.tar.gz"
|
||||||
checksum=27c7085a54f1505d8b551e6f1e69d30e1ee57328b18429bb2225dabf4c45462d
|
checksum=27c7085a54f1505d8b551e6f1e69d30e1ee57328b18429bb2225dabf4c45462d
|
||||||
|
|
||||||
build_options="systemd"
|
|
||||||
if [ "$build_option_systemd" ]; then
|
|
||||||
systemd_services="saned.socket on"
|
|
||||||
fi
|
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
for f in $(find $wrksrc -type f -name *.[ch]); do
|
for f in $(find $wrksrc -type f -name *.[ch]); do
|
||||||
sed -e 's,u_char ,unsigned char ,g' -e 's,u_long,unsigned long ,g' -i $f
|
sed -e 's,u_char ,unsigned char ,g' -e 's,u_long,unsigned long ,g' -i $f
|
||||||
|
@ -105,11 +100,6 @@ pre_configure() {
|
||||||
post_install() {
|
post_install() {
|
||||||
# fix hp officejets
|
# fix hp officejets
|
||||||
echo "#hpaio" >> ${DESTDIR}/etc/sane.d/dll.conf
|
echo "#hpaio" >> ${DESTDIR}/etc/sane.d/dll.conf
|
||||||
# Install systemd service.
|
|
||||||
if [ "$build_option_systemd" ]; then
|
|
||||||
vinstall ${FILESDIR}/saned@.service 644 usr/lib/systemd/system
|
|
||||||
vinstall ${FILESDIR}/saned.socket 644 usr/lib/systemd/system
|
|
||||||
fi
|
|
||||||
|
|
||||||
vinstall ${FILESDIR}/saned.xinetd 644 etc/xinetd.d saned.conf
|
vinstall ${FILESDIR}/saned.xinetd 644 etc/xinetd.d saned.conf
|
||||||
vinstall ${wrksrc}/tools/sane-backends.pc 644 usr/lib/pkgconfig
|
vinstall ${wrksrc}/tools/sane-backends.pc 644 usr/lib/pkgconfig
|
||||||
|
|
Loading…
Add table
Reference in a new issue