summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 7 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0b4ac67d5d4..db43344628b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = pam-ihosts-git
pkgdesc = A PAM module that provides access control by ip, mac-address, or country-code/region
pkgver = 1.5.7.r0.g24f61b1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/ColumPaget/pam_ihosts
arch = x86_64
license = GPL3
diff --git a/PKGBUILD b/PKGBUILD
index a706a79a7d1..38f974a759b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=pam-ihosts-git
_pkgname="${pkgname%-git}"
pkgver=1.5.7.r0.g24f61b1
-pkgrel=1
+pkgrel=2
pkgdesc="A PAM module that provides access control by ip, mac-address, or country-code/region"
arch=("x86_64")
url="https://github.com/ColumPaget/pam_ihosts"
@@ -19,6 +19,11 @@ pkgver() {
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
+prepare() {
+ sed -e 's|$(CFLAGS)|$(CFLAGS) $(LDFLAGS) $(CPPFLAGS)|;s| -fno-stack-protector ||' -i "${srcdir}/${_pkgname}/Makefile.in"
+ sed '/$(INSTALL) -d $(DESTDIR)$(bindir)/d' -i "${srcdir}/${_pkgname}/Makefile.in"
+}
+
build() {
cd "${srcdir}/${_pkgname}"
./configure --prefix=/usr