[csw-devel] SF.net SVN: gar:[5739] csw/mgar/pkg
skayser at users.sourceforge.net
skayser at users.sourceforge.net
Thu Jul 30 17:40:55 CEST 2009
Revision: 5739
http://gar.svn.sourceforge.net/gar/?rev=5739&view=rev
Author: skayser
Date: 2009-07-30 15:40:55 +0000 (Thu, 30 Jul 2009)
Log Message:
-----------
mod_macro: initial commit
Added Paths:
-----------
csw/mgar/pkg/mod_macro/
csw/mgar/pkg/mod_macro/branches/
csw/mgar/pkg/mod_macro/tags/
csw/mgar/pkg/mod_macro/trunk/
csw/mgar/pkg/mod_macro/trunk/Makefile
csw/mgar/pkg/mod_macro/trunk/checksums
csw/mgar/pkg/mod_macro/trunk/files/
csw/mgar/pkg/mod_macro/trunk/files/changelog.CSW
csw/mgar/pkg/mod_macro/trunk/files/postinstall
csw/mgar/pkg/mod_macro/trunk/files/preremove
Property changes on: csw/mgar/pkg/mod_macro/trunk
___________________________________________________________________
Added: svn:ignore
+ cookies
download
work
Added: svn:externals
+ gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2
Added: csw/mgar/pkg/mod_macro/trunk/Makefile
===================================================================
--- csw/mgar/pkg/mod_macro/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/mod_macro/trunk/Makefile 2009-07-30 15:40:55 UTC (rev 5739)
@@ -0,0 +1,45 @@
+GARNAME = mod_macro
+GARVERSION = 1.1.10
+CATEGORIES = lib
+
+DESCRIPTION = Create macros inside apache2 config files
+define BLURB
+ Long description
+endef
+
+MASTER_SITES = http://cri.ensmp.fr/~coelho/mod_macro/
+DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2
+LICENSE = LICENSE
+
+PACKAGES = CSWap2modmacro
+CATALOGNAME = ap2_modmacro
+REQUIRED_PKGS = CSWap2prefork
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.bz2
+
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS = custom
+INSTALL_SCRIPTS = custom
+TEST_SCRIPTS =
+
+include gar/category.mk
+include ../../apache2/trunk/files/extensionbuild.mk
+
+build-custom:
+ $(APXS2_BUILD) $(WORKSRC)/mod_macro.c
+ @$(MAKECOOKIE)
+
+# Ideally, we could use
+#
+# $(APXS2_INSTALL) $(WORKSRC)/mod_macro.c
+#
+# but this tries to just copy mod_macro.c instead of mod_macro.so
+install-custom: DOCDEST = $(DESTDIR)$(docdir)/$(CATALOGNAME)
+install-custom: EXTRA_DOCS = CHANGES mod_macro.html
+install-custom:
+ ginstall -d $(DOCDEST)
+ ginstall -D $(WORKSRC)/.libs/mod_macro.so $(AP2_LIBEXEC)/mod_macro.so
+ cp $(FILEDIR)/changelog.CSW $(DOCDEST)
+ cp $(addprefix $(WORKSRC)/,$(EXTRA_DOCS)) $(DOCDEST)
+ @$(MAKECOOKIE)
Added: csw/mgar/pkg/mod_macro/trunk/checksums
===================================================================
--- csw/mgar/pkg/mod_macro/trunk/checksums (rev 0)
+++ csw/mgar/pkg/mod_macro/trunk/checksums 2009-07-30 15:40:55 UTC (rev 5739)
@@ -0,0 +1 @@
+ebc44eea3e197a38c93d9deb0afcb8ff download/mod_macro-1.1.10.tar.bz2
Added: csw/mgar/pkg/mod_macro/trunk/files/changelog.CSW
===================================================================
--- csw/mgar/pkg/mod_macro/trunk/files/changelog.CSW (rev 0)
+++ csw/mgar/pkg/mod_macro/trunk/files/changelog.CSW 2009-07-30 15:40:55 UTC (rev 5739)
@@ -0,0 +1,5 @@
+ap2_modmacro (1.1.10,REV=2009.07.30)
+
+ * Initial release.
+
+ -- Sebastian Kayser <skayser at opencsw.org> Thu, 30 Jul 2009 17:31:33 +0200
Added: csw/mgar/pkg/mod_macro/trunk/files/postinstall
===================================================================
--- csw/mgar/pkg/mod_macro/trunk/files/postinstall (rev 0)
+++ csw/mgar/pkg/mod_macro/trunk/files/postinstall 2009-07-30 15:40:55 UTC (rev 5739)
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+CSW_PREFIX=/opt/csw
+AP2_PREFIX=$CSW_PREFIX/apache2
+AP2_BINDIR=$AP2_PREFIX/sbin
+AP2_LIBEXEC=$AP2_PREFIX/libexec
+AP2_CONFDIR=$AP2_PREFIX/etc
+AP2_EXTRADIR=$AP2_CONFDIR/extra
+AP2_CONFIG=$AP2_CONFDIR/httpd.conf
+
+# Enable module
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-'/'}
+chroot $PKG_INSTALL_ROOT \
+ $AP2_BINDIR/apxs -S LIBEXECDIR=$AP2_LIBEXEC -e -a -n \
+ macro_module mod_macro.so
+
+# Finito
+cat <<END
+
+NOTICE: mod_macro is enabled in httpd.conf but the server was not
+restarted. Please examine your configuration and restart apache2.
+
+END
+
+exit 0
Property changes on: csw/mgar/pkg/mod_macro/trunk/files/postinstall
___________________________________________________________________
Added: svn:executable
+ *
Added: csw/mgar/pkg/mod_macro/trunk/files/preremove
===================================================================
--- csw/mgar/pkg/mod_macro/trunk/files/preremove (rev 0)
+++ csw/mgar/pkg/mod_macro/trunk/files/preremove 2009-07-30 15:40:55 UTC (rev 5739)
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+CSW_PREFIX=/opt/csw
+AP2_PREFIX=$CSW_PREFIX/apache2
+AP2_BINDIR=$AP2_PREFIX/sbin
+AP2_LIBEXEC=$AP2_PREFIX/libexec
+AP2_CONFDIR=$AP2_PREFIX/etc
+AP2_EXTRADIR=$AP2_CONFDIR/extra
+AP2_CONFIG=$AP2_CONFDIR/httpd.conf
+
+# Disable module
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-'/'}
+chroot $PKG_INSTALL_ROOT \
+ $AP2_BINDIR/apxs -S LIBEXECDIR=$AP2_LIBEXEC -e -A -n \
+ macro_module mod_macro.so
+
+cat <<END
+
+NOTICE: mod_macro is disabled in httpd.conf but the server was not
+restarted. Please check your configuration and restart apache2.
+
+END
+
+exit 0
Property changes on: csw/mgar/pkg/mod_macro/trunk/files/preremove
___________________________________________________________________
Added: svn:executable
+ *
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