SF.net SVN: gar:[22684] csw/mgar/pkg/pureftpd/trunk/Makefile
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Thu Dec 12 20:36:00 CET 2013
Revision: 22684
http://sourceforge.net/p/gar/code/22684
Author: dmichelsen
Date: 2013-12-12 19:35:59 +0000 (Thu, 12 Dec 2013)
Log Message:
-----------
pureftpd/trunk: Enable LDAP, some cleanup
Modified Paths:
--------------
csw/mgar/pkg/pureftpd/trunk/Makefile
Modified: csw/mgar/pkg/pureftpd/trunk/Makefile
===================================================================
--- csw/mgar/pkg/pureftpd/trunk/Makefile 2013-12-12 17:29:34 UTC (rev 22683)
+++ csw/mgar/pkg/pureftpd/trunk/Makefile 2013-12-12 19:35:59 UTC (rev 22684)
@@ -1,16 +1,12 @@
# known build facts
#
# no linkage against
-# - ldap
# - mysql
# - pgsql
-NAME = pureftpd
+NAME = pure-ftpd
VERSION = 1.0.36
GARTYPE = v2
-SRCNAME = pure-ftpd
-PACKAGING_PLATFORMS = solaris10-i386 solaris10-sparc
-
DESCRIPTION = A secure FTP daemon
define BLURB
Pure-FTPd is a free (BSD), secure, production-quality and
@@ -21,18 +17,21 @@
endef
MASTER_SITES = http://download.pureftpd.org/pub/pure-ftpd/releases/
-DISTFILES = $(SRCNAME)-$(VERSION).tar.gz
-WORKSRC = $(WORKDIR)/$(SRCNAME)-$(VERSION)
+DISTFILES += $(DISTNAME).tar.gz
BUILD_DEP_PKGS += CSWlibssl-dev
+BUILD_DEP_PKGS += CSWopenldap-dev
-# we require openssl for tls
-RUNTIME_DEP_PKGS = CSWlibssl1-0-0
-RUNTIME_DEP_PKGS += CSWlibssp0
+PACKAGES += CSWpureftpd
+SPKG_DESC_CSWpureftpd = A secure FTP daemon
+# PKGFILES is catchall
+RUNTIME_DEP_PKGS_CSWpureftpd += CSWlibssl1-0-0
+RUNTIME_DEP_PKGS_CSWpureftpd += CSWlibssp0
+RUNTIME_DEP_PKGS_CSWpureftpd += CSWlibldap2-4-2
+CHECKPKG_OVERRIDES_CSWpureftpd += file-with-bad-content|/usr/share|root/opt/csw/share/man/man8/pure-ftpd.8
GARCOMPILER = GNU
-# configure args
CONFIGURE_ARGS = $(DIRPATHS)
CONFIGURE_ARGS += --with-everything
CONFIGURE_ARGS += --with-paranoidmsg
@@ -42,7 +41,8 @@
CONFIGURE_ARGS += --with-altlog
CONFIGURE_ARGS += --with-brokenrealpath
CONFIGURE_ARGS += --enable-largefile
-CONFIGURE_ARGS += --sysconfdir=$(prefix)/etc/$(SRCNAME)
+CONFIGURE_ARGS += --sysconfdir=$(prefix)/etc/pure-ftpd
+CONFIGURE_ARGS += --with-ldap
# use X/Open CAE specifications
EXTRA_CFLAGS = -D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1
@@ -50,15 +50,12 @@
# No test suite available
TEST_SCRIPTS =
-sysconfdir = /etc/opt/csw
-SAMPLECONF = $(sysconfdir)/$(SRCNAME)/*.conf
+SAMPLECONF = $(sysconfdir)/pure-ftpd/*.conf
-CHECKPKG_OVERRIDES_CSWpureftpd += file-with-bad-content|/usr/share|root/opt/csw/share/man/man8/pure-ftpd.8
-
include gar/category.mk
# make sure, the linker uses libcrypt before libssl
-post-configure-modulated:
+post-configure:
@perl -pi -e 's at -lssl -lcrypto -lcrypt at -lcrypt -lssl -lcrypto@' \
${WORKSRC}/Makefile
@perl -pi -e 's at -lssl -lcrypto -lcrypt at -lcrypt -lssl -lcrypto@' \
@@ -66,14 +63,13 @@
# strange archive...
-post-build-modulated:
+post-build:
@chmod 751 $(WORKSRC)/x
# create config directory
-pre-install-modulated:
- ginstall -d $(DESTDIR)$(sysconfdir)/$(SRCNAME)
- ginstall -d $(DESTDIR)$(docdir)/$(SRCNAME)
- ginstall -d $(DESTDIR)$(docdir)/$(NAME)
+pre-install:
+ ginstall -d $(DESTDIR)$(sysconfdir)/pure-ftpd
+ ginstall -d $(DESTDIR)$(docdir)/pure-ftpd
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
@@ -83,10 +79,9 @@
conf-list = $(WORKSRC)/pureftpd-ldap.conf
conf-list += $(WORKSRC)/pureftpd-mysql.conf
conf-list += $(WORKSRC)/pureftpd-pgsql.conf
-post-install-modulated:
+post-install:
( for file in $(conf-list) ; do \
- ginstall -m 644 $$file $(DESTDIR)$(sysconfdir)/$(SRCNAME) ; \
+ ginstall -m 644 $$file $(DESTDIR)$(sysconfdir)/pure-ftpd ; \
done )
- ginstall -m 644 $(WORKSRC)/pureftpd.schema $(DESTDIR)$(docdir)/$(SRCNAME)
- ginstall -m 644 $(WORKSRC)/COPYING $(DESTDIR)$(docdir)/$(NAME)/license
+ ginstall -m 644 $(WORKSRC)/pureftpd.schema $(DESTDIR)$(docdir)/pure-ftpd
@$(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