diff options
author | root <root@rshg054.dnsready.net> | 2013-02-08 00:08:16 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-02-08 00:08:16 -0800 |
commit | 7c92c5fcfb5653f63243842299e413672653d1ad (patch) | |
tree | 3487915cdf6e673c8a6dccfbd2a526e341550c87 /extra/usermin | |
parent | 8e5a0a990a12a59cadb687cae22a1960fce1660b (diff) |
Fri Feb 8 00:08:16 PST 2013
Diffstat (limited to 'extra/usermin')
-rw-r--r-- | extra/usermin/PKGBUILD | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/extra/usermin/PKGBUILD b/extra/usermin/PKGBUILD index 04b7e7235..6a8640a5f 100644 --- a/extra/usermin/PKGBUILD +++ b/extra/usermin/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 172026 2012-11-26 16:13:58Z tpowa $ +# $Id: PKGBUILD 177553 2013-02-07 05:50:05Z eric $ # Maintainer: Tobias Powalowski <tpowa@archlinux.org> pkgname=usermin pkgver=1.530 @@ -48,8 +48,8 @@ source=(http://downloads.sourceforge.net/sourceforge/webadmin/$pkgname-$pkgver.t usermin.service ftp://ftp.archlinux.org/other/usermin/usermin-config.tar.bz2) -build() { - cd $startdir/src/$pkgname-$pkgver +package() { + cd "$srcdir"/$pkgname-$pkgver # remove modules we do not support @@ -67,26 +67,26 @@ build() { (find . -name '*.cgi' ; find . -name '*.pl') | perl perlpath.pl /usr/bin/perl - # create dirs - mkdir -p $startdir/pkg/opt/usermin - mkdir -p $startdir/pkg/var/log/usermin - mkdir -p $startdir/pkg/etc/usermin + mkdir -p "$pkgdir"/opt/usermin + mkdir -p "$pkgdir"/var/log/usermin + mkdir -p "$pkgdir"/etc/usermin # install pam stuff - install -D -m 644 usermin-pam $startdir/pkg/etc/pam.d/usermin + install -D -m 644 usermin-pam "$pkgdir"/etc/pam.d/usermin # remove other distros and add only Archlinux don't change next line else it will not work! rm os_list.txt echo 'Archlinux Any version generic-linux * -d "/etc/pacman.d"' >> os_list.txt # copy stuff to right dirs - cd $startdir/src/$pkgname-$pkgver - cp -rp * $startdir/pkg/opt/usermin - cd $startdir/src/usermin-config - cp -rfp * $startdir/pkg/opt/usermin + cd "$srcdir"/$pkgname-$pkgver + cp -rp * "$pkgdir"/opt/usermin + cd "$srcdir"/usermin-config + cp -rfp * "$pkgdir"/opt/usermin # define parameters for setup.sh - config_dir=$startdir/pkg/etc/usermin - var_dir=$startdir/pkg/var/log/usermin + config_dir="$pkgdir"/etc/usermin + var_dir="$pkgdir"/var/log/usermin perl=/usr/bin/perl autoos=1 port=20000 @@ -100,33 +100,33 @@ build() { nouninstall=1 noperlpath=1 atbootyn=n - tempdir=$startdir/pkg/tmp + tempdir="$pkgdir"/tmp export config_dir var_dir perl autoos port tempdir ssl nochown autothird nouninstall nostart noperlpath atbootyn login crypt # Fix setup.sh - sed -i -e 's:read atbootyn::g' -e 's:exit 13::g' $startdir/pkg/opt/usermin/setup.sh - $startdir/pkg/opt/usermin/setup.sh + sed -i -e 's:read atbootyn::g' -e 's:exit 13::g' "$pkgdir"/opt/usermin/setup.sh + "$pkgdir"/opt/usermin/setup.sh # Fixup the config files to use their real locations - sed -i 's:^pidfile=.*$:pidfile=/var/run/usermin.pid:' $startdir/pkg/etc/usermin/miniserv.conf - find $startdir/pkg/etc/usermin -type f -exec sed -i "s:$startdir/pkg::g" {} \; + sed -i 's:^pidfile=.*$:pidfile=/var/run/usermin.pid:' "$pkgdir"/etc/usermin/miniserv.conf + find "$pkgdir"/etc/usermin -type f -exec sed -i "s:$pkgdir::g" {} \; # make it only accessible by localhost - echo 'allow=127.0.0.1' >> $startdir/pkg/etc/usermin/miniserv.conf + echo 'allow=127.0.0.1' >> "$pkgdir"/etc/usermin/miniserv.conf # enable user and password login - sed -i -e '/localauth/d' $startdir/pkg/etc/usermin/miniserv.conf + sed -i -e '/localauth/d' "$pkgdir"/etc/usermin/miniserv.conf #install systemd service file - install -D -m 644 $startdir/src/usermin.service $startdir/pkg/usr/lib/systemd/system/usermin.service + install -D -m 644 "$srcdir"/usermin.service "$pkgdir"/usr/lib/systemd/system/usermin.service #install rc file - install -D -m 755 $startdir/src/usermin.rc $startdir/pkg/etc/rc.d/usermin + install -D -m 755 "$srcdir"/usermin.rc "$pkgdir"/etc/rc.d/usermin # delete temp dir - rm -r $startdir/pkg/tmp + rm -r "$pkgdir"/tmp #install license - install -m 644 -D $startdir/src/$pkgname-$pkgver/LICENCE $startdir/pkg/usr/share/licenses/usermin/LICENCE + install -m 644 -D "$srcdir"/$pkgname-$pkgver/LICENCE "$pkgdir"/usr/share/licenses/usermin/LICENCE } md5sums=('5a00ec2d294935676efc12f607446fb4' 'cfef4490cd1ef9517c0b39a7bd75c968' |