Date: Sunday, August 30, 2020 @ 08:13:54 Author: hashworks Revision: 692464
Moved package from AUR Added: pam-ihosts/ pam-ihosts/repos/ pam-ihosts/trunk/ pam-ihosts/trunk/PKGBUILD ----------+ PKGBUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) Added: pam-ihosts/trunk/PKGBUILD =================================================================== --- pam-ihosts/trunk/PKGBUILD (rev 0) +++ pam-ihosts/trunk/PKGBUILD 2020-08-30 08:13:54 UTC (rev 692464) @@ -0,0 +1,28 @@ +# Maintainer: hashworks <[email protected]> +pkgname=pam-ihosts +pkgver=1.5.7 +pkgrel=5 +pkgdesc="A PAM module that provides access control by ip, mac-address, or country-code/region" +license=("GPL3") +arch=("x86_64") +depends=("pam") +url='https://github.com/ColumPaget/pam_ihosts' +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha256sums=(769f93da84f6c9b4fa7222b3d522d56ed78d536faac05fb9d267c105d1984fd4) + +prepare() { + sed -e 's|$(CFLAGS)|$(CFLAGS) $(LDFLAGS) $(CPPFLAGS)|;s| -fno-stack-protector ||' -i "pam_ihosts-${pkgver}/Makefile.in" + sed '/$(INSTALL) -d $(DESTDIR)$(bindir)/d' -i "pam_ihosts-${pkgver}/Makefile.in" +} + +build() { + cd "pam_ihosts-${pkgver}" + ./configure --prefix=/usr + make +} + +package() { + cd "pam_ihosts-${pkgver}" + install -Dm644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE" + make DESTDIR="${pkgdir}/" install +}
