summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhashworks2020-06-17 22:20:13 +0200
committerhashworks2020-06-17 22:20:13 +0200
commit1fb77549d194a01e631c4607f93e96905bb1e3e9 (patch)
tree58e0848cad00e3db7eeb4a72151c14a7c11c6201
parenta7289672caac4bddec180f2fb5d3e8cadd81cb3b (diff)
downloadaur-pam-ihosts-git.tar.gz
Drop -fno-stack-protector and empty bin dir, respect LDFLAGS and CPPFLAGS
-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