summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorhashworks2020-06-17 22:20:13 +0200
committerhashworks2020-06-17 22:20:13 +0200
commit1fb77549d194a01e631c4607f93e96905bb1e3e9 (patch)
tree58e0848cad00e3db7eeb4a72151c14a7c11c6201 /PKGBUILD
parenta7289672caac4bddec180f2fb5d3e8cadd81cb3b (diff)
downloadaur-pam-ihosts-git.tar.gz
Drop -fno-stack-protector and empty bin dir, respect LDFLAGS and CPPFLAGS
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 6 insertions, 1 deletions
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