From ee46444515e9c27bc6040b7376a537b631709d72 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Wed, 26 Aug 2015 01:57:49 +0200 Subject: [PATCH] fcron: build PIE (dejavu) --- srcpkgs/fcron/patches/force-pam.patch | 24 ++++++++++++++++++++++++ srcpkgs/fcron/template | 5 +++++ 2 files changed, 29 insertions(+) create mode 100644 srcpkgs/fcron/patches/force-pam.patch diff --git a/srcpkgs/fcron/patches/force-pam.patch b/srcpkgs/fcron/patches/force-pam.patch new file mode 100644 index 00000000000..95729d946c1 --- /dev/null +++ b/srcpkgs/fcron/patches/force-pam.patch @@ -0,0 +1,24 @@ +From 60e5c02c9163de51f5d2bc9237da36d07c93f4b1 Mon Sep 17 00:00:00 2001 +From: Andrea Brancaleoni +Date: Wed, 26 Aug 2015 01:25:42 +0200 +Subject: [PATCH] force pam + +--- + configure.in | 1 + + 1 file changed, 1 insertion(+) + +diff --git configure.in configure.in +index 590d5b2..22ed5d7 100644 +--- configure.in ++++ configure.in +@@ -865,6 +865,7 @@ if test "$usepam" != "0" && echo "$LIBS" | grep -- "-lpam" > /dev/null ; then + else + usepam=0 + fi ++usepam=1 + USEPAM="$usepam" + AC_SUBST(USEPAM) + +-- +2.5.0 + diff --git a/srcpkgs/fcron/template b/srcpkgs/fcron/template index 450a0d87a04..00f85407e50 100644 --- a/srcpkgs/fcron/template +++ b/srcpkgs/fcron/template @@ -2,6 +2,7 @@ pkgname=fcron version=3.2.0 revision=4 +build_pie=yes build_style=gnu-configure configure_args=" --sysconfdir=/etc/fcron @@ -12,6 +13,7 @@ configure_args=" --docdir=/usr/share/doc --localstatedir=/var --with-piddir=/run + --with-pam=yes --with-sendmail=sendmail --with-editor=vi --with-shell=/bin/sh @@ -44,7 +46,10 @@ conf_files=" ## me: fcron installer is not the king. I'm. ## fcron: Wine is coming. +CFLAGS="-DHAVE_LIBPAM=1" +LDFLAGS="-lpam" pre_configure() { + sed -i 's|$(CFLAGS)|$(CFLAGS) $(LDFLAGS)|g' Makefile.in # pass LDFLAGS for PIE autoupdate autoconf -f -Wall }