[freeside-commits] freeside Makefile,1.139,1.140
Ivan,,,
ivan at wavetail.420.am
Thu Dec 14 01:27:28 PST 2006
- Previous message: [freeside-commits] freeside/FS/bin freeside-addoutsource, 1.4,
1.5 freeside-addoutsourceuser, 1.9, 1.10 freeside-adduser,
1.16, 1.17 freeside-deloutsource, 1.1,
1.2 freeside-deloutsourceuser, 1.1, 1.2 freeside-deluser, 1.1,
1.2 freeside-queued, 1.33, 1.34 freeside-selfservice-server,
1.18, 1.19 freeside-setup, 1.58,
1.59 freeside-sqlradius-radacctd, 1.7, 1.8 freeside-upgrade,
1.4, 1.5
- Next message: [freeside-commits] freeside/htetc handler.pl,1.76,1.77
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside
In directory wavetail:/tmp/cvs-serv19347
Modified Files:
Makefile
Log Message:
make the config directory configurable
Index: Makefile
===================================================================
RCS file: /home/cvs/cvsroot/freeside/Makefile,v
retrieving revision 1.139
retrieving revision 1.140
diff -u -d -r1.139 -r1.140
--- Makefile 5 Nov 2006 22:39:39 -0000 1.139
+++ Makefile 14 Dec 2006 09:27:26 -0000 1.140
@@ -9,10 +9,13 @@
DB_USER = freeside
DB_PASSWORD=
+#changable now
+FREESIDE_CONF = /usr/local/etc/freeside
+
TEMPLATE = mason
-MASON_HANDLER = /usr/local/etc/freeside/handler.pl
-MASONDATA = /usr/local/etc/freeside/masondata
+MASON_HANDLER = ${FREESIDE_CONF}/handler.pl
+MASONDATA = ${FREESIDE_CONF}/masondata
#deb
FREESIDE_DOCUMENT_ROOT = /var/www/freeside
@@ -89,8 +92,7 @@
#---
-#not changable yet
-FREESIDE_CONF = /usr/local/etc/freeside
+
#rt/config.layout.in
RT_PATH = /opt/rt3
@@ -153,11 +155,13 @@
install-docs: docs
[ -e ${FREESIDE_DOCUMENT_ROOT} ] && mv ${FREESIDE_DOCUMENT_ROOT} ${FREESIDE_DOCUMENT_ROOT}.`date +%Y%m%d%H%M%S` || true
cp -r ${TEMPLATE}docs ${FREESIDE_DOCUMENT_ROOT}
+ chown -R freeside:freeside ${FREESIDE_DOCUMENT_ROOT}
cp htetc/handler.pl ${MASON_HANDLER}
- perl -p -i -e "\
- s'%%%FREESIDE_DOCUMENT_ROOT%%%'${FREESIDE_DOCUMENT_ROOT}'g; \
- s'%%%RT_ENABLED%%%'${RT_ENABLED}'g; \
- " ${MASON_HANDLER}
+ perl -p -i -e "\
+ s'%%%FREESIDE_DOCUMENT_ROOT%%%'${FREESIDE_DOCUMENT_ROOT}'g; \
+ s'%%%RT_ENABLED%%%'${RT_ENABLED}'g; \
+ s'%%%FREESIDE_CONF%%%'${FREESIDE_CONF}'g;\
+ " ${MASON_HANDLER}
[ ! -e ${MASONDATA} ] && mkdir ${MASONDATA} || true
chown -R freeside ${MASONDATA}
@@ -179,7 +183,17 @@
make; \
perl -p -i -e "\
s/%%%VERSION%%%/${VERSION}/g;\
- " blib/lib/FS.pm; \
+ s|%%%FREESIDE_CONF%%%|${FREESIDE_CONF}|g;\
+ " blib/lib/FS.pm;\
+ perl -p -i -e "\
+ s|%%%FREESIDE_CONF%%%|${FREESIDE_CONF}|g;\
+ " blib/lib/FS/*.pm;\
+ perl -p -i -e "\
+ s|%%%FREESIDE_CONF%%%|${FREESIDE_CONF}|g;\
+ " blib/lib/FS/part_export/*.pm;\
+ perl -p -i -e "\
+ s|%%%FREESIDE_CONF%%%|${FREESIDE_CONF}|g;\
+ " blib/script/*
install-perl-modules: perl-modules
[ -L ${PERL_INC_DEV_KLUDGE}/FS ] \
@@ -213,6 +227,7 @@
( [ ${RT_ENABLED} -eq 1 ] && install -o root -m 755 htetc/freeside-rt.conf ${APACHE_CONF} || true ) && \
perl -p -i -e "\
s'%%%FREESIDE_DOCUMENT_ROOT%%%'${FREESIDE_DOCUMENT_ROOT}'g; \
+ s'%%%FREESIDE_CONF%%%'${FREESIDE_CONF}'g; \
" ${APACHE_CONF}/freeside-*.conf \
) || true
- Previous message: [freeside-commits] freeside/FS/bin freeside-addoutsource, 1.4,
1.5 freeside-addoutsourceuser, 1.9, 1.10 freeside-adduser,
1.16, 1.17 freeside-deloutsource, 1.1,
1.2 freeside-deloutsourceuser, 1.1, 1.2 freeside-deluser, 1.1,
1.2 freeside-queued, 1.33, 1.34 freeside-selfservice-server,
1.18, 1.19 freeside-setup, 1.58,
1.59 freeside-sqlradius-radacctd, 1.7, 1.8 freeside-upgrade,
1.4, 1.5
- Next message: [freeside-commits] freeside/htetc handler.pl,1.76,1.77
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list