[csw-devel] SF.net SVN: gar:[8127] csw/mgar/pkg/pureftpd/trunk/Makefile
bensons at users.sourceforge.net
bensons at users.sourceforge.net
Sat Jan 23 23:25:06 CET 2010
Revision: 8127
http://gar.svn.sourceforge.net/gar/?rev=8127&view=rev
Author: bensons
Date: 2010-01-23 22:24:56 +0000 (Sat, 23 Jan 2010)
Log Message:
-----------
include example config
Modified Paths:
--------------
csw/mgar/pkg/pureftpd/trunk/Makefile
Modified: csw/mgar/pkg/pureftpd/trunk/Makefile
===================================================================
--- csw/mgar/pkg/pureftpd/trunk/Makefile 2010-01-23 20:45:12 UTC (rev 8126)
+++ csw/mgar/pkg/pureftpd/trunk/Makefile 2010-01-23 22:24:56 UTC (rev 8127)
@@ -1,3 +1,9 @@
+# known build facts
+#
+# no linkage against
+# - ldap
+# - mysql
+# - pgsql
GARNAME = pureftpd
GARVERSION = 1.0.27
CATEGORIES = net
@@ -40,6 +46,9 @@
# No test suite available
TEST_SCRIPTS =
+sysconfdir = /etc/opt/csw
+SAMPLECONF = $(sysconfdir)/$(SRCNAME)/*.conf
+
include gar/category.mk
# make sure, the linker uses libcrypt before libssl
@@ -57,7 +66,19 @@
# create config directory
pre-install-modulated:
ginstall -d $(DESTDIR)$(sysconfdir)/$(SRCNAME)
+ ginstall -d $(DESTDIR)$(docdir)/$(SRCNAME)
ginstall -d $(DESTDIR)/var/opt/csw/run
perl -pi -e 's@/var/run@/var/opt/csw/run@' ${WORKSRC}/src/ftpd.h
perl -pi -e 's@/var/run@/var/opt/csw/run@' ${WORKSRC}/src/ftpwho-update.h
perl -pi -e 's@/var/run@/var/opt/csw/run@' ${WORKSRC}/src/upload-pipe.h
+ @$(MAKECOOKIE)
+
+conf-list = $(WORKSRC)/pureftpd-ldap.conf
+conf-list += $(WORKSRC)/pureftpd-mysql.conf
+conf-list += $(WORKSRC)/pureftpd-pgsql.conf
+post-install-modulated:
+ ( for file in $(conf-list) ; do \
+ ginstall -m 644 $$file $(DESTDIR)$(sysconfdir)/$(SRCNAME) ; \
+ done )
+ ginstall -m 644 $(WORKSRC)/pureftpd.schema $(DESTDIR)$(docdir)/$(SRCNAME)
+ @$(MAKECOOKIE)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list