# Makefile for source rpm: proftpd NAME := proftpd SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common for d in common ../common ../../common ../../../common ../../../../common ; do if [ -f $$d/trunk/Makefile.common ] ; then if [ -f $$d/trunk/.svn -a -w $$/Makefile.common ] ; then cd $$d/trunk ; svn update --quiet ; fi ; echo "$$d/trunk/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) include $(MAKEFILE_COMMON) # EL-4 is close to end of life FROM_DIST = rhel5 # Build everything by default MOCK_OPTIONS = --with everything tarball: $(SPECFILE) rm -rf proftpd-$(VERSION) tar xfj proftpd-$(VERSION).tar.bz2.orig cd proftpd-$(VERSION); for p in ../*.patch; do patch -p1 < $$p; done; cd - cp -a proftpd.init.d proftpd.logrotate proftpd.pam proftpd.service proftpd-tmpfs.conf xinetd proftpd-$(VERSION)/contrib/dist/rpm/ cp -a proftpd.spec proftpd-$(VERSION)/ cp -a basic-pam.conf proftpd-$(VERSION)/sample-configurations/ sed -i -e 's/59 Temple Place, Suite 330, Boston, MA *02111-1307, USA/51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA/' `grep -rl '59 Temple Place, Suite 330, Boston, MA 02111-1307, USA' proftpd-$(VERSION)` tar cfj proftpd-$(VERSION).tar.bz2 proftpd-$(VERSION)