diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-01-28 03:23:04 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-01-28 03:23:04 -0300 |
commit | 4fd38b1c7635719535ed16a2ed7cf6814ded90f8 (patch) | |
tree | 5a3adb6091fae6f777c4654663018715d04ab789 /pkgs/haveged/PKGBUILD | |
parent | 21c6105c4fdacb617bd6a1cc06222f1de93be47e (diff) |
Diffstat (limited to 'pkgs/haveged/PKGBUILD')
-rw-r--r-- | pkgs/haveged/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/haveged/PKGBUILD b/pkgs/haveged/PKGBUILD new file mode 100644 index 0000000..20fbc6f --- /dev/null +++ b/pkgs/haveged/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: pootzko <pootzko@gmail.com> +# Contributor: kfgz + +pkgname=haveged +pkgver=0.9 +pkgrel=1 +pkgdesc="A simple entropy daemon." +arch=('i686' 'x86_64') +url="http://www.issihosts.com/haveged/" +license="GPL" +depends=() +source=(${url}/${pkgname}-${pkgver}.tar.gz) +md5sums=('1830eae20c45f6b5d48790a1160392e5') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + export CFLAGS="-march=native -O0 -pipe" + + mv init.d rc.d + + sed -i 's/rc.d\/init.d/rc.d/g' rc.d/haveged + sed -i 's/\/subsys//g' rc.d/haveged + sed -i "15s/success/echo \'success\'/g" rc.d/haveged + sed -i "24s/success/echo \'success\'/g" rc.d/haveged + sed -i "15s/failure/echo \'failure\'/g" rc.d/haveged + sed -i "24s/failure/echo \'failure\'/g" rc.d/haveged + sed -i s/init.d/rc.d/g Makefile.am + sed -i s/init.d/rc.d/g Makefile.in + sed -i s/init.d/rc.d/g haveged.spec + sed -i s/init.d/rc.d/g README + + sed -i 's/usr\/local/usr/g' configure + sed -i 's/usr\/local/usr/g' haveged.spec + sed -i 's/usr\/local/usr/g' INSTALL + sed -i 's/usr\/local/usr/g' rc.d/haveged + sed -i 's/usr\/local/usr/g' README + + ./configure --prefix=/usr + make || return 1 + make DESTDIR=${pkgdir} install +} |