File amanda-2.6.1p1-pie.patch of Package amanda.549

--- amanda-2.6.1p1/amandad-src/Makefile.am.orig	2008-12-01 22:17:16.000000000 +0100
+++ amanda-2.6.1p1/amandad-src/Makefile.am	2009-11-25 21:54:45.643486000 +0100
@@ -19,6 +19,9 @@
 
 amlibexec_PROGRAMS =	amandad
 
+amandad_CFLAGS = -fPIE $(AM_CFLAGS)
+amandad_LDFLAGS = -pie $(AM_LDFLAGS)
+
 libamandad_la_SOURCES= amandad_util.c
 libamandad_la_LDFLAGS = -release $(VERSION)
 libamandad_la_LIBADD = ../common-src/libamanda.la
--- amanda-2.6.1p1/device-src/Makefile.am.orig	2008-12-01 22:17:17.000000000 +0100
+++ amanda-2.6.1p1/device-src/Makefile.am	2009-11-25 21:54:45.672471000 +0100
@@ -66,6 +66,8 @@
 if WANT_S3_DEVICE
 sbin_PROGRAMS += activate-devpay
 activate_devpay_SOURCES = activate-devpay.c
+activate_devpay_CFLAGS = -fPIE $(AM_CFLAGS)
+activate_devpay_LDFLAGS = -pie $(AM_LDFLAGS)
 endif
 
 ## headers
--- amanda-2.6.1p1/server-src/Makefile.am.orig	2008-12-08 02:59:26.000000000 +0100
+++ amanda-2.6.1p1/server-src/Makefile.am	2009-11-25 21:54:45.734485000 +0100
@@ -25,6 +25,21 @@
 			amservice	amtape		\
 			amreport
 
+amadmin_CFLAGS = -fPIE $(AM_CFLAGS)
+amadmin_LDFLAGS = -pie $(AM_LDFLAGS)
+amcheck_CFLAGS = -fPIE $(AM_CFLAGS)
+amcheck_LDFLAGS = -pie $(AM_LDFLAGS)
+amflush_CFLAGS = -fPIE $(AM_CFLAGS)
+amflush_LDFLAGS = -pie $(AM_LDFLAGS)
+amgetconf_CFLAGS = -fPIE $(AM_CFLAGS)
+amgetconf_LDFLAGS = -pie $(AM_LDFLAGS)
+amlabel_CFLAGS = -fPIE $(AM_CFLAGS)
+amlabel_LDFLAGS = -pie $(AM_LDFLAGS)
+amtape_CFLAGS = -fPIE $(AM_CFLAGS)
+amtape_LDFLAGS = -pie $(AM_LDFLAGS)
+amreport_CFLAGS = -fPIE $(AM_CFLAGS)
+amreport_LDFLAGS = -pie $(AM_LDFLAGS)
+
 noinst_PROGRAMS = taper_source_test
 
 amlibexec_PROGRAMS =	amindexd	amlogroll	amtrmidx	\
@@ -32,6 +47,27 @@
 			planner		taper		amcleanupdisk	\
 			chunker
 
+amindexd_CFLAGS = -fPIE $(AM_CFLAGS)
+amindexd_LDFLAGS = -pie $(AM_LDFLAGS)
+amlogroll_CFLAGS = -fPIE $(AM_CFLAGS)
+amlogroll_LDFLAGS = -pie $(AM_LDFLAGS)
+amtrmidx_CFLAGS = -fPIE $(AM_CFLAGS)
+amtrmidx_LDFLAGS = -pie $(AM_LDFLAGS)
+amtrmlog_CFLAGS = -fPIE $(AM_CFLAGS)
+amtrmlog_LDFLAGS = -pie $(AM_LDFLAGS)
+driver_CFLAGS = -fPIE $(AM_CFLAGS)
+driver_LDFLAGS = -pie $(AM_LDFLAGS)
+dumper_CFLAGS = -fPIE $(AM_CFLAGS)
+dumper_LDFLAGS = -pie $(AM_LDFLAGS)
+planner_CFLAGS = -fPIE $(AM_CFLAGS)
+planner_LDFLAGS = -pie $(AM_LDFLAGS)
+taper_CFLAGS = -fPIE $(AM_CFLAGS)
+taper_LDFLAGS = -pie $(AM_LDFLAGS)
+amclenupdisk_CFLAGS = -fPIE $(AM_CFLAGS)
+amclenupdisk_LDFLAGS = -pie $(AM_LDFLAGS)
+chunker_CFLAGS = -fPIE $(AM_CFLAGS)
+chunker_LDFLAGS = -pie $(AM_LDFLAGS)
+
 # Exclude scripts which depend on perl extension modules from the syntax checks
 CHECK_PERL = \
 	    amaddclient \
--- amanda-2.6.1p1/restore-src/Makefile.am.orig	2008-12-01 22:17:19.000000000 +0100
+++ amanda-2.6.1p1/restore-src/Makefile.am	2009-11-25 21:54:45.713482000 +0100
@@ -22,8 +22,16 @@
 
 sbin_PROGRAMS = 	amrestore amfetchdump
 
+amrestore_CFLAGS = -fPIE $(AM_CFLAGS)
+amrestore_LDFLAGS = -pie $(AM_LDFLAGS)
+amfetchdump_CFLAGS = -fPIE $(AM_CFLAGS)
+amfetchdump_LDFLAGS = -pie $(AM_LDFLAGS)
+
 amlibexec_PROGRAMS = 	amidxtaped
 
+amidxtaped_CFLAGS = -fPIE $(AM_CFLAGS)
+amidxtaped_LDFLAGS = -pie $(AM_LDFLAGS)
+
 ###
 # Because libamanda includes routines (e.g. regex) provided by some system
 # libraries, and because of the way libtool sets up the command line, we
--- amanda-2.6.1p1/recover-src/Makefile.am.orig	2008-12-01 22:17:17.000000000 +0100
+++ amanda-2.6.1p1/recover-src/Makefile.am	2009-11-25 21:54:45.706471000 +0100
@@ -20,6 +20,9 @@
 
 sbin_PROGRAMS =		amrecover
 
+amrecover_CFLAGS = -fPIE $(AM_CFLAGS)
+amrecover_LDFLAGS = -pie $(AM_LDFLAGS)
+
 ###
 # Because libamanda includes routines (e.g. regex) provided by some system
 # libraries, and because of the way libtool sets up the command line, we
--- amanda-2.6.1p1/oldrecover-src/Makefile.am.orig	2008-12-01 22:17:16.000000000 +0100
+++ amanda-2.6.1p1/oldrecover-src/Makefile.am	2009-11-25 21:54:45.681471000 +0100
@@ -19,6 +19,9 @@
 
 sbin_PROGRAMS =		amoldrecover
 
+amoldrecover_CFLAGS = -fPIE $(AM_CFLAGS)
+amoldrecover_LDFLAGS = -pie $(AM_LDFLAGS)
+
 ###
 # Because libamanda includes routines (e.g. regex) provided by some system
 # libraries, and because of the way libtool sets up the command line, we
openSUSE Build Service is sponsored by