[arch-commits] Commit in pam-ihosts/repos (community-x86_64 community-x86_64/PKGBUILD)
Justin Kromlinger
hashworks at archlinux.org
Sun Aug 30 08:14:38 UTC 2020
Date: Sunday, August 30, 2020 @ 08:14:37
Author: hashworks
Revision: 692465
archrelease: copy trunk to community-x86_64
Added:
pam-ihosts/repos/community-x86_64/
pam-ihosts/repos/community-x86_64/PKGBUILD
(from rev 692464, pam-ihosts/trunk/PKGBUILD)
----------+
PKGBUILD | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
Copied: pam-ihosts/repos/community-x86_64/PKGBUILD (from rev 692464, pam-ihosts/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2020-08-30 08:14:37 UTC (rev 692465)
@@ -0,0 +1,28 @@
+# Maintainer: hashworks <mail at hashworks.net>
+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
+}
More information about the arch-commits
mailing list