# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # www/redmine-http-auth # www/redmine-http-auth/Makefile # www/redmine-http-auth/distinfo # www/redmine-http-auth/pkg-descr # www/redmine/bsd.redmine.mk # echo c - www/redmine-http-auth mkdir -p www/redmine-http-auth > /dev/null 2>&1 echo x - www/redmine-http-auth/Makefile sed 's/^X//' >www/redmine-http-auth/Makefile << '97ba8d0d73f5db17ac1dcbb29bc7cb9e' X# New ports collection makefile for: redmine-http-auth X# Date created: 2010-09-12 X# Whom: Eygene Ryabinkin X# X# $FreeBSD$ X# X XPORTNAME= http-auth XPORTVERSION= 20100730 XCATEGORIES= www XMASTER_SITES= http://dist.codelabs.ru/fbsd/ XDISTNAME= AdamLantos-redmine_http_auth-${GITREV} X XMAINTAINER= rea-fbsd@codelabs.ru XCOMMENT= HTTP authentication plugin for Redmine X XGITREV= df98baf XREDMINE_PLUGIN_NAME= redmine_http_auth X X.include "${.CURDIR}/../../www/redmine/bsd.redmine.mk" 97ba8d0d73f5db17ac1dcbb29bc7cb9e echo x - www/redmine-http-auth/distinfo sed 's/^X//' >www/redmine-http-auth/distinfo << 'ac16f355fa4a2b1d3347b1c1cf66a386' XMD5 (AdamLantos-redmine_http_auth-df98baf.tar.gz) = 457d00d2e97c294342ed6cf237fc41d3 XSHA256 (AdamLantos-redmine_http_auth-df98baf.tar.gz) = a03b456005b8d3c07bc3c3aeaaaf3d3a37ce5c73a71d76f1d593791c98384686 XSIZE (AdamLantos-redmine_http_auth-df98baf.tar.gz) = 6930 ac16f355fa4a2b1d3347b1c1cf66a386 echo x - www/redmine-http-auth/pkg-descr sed 's/^X//' >www/redmine-http-auth/pkg-descr << 'dfa64c81df9aa0dd176a2ce7f21c0e85' XHTTP authentication plugin for Redmine. X XWWW: http://github.com/AdamLantos/redmine_http_auth/ dfa64c81df9aa0dd176a2ce7f21c0e85 echo x - www/redmine/bsd.redmine.mk sed 's/^X//' >www/redmine/bsd.redmine.mk << '0731b00da00064cdab4da24ab61d0608' X# Module that simplifies installation of Redmine plugins. X# X# Date created: 2010-09-12 X# Whom: Eygene Ryabinkin X# X# $FreeBSD$ X# X# We're assuming standard plugin installation sequence that is described X# in the http://www.redmine.org/wiki/redmine/Plugins X# X# Basically, we need the following variables to be defined: X# - REDMINE_PLUGIN_NAME: the name of the plugin; X# - WWWDIR: the location of the Redmine installation; X# the default value is ${PREFIX}/www/redmine; X# the directory must lie under ${PREFIX} or such configuration X# will be IGNORE'd; X# - WRKSRC must be set to the root directory of the plugin contents: X# we will copy all objects in this directory to the plugin's X# destination directory, excluding all files named *.orig. X# X# PLIST will be generated automatically, there is no need to worry X# about it. But if you will need to use your own (even the standard X# packaging list in ${PORTDIR}/pkg-plist), set the variable PLIST X# pointing to that file. X# X# You can override the target 'do-build', but in this case, you should X# remember that the target named 'redmine-plugin-plist' does the X# automated generation of the PLIST: use it if you need. X# X# X# Here is an example of a simple Makefile for Redmine plugin: X# {{{ X# PORTNAME= me-the-plugin X# PORTVERSION= 1.0 X# CATEGORIES= www X# MASTER_SITES= http://cool.org.name/some/path/ X# X# MAINTAINER= you@your.org X# COMMENT= Another cool plugin for Redmine X# X# REDMINE_PLUGIN_NAME= redmine_http_auth X# X# .include "${.CURDIR}/../../www/redmine/bsd.redmine.mk" X# }}} X XPKGNAMEPREFIX?= redmine- X XRUN_DEPENDS+= redmine>=0.9:${PORTSDIR}/www/redmine X XUSE_RUBY= yes X.if !defined(PLIST) XPLIST= ${WRKDIR}/PLIST X_GEN_PLIST= YesPlease X.endif X XWWWDIR?= ${PREFIX}/www/redmine XWWWDIR_REL= ${WWWDIR:S|^${PREFIX}/||} X X.if ${WWWDIR_REL} == ${WWWDIR} XIGNORE= WWWDIR is not a child of PREFIX (${PREFIX}) X.endif X X.if !defined(do-build) Xdo-build: redmine-plugin-plist X @${DO_NADA} X.endif X Xredmine-plugin-plist: X.if defined(_GEN_PLIST) X cd ${WRKSRC} && ${FIND} . -type f | ${GREP} -v '\.orig$$' | ${SED} -e's|^\.|${WWWDIR_REL}/vendor/plugins/${REDMINE_PLUGIN_NAME}|' >> ${PLIST} X cd ${WRKSRC} && ${FIND} -d . -type d | ${SED} -e's|^\.|@dirrm ${WWWDIR_REL}/vendor/plugins/${REDMINE_PLUGIN_NAME}|' >> ${PLIST} X.else X @${DO_NADA} X.endif X Xdo-install: X ${MKDIR} "${WWWDIR}/vendor/plugins/${REDMINE_PLUGIN_NAME}" X ${TAR} -C "${WRKSRC}" -cf - --exclude '*.orig' . | ${TAR} -C "${WWWDIR}/vendor/plugins/${REDMINE_PLUGIN_NAME}" -xf - X X.include 0731b00da00064cdab4da24ab61d0608 exit