[csw-devel] SF.net SVN: gar:[11588] csw/mgar/pkg/unbound/trunk/Makefile

idogan23 at users.sourceforge.net idogan23 at users.sourceforge.net
Fri Nov 12 12:04:39 CET 2010


Revision: 11588
          http://gar.svn.sourceforge.net/gar/?rev=11588&view=rev
Author:   idogan23
Date:     2010-11-12 11:04:39 +0000 (Fri, 12 Nov 2010)

Log Message:
-----------
unbound: extra package unbound-host, not using anymore PROTOTYPE_FILTER, added ISA sparcv8plus+vis, cosmetic cleanup

Modified Paths:
--------------
    csw/mgar/pkg/unbound/trunk/Makefile

Modified: csw/mgar/pkg/unbound/trunk/Makefile
===================================================================
--- csw/mgar/pkg/unbound/trunk/Makefile	2010-11-12 02:51:53 UTC (rev 11587)
+++ csw/mgar/pkg/unbound/trunk/Makefile	2010-11-12 11:04:39 UTC (rev 11588)
@@ -1,7 +1,6 @@
 GARNAME = unbound
 GARVERSION = 1.4.7
 CATEGORIES = server
-
 DESCRIPTION = A validating, recursive, and caching DNS resolver
 define BLUR
   Unbound is designed as a set of modular components, so that also
@@ -9,28 +8,51 @@
   a server, but are linked into an application) are easily possible.
 endef
 
-PACKAGES = CSWunbound CSWlibunbound2 CSWunbound-devel
-CATALOGNAME_CSWunbound = unbound
-CATALOGNAME_CSWlibunbound2 = libunbound2
-CATALOGNAME_CSWunbound-devel = unbound_devel
-LICENSE = LICENSE
-
+VENDOR_URL = http://www.unbound.net/
 MASTER_SITES = http://unbound.net/downloads/
 DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
 DISTFILES += cswunbound
 DISTFILES += cswusergroup
 
-VENDOR_URL = http://unbound.net
+PACKAGING_PLATFORMS +=  solaris9-sparc solaris9-i386
+PACKAGES = CSWunbound CSWlibunbound2 CSWunbound-devel CSWunbound-host
 
-EXTRA_BUILD_ISAS_i386  = pentium_pro
-EXTRA_BUILD_ISAS_sparc = sparcv8plus
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
 
+# If the url used to check for software update is different of MASTER_SITES, then 
+# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES
+# UPSTREAM_MASTER_SITES = 
+
+CONFIGURE_ARGS  = $(DIRPATHS)
+CONFIGUTE_ARGS += --with-solaris-threads
+CONFIGURE_ARGS += --with-ldns=/opt/csw
+CONFIGURE_ARGS += --with-ssl=/opt/csw
+CONFIGURE_ARGS += --with-libevent=/opt/csw
+CONFIGURE_ARGS += --with-libexpat=/opt/csw
+CONFIGURE_ARGS += --with-pidfile=/var/run/unbound.pid
+CONFIGURE_ARGS += --sysconfdir=/etc/opt/csw
+
+# Gost requiers OpenSSL 1.0
+CONFIGURE_ARGS += --disable-gost
+
+STRIP_LIBTOOL = 0
+
+# make test doesn't work for the moment on Solaris
+SKIPTEST = 1
+
+LICENSE = LICENSE
+
+EXTRA_BUILD_ISAS_i386   = pentium_pro
+EXTRA_BUILD_ISAS_sparc  = sparcv8plus
+EXTRA_BUILD_ISAS_sparc  = sparcv8plus+vis
+
 MERGE_DIRS_isa-sparcv8plus  = $(libdir)
 MERGE_DIRS_isa-sparcv8plus += $(sbindir)
 MERGE_DIRS_isa-pentium_pro  = $(libdir)
 MERGE_DIRS_isa-pentium_pro += $(sbindir)
 
-ISAXEC_DIRS = $(sbindir)
+ISAXEC_DIRS            = $(sbindir)
 ISAEXEC_EXCLUDE_FILES  = $(sbindir)/unbound-anchor
 ISAEXEC_EXCLUDE_FILES += $(sbindir)/unbound-checkconf
 ISAEXEC_EXCLUDE_FILES += $(sbindir)/unbound-control
@@ -49,57 +71,53 @@
 EXTRA_MERGE_EXCLUDE_FILES_isa-sparcv8plus += $(prefix)/sbin/unbound-control-setup
 EXTRA_MERGE_EXCLUDE_FILES_isa-sparcv8plus += $(prefix)/sbin/unbound-host
 
-# SPKG_CLASSES_CSWunbound = none cswusergroup cswcpsampleconf cswinitsmf
-# PROTOTYPE_FILTER = awk '$$$$3 ~ /\/init.d\/cswunbound$$$$/ { $$$$2 = "cswinitsmf" } $$$$3 ~ /\/CSWunbound\/cswusergroup$$$$/ { $$$$2 = "cswusergroup" } $$$$3 ~ /\/unbound\/unbound.conf.CSW$$$$/ { $$$$2 = "cswcpsampleconf" } { print }'
+EXTRA_MERGE_EXCLUDE_FILES_isa-sparcv8plus+vis  = $(prefix)/sbin/unbound-anchor
+EXTRA_MERGE_EXCLUDE_FILES_isa-sparcv8plus+vis += $(prefix)/sbin/unbound-checkconf
+EXTRA_MERGE_EXCLUDE_FILES_isa-sparcv8plus+vis += $(prefix)/sbin/unbound-control
+EXTRA_MERGE_EXCLUDE_FILES_isa-sparcv8plus+vis += $(prefix)/sbin/unbound-control-setup
+EXTRA_MERGE_EXCLUDE_FILES_isa-sparcv8plus+vis += $(prefix)/sbin/unbound-host
 
