mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
extra/gross: rename USER and GROUP variables in init.d script
This commit is contained in:
parent
ce8d68eaf5
commit
6cbc32e579
@ -2,11 +2,11 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=gross
|
||||
pkgver=1.0.1
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Greylisting of suspicious sources"
|
||||
url="http://code.google.com/p/gross/"
|
||||
license="BSD"
|
||||
depends="uclibc c-ares"
|
||||
depends=
|
||||
makedepends="c-ares-dev autoconf automake libtool sed"
|
||||
install="$pkgname.pre-install $pkgname.post-install"
|
||||
subpackages="$pkgname-doc $pkgname-dev"
|
||||
@ -45,10 +45,10 @@ build() {
|
||||
}
|
||||
|
||||
md5sums="f8f81b36850dcda30cb81799b9cee3b6 gross-1.0.1.tar.gz
|
||||
37b83bd0d94f66c733d5562c0327b70f gross.initd
|
||||
b0d8635b64c4a90d72c49e868f4c4c32 gross.initd
|
||||
5ca1c6e51c3243236e6564480b20279b gross.confd
|
||||
bb75b119ac96b8f99831ce6df810003f gross-1.0.1-configure.ac.patch
|
||||
7c504b653c71dcf7b192bc487b3516fd gross-1.0.1-default-conf.patch
|
||||
16e184d59d520db565388f010cc75e83 gross-1.0.1-user.patch
|
||||
4b55d1c5534167946cc11376d1b05c34 gross.post-install
|
||||
8f6e45b98888dbb9971f7681bf431f6f gross.pre-install"
|
||||
8f6e45b98888dbb9971f7681bf431f6f gross.pre-install
|
||||
4b55d1c5534167946cc11376d1b05c34 gross.post-install"
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
|
||||
NAME="grossd"
|
||||
DAEMON="/usr/sbin/$NAME"
|
||||
USER="gross"
|
||||
GROUP="gross"
|
||||
DAEMON_USER="gross"
|
||||
DAEMON_GROUP="gross"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
@ -12,18 +12,18 @@ depend() {
|
||||
check_config() {
|
||||
if [ ! -f /var/db/gross/state ] ; then
|
||||
einfo "Generating Gross database..."
|
||||
install -dD -o${USER} -g${GROUP} /var/db/gross
|
||||
${DAEMON} -Cu ${USER} > /dev/null
|
||||
install -dD -o${DAEMON_USER} -g${DAEMON_GROUP} /var/db/gross
|
||||
${DAEMON} -Cu ${DAEMON_USER} > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
start() {
|
||||
check_config || return 1
|
||||
ebegin "Starting ${NAME}"
|
||||
start-stop-daemon --start --quiet --background \
|
||||
start-stop-daemon --start --quiet \
|
||||
--exec ${DAEMON} -- \
|
||||
-p /var/run/gross/grossd.pid \
|
||||
-u ${USER} ${OPTS}
|
||||
-u ${DAEMON_USER} ${OPTS}
|
||||
eend $?
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user