diff options
author | Florian Pritz <bluewind@xssn.at> | 2011-01-16 18:39:41 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2011-01-16 18:39:41 +0100 |
commit | 1caa1d5eb39e6d1b0bf96af4be1e095b31495305 (patch) | |
tree | e8a316c6168770f95125263fa9a3d196fa6d74c2 /acct | |
parent | b7197bccd0bc74c2082c935937b6d947c3ae756d (diff) | |
download | aur-packages-1caa1d5eb39e6d1b0bf96af4be1e095b31495305.tar.gz aur-packages-1caa1d5eb39e6d1b0bf96af4be1e095b31495305.tar.xz |
mass changes
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'acct')
-rw-r--r-- | acct/PKGBUILD | 36 | ||||
-rw-r--r-- | acct/acct.install | 20 |
2 files changed, 56 insertions, 0 deletions
diff --git a/acct/PKGBUILD b/acct/PKGBUILD new file mode 100644 index 0000000..b372d1b --- /dev/null +++ b/acct/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: SpepS <dreamspepser at yahoo dot it> +# Contributor: damir <damir@archlinux.org> +# Contributor: phrakture + +pkgname=acct +pkgver=6.5.5 +pkgrel=1 +pkgdesc="The GNU Accounting Utilities provide login and process accounting utilities for GNU/Linux and other systems." +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/acct/" +license=('GPL') +depends=('glibc') +install="$pkgname.install" +source=("http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz") +md5sums=('554a9e9c6aa3482df07e80853eac0350') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr + + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir/" install + + rm $pkgdir/usr/share/info/dir + gzip $pkgdir/usr/share/info/* + + # Renaming last + mv "$pkgdir/usr/bin/last" "$pkgdir/usr/bin/last-acct" + mv "$pkgdir/usr/share/man/man1/last.1" "$pkgdir/usr/share/man/man1/last-acct.1" +} diff --git a/acct/acct.install b/acct/acct.install new file mode 100644 index 0000000..7007f0f --- /dev/null +++ b/acct/acct.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(accounting.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} |