- Define additional MASTER_SITES

- Fix install in case of non-default ${LOCALBASE}
- Fix whitespace/alignment in Makefile header
- Tweak pkg-message

PR:		145438
Submitted by:	Eric F Crist (maintainer)
Approved by:	itetcu (mentor)
This commit is contained in:
Sahil Tandon 2010-04-14 22:11:45 +00:00
parent 5b805f79e0
commit c102d59fbe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=252693
2 changed files with 12 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# Ports collection makefile for: RackMonkey
# Date created: February 10, 2010
# Whom: Eric F Crist <ecrist@secure-computing.net>
# Date created: 2010-02-10
# Whom: Eric F Crist <ecrist@secure-computing.net>
#
# $FreeBSD$
#
@ -9,7 +9,9 @@ PORTNAME= rackmonkey
PORTVERSION= 1.2.5
PORTREVISION= 2
CATEGORIES= net-mgmt www
MASTER_SITES= SF
MASTER_SITES= SF \
ftp://ftp.secure-computing.net/pub/FreeBSD/ports/${PORTNAME}/ \
ftp://ftp2.secure-computing.net/pub/FreeBSD/ports/${PORTNAME}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-1
MAINTAINER= ecrist@secure-computing.net
@ -63,10 +65,10 @@ do-install:
if [ -e "${WWWDIR}/rackmonkey.db" ]; then \
${ECHO} "Database exists, skipping initalization..."; \
else \
/usr/local/bin/sqlite3 ${WWWDIR}/rackmonkey.db < ${WRKSRC}/sql/schema/schema.sqlite.sql; \
/usr/local/bin/sqlite3 ${WWWDIR}/rackmonkey.db < ${WRKSRC}/sql/data/default_data.sql; \
${LOCALBASE}/bin/sqlite3 ${WWWDIR}/rackmonkey.db < ${WRKSRC}/sql/schema/schema.sqlite.sql; \
${LOCALBASE}/bin/sqlite3 ${WWWDIR}/rackmonkey.db < ${WRKSRC}/sql/data/default_data.sql; \
if [ "${WITH_SAMPLE}" ]; then \
/usr/local/bin/sqlite3 ${WWWDIR}/rackmonkey.db < ${WRKSRC}/sql/data/sample_data.sql; \
${LOCALBASE}/bin/sqlite3 ${WWWDIR}/rackmonkey.db < ${WRKSRC}/sql/data/sample_data.sql; \
fi \
fi \
fi \

View File

@ -17,12 +17,15 @@ WEBSERVER SETUP:
If using the Apache web server, simply add the following
to the appropriate place in your config files:
Alias /rackmonkey %%WWWDIR%%
<Location /rackmonkey>
Order allow,deny
Allow from all
Options ExecCGI FollowSymLinks Includes
AddHandler cgi-script .pl
AddType text/html .shtml
AddHandler server-parsed .shtml
DirectoryIndex rackmonkey.pl index.shtml index.html
SetEnv RACKMONKEY_CONF /usr/local/www/rackmonkey/rackmonkey.conf
SetEnv RACKMONKEY_CONF %%WWWDIR%%/rackmonkey.conf
</Location>