-INITSMF = /etc/opt/csw/init.d/cswunbound
-USERGROUP = /etc/opt/csw/pkg/CSWunbound/cswusergroup
-SAMPLECONF = /etc/opt/csw/unbound/unbound.conf
+SPKG_CLASSES_CSWunbound = none cswusergroup cswcpsampleconf cswinitsmf
+INITSMF                 = /etc/opt/csw/init.d/cswunbound
+USERGROUP               = /etc/opt/csw/CSWunbound/cswusergroup
+SAMPLECONF              = /etc/opt/csw/unbound/unbound.conf
+USERGROUP               = /etc/opt/csw/pkg/CSWunbound/cswusergroup
 
-# We define upstream file regex so we can be notifed of new upstream software release
-UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
-
-CONFIGURE_ARGS = $(DIRPATHS)
-CONFIGUTE_ARGS += --with-solaris-threads
-CONFIGURE_ARGS += --with-ldns=/opt/csw
-CONFIGURE_ARGS += --with-ssl=/opt/csw
-CONFIGURE_ARGS += --with-libevent=/opt/csw
-CONFIGURE_ARGS += --with-libexpat=/opt/csw
-CONFIGURE_ARGS += --with-pidfile=/var/run/unbound.pid
-CONFIGURE_ARGS += --sysconfdir=/etc/opt/csw
-
-# Gost requiers OpenSSL 1.0
-CONFIGURE_ARGS += --disable-gost
-
-STRIP_LIBTOOL = 0
-
-SPKG_DESC_CSWunbound = $(DESCRIPTION)
+CATALOGNAME_CSWunbound       = unbound
+SPKG_DESC_CSWunbound         = $(DESCRIPTION)
 RUNTIME_DEP_PKGS_CSWunbound += CSWlibunbound2
 RUNTIME_DEP_PKGS_CSWunbound += CSWexpat
 RUNTIME_DEP_PKGS_CSWunbound += CSWlibevent
 RUNTIME_DEP_PKGS_CSWunbound += CSWlibldns1
 RUNTIME_DEP_PKGS_CSWunbound += CSWosslrt
 
-SPKG_DESC_CSWlibunbound2 = Library implementing DNS resolution and validation
-PKGFILES_CSWlibunbound2 += $(PKGFILES_RT)
+CATALOGNAME_CSWlibunbound2       = libunbound2
+SPKG_DESC_CSWlibunbound2         = Library implementing DNS resolution and validation
+PKGFILES_CSWlibunbound2         += $(PKGFILES_RT)
 RUNTIME_DEP_PKGS_CSWlibunbound2 += CSWlibldns1
 RUNTIME_DEP_PKGS_CSWlibunbound2 += CSWosslrt
 RUNTIME_DEP_PKGS_CSWlibunbound2 += CSWlibevent
 
-SPKG_DESC_CSWunbound-devel = $(DESCRIPTION) development package
-PKGFILES_CSWunbound-devel += $(PKGFILES_DEVEL)
+CATALOGNAME_CSWunbound-devel       = unbound_devel
+SPKG_DESC_CSWunbound-devel         = $(DESCRIPTION) development package
+PKGFILES_CSWunbound-devel         += $(PKGFILES_DEVEL)
+RUNTIME_DEP_PKGS_CSWunbound-devel += CSWlibunbound2
 
-# make test doesn't work for the moment on Solaris
-SKIPTEST = 1
+CATALOGNAME_CSWunbound-host       = unbound_host
+SPKG_DESC_CSWunbound-host         = Unbound DNS lookup utility
+PKGFILES_CSWunbound-host         += $(sbindir)/unbound-host
+PKGFILES_CSWunbound-host         += $(mandir)/man1/unbound-host.1
+RUNTIME_DEP_PKGS_CSWunbound-host += CSWlibldns1
+RUNTIME_DEP_PKGS_CSWunbound-host += CSWosslrt
+RUNTIME_DEP_PKGS_CSWunbound-host += CSWlibunbound2
+RUNTIME_DEP_PKGS_CSWunbound-host += CSWlibevent
 
 include gar/category.mk
 
 post-install-modulated:
-	ginstall -d $(DESTDIR)/etc/opt/csw/init.d
-	ginstall -m 755 $(FILEDIR)/cswunbound $(DESTDIR)/etc/opt/csw/init.d/cswunbound
-	ginstall -d $(DESTDIR)/etc/opt/csw/pkg/CSWunbound
-	ginstall -m 755 $(FILEDIR)/cswusergroup $(DESTDIR)/etc/opt/csw/pkg/CSWunbound/cswusergroup
-	#mv $(DESTDIR)/etc/opt/csw/unbound/unbound.conf $(DESTDIR)/etc/opt/csw/unbound/unbound.conf.CSW
-	#chmod 444 $(DESTDIR)/etc/opt/csw/unbound/unbound.conf.CSW
+	@ginstall -d $(DESTDIR)/etc/opt/csw/init.d
+	@ginstall -m 755 $(FILEDIR)/cswunbound $(DESTDIR)/etc/opt/csw/init.d/cswunbound
+	@ginstall -d $(DESTDIR)/etc/opt/csw/pkg/CSWunbound
+	@ginstall -m 755 $(FILEDIR)/cswusergroup $(DESTDIR)/etc/opt/csw/pkg/CSWunbound/cswusergroup
 	@$(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