Commit cb56489f authored by Natanael Copa's avatar Natanael Copa

extra/gross: rename init.d script to grossd

partly fixes #64
parent 7044886c
...@@ -2,17 +2,18 @@ ...@@ -2,17 +2,18 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gross pkgname=gross
pkgver=1.0.1 pkgver=1.0.1
pkgrel=1 pkgrel=2
pkgdesc="Greylisting of suspicious sources" pkgdesc="Greylisting of suspicious sources"
url="http://code.google.com/p/gross/" url="http://code.google.com/p/gross/"
license="BSD" license="BSD"
depends= depends=
makedepends="c-ares-dev autoconf automake libtool sed" makedepends="c-ares-dev autoconf automake libtool sed"
install="$pkgname.pre-install $pkgname.post-install" install="$pkgname.pre-install $pkgname.post-install $pkgname.pre-upgrade
$pkgname.post-upgrade"
subpackages="$pkgname-doc $pkgname-dev" subpackages="$pkgname-doc $pkgname-dev"
source="http://gross.googlecode.com/files/$pkgname-$pkgver.tar.gz source="http://gross.googlecode.com/files/$pkgname-$pkgver.tar.gz
$pkgname.initd grossd.initd
$pkgname.confd grossd.confd
gross-1.0.1-configure.ac.patch gross-1.0.1-configure.ac.patch
gross-1.0.1-default-conf.patch gross-1.0.1-default-conf.patch
gross-1.0.1-user.patch gross-1.0.1-user.patch
...@@ -40,15 +41,17 @@ build() { ...@@ -40,15 +41,17 @@ build() {
make -j1 DESTDIR="$pkgdir" install make -j1 DESTDIR="$pkgdir" install
install -dD "$pkgdir"/var/run/gross install -dD "$pkgdir"/var/run/gross
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/gross install -m755 -D "$srcdir"/grossd.initd "$pkgdir"/etc/init.d/grossd
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/gross install -m644 -D "$srcdir"/grossd.confd "$pkgdir"/etc/conf.d/grossd
} }
md5sums="f8f81b36850dcda30cb81799b9cee3b6 gross-1.0.1.tar.gz md5sums="f8f81b36850dcda30cb81799b9cee3b6 gross-1.0.1.tar.gz
b0d8635b64c4a90d72c49e868f4c4c32 gross.initd b0d8635b64c4a90d72c49e868f4c4c32 grossd.initd
5ca1c6e51c3243236e6564480b20279b gross.confd 5ca1c6e51c3243236e6564480b20279b grossd.confd
bb75b119ac96b8f99831ce6df810003f gross-1.0.1-configure.ac.patch bb75b119ac96b8f99831ce6df810003f gross-1.0.1-configure.ac.patch
7c504b653c71dcf7b192bc487b3516fd gross-1.0.1-default-conf.patch 7c504b653c71dcf7b192bc487b3516fd gross-1.0.1-default-conf.patch
16e184d59d520db565388f010cc75e83 gross-1.0.1-user.patch 16e184d59d520db565388f010cc75e83 gross-1.0.1-user.patch
8f6e45b98888dbb9971f7681bf431f6f gross.pre-install 8f6e45b98888dbb9971f7681bf431f6f gross.pre-install
4b55d1c5534167946cc11376d1b05c34 gross.post-install" 4b55d1c5534167946cc11376d1b05c34 gross.post-install
87e7d76dace9cedf61efc04cdb6a905c gross.pre-upgrade
46df3a643ba26f3eb2d6a09f616e421d gross.post-upgrade"
#!/bin/sh
moved=
for i in /etc/runlevels/*/gross; do
if [ -L $i ]; then
mv ${i} ${i}d
moved=1
fi
done
if [ -n "$moved" ]; then
echo " *"
echo " * NOTICE: /etc/init.d/gross is renamed to /etc/init.d/grossd"
echo " *"
fi
#!/bin/sh
old=/etc/conf.d/gross
new=/etc/conf.d/grossd
if [ -f "$old" ] && [ ! -f "$new" ]; then
mv "$old" "$new"
echo " *"
echo " * NOTICE: $old was renamed to $new"
echo " *"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment