Subversion Repositories sql-ledger

Compare Revisions

Ignore whitespace Rev 84 → Rev 83

/trunk/debian/changelog
3,12 → 3,6
* Added debian/watch file to detect new versions.
* Drop 50norwegian_chart.dpatch as it only insed a duplicate entry
into the chart file. (Closes: #300204)
* Moved the content of 30default.dpatch into 10makefiles.dpatch, and
moved the files from sql-ledger/etc/ to sql-ledger/ to get the
sql-ledger.conf files closer to sql-ledger.conf.default. A future
improvement is to change this to patch and install
sql-ledger.conf.default instead of creating a new file
sql-ledger.conf. Related to bug #296293.
 
-- Petter Reinholdtsen <pere@debian.org> Sun, 17 Apr 2005 10:29:07 +0200
 
/trunk/debian/patches/00list
2,5 → 2,6
# List of patches to apply.
#
10makefiles
30defaults
40imagepath
45crosslink
/trunk/debian/patches/30defaults.dpatch
New file
0,0 → 1,72
#! /bin/sh -e
## 30defaults.dpatch by Petter Reinholdtsen <pere@hungry.com>
##
## All lines beginning with `## DP:' are a description of the patch.
##
## DP: Default apache and sql-ledger configuration
 
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
 
if [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch) ( cd BUILD/sql-ledger && patch $patch_opts -p1 ) < $0 ;;
-unpatch) ( cd BUILD/sql-ledger && patch $patch_opts -p1 -R ) < $0 ;;
*)
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1;;
esac
 
exit 0
@DPATCH@
--- sql-ledger-2.2.6.orig/etc/sql-ledger-httpd.conf
+++ sql-ledger-2.2.6/etc/sql-ledger-httpd.conf
@@ -0,0 +1,9 @@
+Alias /sql-ledger/images/ /usr/share/sql-ledger/
+
+Alias /sql-ledger/ /usr/lib/sql-ledger/
+
+<Directory /usr/lib/sql-ledger>
+ AddHandler cgi-script .pl
+ Options ExecCGI Includes FollowSymlinks
+</Directory>
+
--- sql-ledger-2.2.6.orig/etc/sql-ledger.conf
+++ sql-ledger-2.2.6/etc/sql-ledger.conf
@@ -0,0 +1,33 @@
+use vars qw($userspath $memberfile $templates $sendmail $language $sid);
+
+# path to user configuration files
+# you may use an absolute path i.e. /var/tmp
+$userspath = "/var/lib/sql-ledger/users";
+
+# templates base directory; this one needs to be here for now
+$templates = "templates";
+
+# member file, could also be in "/usr/local/etc/slusers"
+$memberfile = "/var/lib/sql-ledger/users/members";
+
+# location of sendmail
+$sendmail = "| /usr/sbin/sendmail -t";
+
+# set language for login and admin; two letter code
+$language = "";
+
+# Oracle
+$sid = "T80509";
+$ENV{"ORACLE_HOME"} = "/usr/local/oracle";
+
+# if you have latex installed set to 1
+$latex = 1;
+
+# if the server can't find latex, dvips or pdflatex, add the path
+$ENV{PATH} .= ":/usr/local/bin";
+
+# on mac os X using Fink's Perl libs, add the path
+$ENV{PERL5LIB} .= ":/sw/lib/perl5";
+
+
+1;
Property changes:
Added: svn:executable
+ *
/trunk/debian/patches/10makefiles.dpatch
188,20 → 188,18
+
--- sql-ledger-2.2.6.orig/Makefile
+++ sql-ledger-2.2.6/Makefile
@@ -0,0 +1,36 @@
@@ -0,0 +1,31 @@
+PACKAGE = sql-ledger
+
+MODULES = ap.pl ar.pl ca.pl cp.pl ct.pl gl.pl ic.pl \
+ ir.pl is.pl menu.pl oe.pl pe.pl rc.pl ps.pl rp.pl bp.pl hr.pl
+SUBDIRS = bin doc SL locale sql templates users css
+SUBDIRS = bin doc SL locale sql templates users etc css
+
+LIB_FILES = am.pl favicon.ico login.pl menu.ini setup.pl \
+ sql-ledger.conf.default VERSION index.html
+
+SHR_FILES = sql-ledger.png sql-ledger.gif
+
+CFG_FILES = sql-ledger-httpd.conf sql-ledger.conf
+
+all:
+
+install:
221,69 → 219,19
+ $(MAKE) -C $$subdir $@ ; \
+ done
+
+ mkdir -p $(DESTDIR)/etc/sql-ledger
+ cp $(CFG_FILES) $(DESTDIR)/etc/sql-ledger
+
+clean:
--- sql-ledger-2.2.6.orig/sql-ledger-httpd.conf
+++ sql-ledger-2.2.6/sql-ledger-httpd.conf
@@ -0,0 +1,8 @@
+Alias /sql-ledger/images/ /usr/share/sql-ledger/
--- sql-ledger-2.2.6.orig/etc/Makefile
+++ sql-ledger-2.2.6/etc/Makefile
@@ -0,0 +1,12 @@
+PACKAGE = sql-ledger
+
+Alias /sql-ledger/ /usr/lib/sql-ledger/
+FILES = sql-ledger-httpd.conf sql-ledger.conf
+
+<Directory /usr/lib/sql-ledger>
+ AddHandler cgi-script .pl
+ Options ExecCGI Includes FollowSymlinks
+</Directory>
--- sql-ledger-2.2.6.orig/sql-ledger.conf
+++ sql-ledger-2.2.6/sql-ledger.conf
@@ -0,0 +1,48 @@
+use vars qw($userspath $spool $memberfile $templates $sendmail $language $sid $latex %printer $gzip);
+all:
+
+# path to user configuration files
+$userspath = "/var/lib/sql-ledger/users";
+clean:
+
+# spool directory for batch printing
+$spool = "spool";
+
+# templates base directory
+$templates = "templates";
+
+# member file
+$memberfile = "/var/lib/sql-ledger/users/members";
+
+# location of sendmail
+$sendmail = "| /usr/sbin/sendmail -t";
+
+# set language for login and admin
+$language = "";
+
+# Oracle
+#$sid = "T80509";
+#$ENV{"ORACLE_HOME"} = "/usr/local/oracle";
+
+# if you have latex installed set to 1
+$latex = 1;
+
+# available printers
+%printer = ( Laserjet => 'lpr -Plaserjet',
+ Laser => 'lpr -Plaser'
+ );
+
+# program to use for file compression
+$gzip = "gzip -S .gz";
+
+# if the server can't find gzip, latex, dvips or pdflatex, add the path
+$ENV{PATH} .= ":/usr/local/bin";
+
+# on mac os X using Fink's Perl libs, add the path
+#$ENV{PERL5LIB} .= ":/sw/lib/perl5";
+
+# DB2, Default dataset is expected to be LEDGER
+#$ENV{DB2INSTANCE} = "db2inst1";
+#$ENV{DB2_HOME} = "/opt/IBM/db2/V8.1/";
+
+
+1;
+
+install:
+ mkdir -p $(DESTDIR)/etc/sql-ledger
+ cp $(FILES) $(DESTDIR)/etc/sql-ledger
+