summaryrefslogtreecommitdiff
path: root/community/macchanger
diff options
context:
space:
mode:
Diffstat (limited to 'community/macchanger')
-rw-r--r--community/macchanger/PKGBUILD8
-rw-r--r--community/macchanger/macchanger.install21
2 files changed, 26 insertions, 3 deletions
diff --git a/community/macchanger/PKGBUILD b/community/macchanger/PKGBUILD
index a42f7aa87..fbcdea6ab 100644
--- a/community/macchanger/PKGBUILD
+++ b/community/macchanger/PKGBUILD
@@ -1,14 +1,16 @@
-# $Id: PKGBUILD 87606 2013-04-04 02:46:04Z kkeen $
+# $Id: PKGBUILD 101347 2013-11-23 01:20:53Z kkeen $
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=macchanger
pkgver=1.6.0
-pkgrel=1
+pkgrel=2
pkgdesc="A small utility to change your NIC's MAC address"
arch=('i686' 'x86_64' 'mips64el')
url="http://ftp.gnu.org/gnu/macchanger"
license=('GPL')
+depends=('glibc')
+install='macchanger.install'
source=(http://ftp.gnu.org/gnu/macchanger/${pkgname}-${pkgver}.tar.gz)
md5sums=('1257b18e9067a8192c9747da52aabdda')
@@ -16,7 +18,7 @@ build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr \
--mandir=/usr/share/man \
- --infodir=/usr/share/man
+ --infodir=/usr/share/info
make
}
diff --git a/community/macchanger/macchanger.install b/community/macchanger/macchanger.install
new file mode 100644
index 000000000..c595c6290
--- /dev/null
+++ b/community/macchanger/macchanger.install
@@ -0,0 +1,21 @@
+infodir=/usr/share/info
+filelist=(macchanger.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ usr/bin/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
+ usr/bin/install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+