Subversion Repositories sql-ledger

Compare Revisions

Ignore whitespace Rev 80 → Rev 81

/tags/debian_version_2_4_7-2/debian/dirs
New file
0,0 → 1,5
etc/sql-ledger
usr/lib/sql-ledger
usr/sbin
usr/share/sql-ledger
var/lib/sql-ledger
/tags/debian_version_2_4_7-2/debian/postinst
New file
0,0 → 1,9
#!/bin/sh
 
(
cd /var/lib/sql-ledger ;
chown www-data:www-data users templates
chown -R www-data:www-data css
)
 
#DEBHELPER#
/tags/debian_version_2_4_7-2/debian/sql-ledger-enable
New file
0,0 → 1,29
#!/bin/sh
#
# Activate SQL-Ledger in apache configuration. Small helper script
# to reduce the chance of typos.
#
# This should be rewritten to follow the info in
# <URL:http://deb.riseup.net/mail/buffy/mail-clients/apache/> or
# <URL:http://www.opal.dhs.org/involved/debian/apache/>, before it
# is enabled.
 
if [ -d /etc/apache/conf.d ] ; then # Debian/Sarge or later
echo "info: Detected apache for Debian/Sarge or later"
httpdconf=/etc/apache/conf.d/sql-ledger.conf
else
echo "info: Detected apache for Debian/Woody or earlier"
httpdconf=/etc/apache/httpd.conf
fi
 
includeline="Include /etc/sql-ledger/sql-ledger-httpd.conf"
 
if grep -q "^$includeline" $httpdconf ; then
echo "info: SQL-Ledger is already enabled in $httpdconf"
else
echo "$includeline" >> $httpdconf
echo "info: Content of $httpdconf is updated."
echo "info: Please restart apache for this change to take effect."
echo "info: Remember that there might be no admin password set at"
echo "info: the moment, and the installation is open for everyone."
fi
Property changes:
Added: svn:executable
+ *
/tags/debian_version_2_4_7-2/debian/TODO
New file
0,0 → 1,11
cp users/ templates/ /var/lib/sql-ledger/
cp/edit sql-ledger-default.conf /etc/sql-ledger/sql-ledger.conf
create /etc/sql-ledger/sql-ledger-httpd.conf
edit /etc/apache(-ssl)/http.conf to include sql-ledger-httpd.conf
cp bin/ /usr/lib/sql-ledger/bin
cd bin/lynx for ALL in ../mozilla/*.pl ; do ln -s $ALL ; done
cp -r ~/MY-CVS/sql-ledger/SL .
chown www-data:www-data users templates
cp -r ~/MY-CVS/sql-ledger/sql .
cp -r ~/MY-CVS/sql-ledger/locale .
 
/tags/debian_version_2_4_7-2/debian/prerm
New file
0,0 → 1,5
#!/bin/bash
 
rm -f /usr/doc/sql-ledger || true
 
#DEBHELPER#
/tags/debian_version_2_4_7-2/debian/changelog
New file
0,0 → 1,126
sql-ledger (2.4.7-2) unstable; urgency=low
 
* Rewrite the new helper script sql-ledger-enable, to follow the
Debian apache config schema.
 
-- Petter Reinholdtsen <pere@debian.org> Sat, 25 Dec 2004 17:31:50 +0100
 
sql-ledger (2.4.7-1) unstable; urgency=low
 
* New upstream version 2.4.7.
- Added string formatting for transaction printing.
- Fixed GL Report GIFI sorting error.
- Fixed multicompany login routine.
- Updated Finnish translation.
- Added tax included calculation to POS.
* Petter Reinholdtsen
- 40imagepath.dpatch: Updated patch for login.pl to match new
upstream version.
- Install new helper script /usr/sbin/sql-ledger-enable, taking
care of the apache config editing. Not sure if this is the
best way to do it.
 
-- Petter Reinholdtsen <pere@debian.org> Sat, 25 Dec 2004 15:28:02 +0100
 
sql-ledger (2.4.6-1) unstable; urgency=low
 
* New upstream version.
* Petter Reinholdtsen
- 20norwegian.dpatch: Removing. The changes are now upstream.
- 40imagepath.dpatch: Updated admin.pl patch to match new upstream
version.
- Added script debian/all2po. It can convert between gettext .po
files and the SQL-ledger translation files. The script is sent
upstream.
 
-- Petter Reinholdtsen <pere@debian.org> Sun, 5 Dec 2004 15:04:02 +0100
 
sql-ledger (2.4.5-1) unstable; urgency=low
 
* New upstream release. (Closes: #280766)
- Includes password confirm field and keeps working after the
password is changed. (Closes: #260122)
* Petter Reinholdtsen
- Improved short description slightly, dropping implementation
language and adding "web based".
- 10makefiles.dpatch: Add files arapprn.pl and pw.pl to MODULEs,
making sure they are included in the package.
Added install rules for sql-ledger.eps. (Closes: #281692)
- 20norwegian.dpatch: Most of this patch is now included upstream.
Updated it to only include the remaining translations.
- 30defaults.dpatch: New patch. Use full path to location of user info.
- 40imagepath.dpatch, 45crosslink.dpatch: - Update to match new
source version.
- 45crosslink.dpatch: Add links between the normal and admin login pages.
- 50norwegian_chart.dpatch: Most of this was now included
upstream. Redused to only include the remaining issues.
- 21norwegian.dpatch, 35http-redirect, 51norwegian_chart.dpatch:
Removed/merged into other patches.
 
-- Petter Reinholdtsen <pere@debian.org> Mon, 29 Nov 2004 21:35:31 +0100
 
sql-ledger (2.4.1-2) unstable; urgency=low
 
* Updated Norwegian Bokmaal translation (20norwegian.dpatch).
 
-- Petter Reinholdtsen <pere@debian.org> Sat, 7 Aug 2004 16:44:54 +0200
 
sql-ledger (2.4.1-1) unstable; urgency=low
 
* Petter Reinholdtsen
- New upstream release.
- Made Norwegian Bokmaal translation patch relative to new upstream
version. Updated translation based on input from Erik
Inge Bolsø. (20norwegian.dpatch)
- Corrected Norwegian general chart even further. Patch
from Erik Inge Bolsø. (51norwegian_chart.dpatch)
 
-- Petter Reinholdtsen <pere@debian.org> Thu, 5 Aug 2004 10:27:22 +0200
 
sql-ledger (2.4.0-2) unstable; urgency=low
 
* Petter Reinholdtsen
- Updated Norwegian Bokmaal translation.
- Corrected Norwegian general chart.
- Add missing Build-Depends-Indep on dpatch. (Closes: #261042)
 
-- Petter Reinholdtsen <pere@debian.org> Sat, 24 Jul 2004 23:19:45 +0200
 
sql-ledger (2.4.0-1) unstable; urgency=low
 
* New upstream release. (Closes: #252750)
* Rewrote build system to use dpatch and an untouced tarball.
* Correct file path in README.Debian. (Closes: #252595)
* Add /usr/lib/sql-ledger/index.html redirecting to
login.pl. (Closes: #258611)
* Changed suggests latex to tetex-extra, to make sure latex class
file 'scrartcl.cls' is available when the suggested package is
installed. (Closes: #248593)
 
-- Petter Reinholdtsen <pere@debian.org> Sun, 18 Jul 2004 14:02:27 +0200
 
sql-ledger (2.2.6-1) unstable; urgency=low
 
* New upstream release (Closes: #245733)
* Changed to use symlinks from /usr/lib/sql-ledger and into
/var/lib/sql-ledger
(Closes: #245008, #245009)
* Changes dependencie on postgresql to suggest (Closes: #24493)
 
-- Finn-Arne Johansen <faj@bzz.no> Mon, 10 May 2004 17:43:09 +0200
 
sql-ledger (2.0.6-2) Never released; urgency=low
 
* Made the Makefiles so that it fits with <package>_<version>.orig.tar.gz
 
-- Finn-Arne Johansen <faj@bzz.no> Wed, 21 Apr 2004 04:39:49 +0200
 
sql-ledger (2.0.6-1) unstable; urgency=low
 
* Initial Release. (Closes: #129723, #138938)
* Fixed some errors to make it "lintian clean"
* Petter Reinholdtsen
- Removed (s) from copyright file to get rid of lintian warning
copyright-lists-upstream-authors-with-dh_make-boilerplate.
 
-- Finn-Arne Johansen <faj@bzz.no> Sun, 21 Mar 2004 14:07:45 +0100
/tags/debian_version_2_4_7-2/debian/patches/50norwegian_chart.dpatch
New file
0,0 → 1,35
#! /bin/sh -e
## 50norwegian_chart.dpatch by Petter Reinholdtsen <pere@hungry.com>
##
## All lines beginning with `## DP:' are a description of the patch.
##
## DP: Correct the norwegian general chart.
## DP: Sent upstream 2004-11-27.
 
[ -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.4.5/sql/Norwegian_Default-chart.sql Wed Aug 4 22:21:26 2004
+++ sql-ledger/sql/Norwegian_Default-chart.sql Sat Nov 27 22:35:26 2004
@@ -12,6 +12,7 @@
insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1070', 'Utsatt skattefordel', 'A','', 'A', '');
insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1080', 'Goodwill', 'A','', 'A', '');
insert into chart (accno,description,charttype,gifi_accno,category,link) values ('11', 'Varige driftsmidler', 'H', '', 'A', '');
+insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1080', 'Goodwill', 'A','', 'A', '');
insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1100', 'Bygninger', 'A','', 'A', '');
insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1120', 'Bygningsmessige anlegg', 'A','', 'A', '');
insert into chart (accno,description,charttype,gifi_accno,category,link) values ('1140', 'Jord- og skogbrukseiendommer', 'A','', 'A', '');
Property changes:
Added: svn:executable
+ *
/tags/debian_version_2_4_7-2/debian/patches/45crosslink.dpatch
New file
0,0 → 1,48
#! /bin/sh -e
## 45crosslink.dpatch by Petter Reinholdtsen <pere@hungry.com>
##
## All lines beginning with `## DP:' are a description of the patch.
##
## DP: Add links between admin and normal login pages.
## DP: Sent upstream 2004-08-07.
 
[ -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@
diff -ur sql-ledger/bin/mozilla/admin.pl BUILD/sql-ledger/bin/mozilla/admin.pl
--- sql-ledger/bin/mozilla/admin.pl Tue Nov 23 22:56:46 2004
+++ BUILD/sql-ledger/bin/mozilla/admin.pl Sun Nov 28 00:10:24 2004
@@ -118,6 +118,7 @@
<input type=hidden name=action value=login>
<input type=hidden name=path value=$form->{path}>
</table>
+<p><a href="login.pl">Normal login</a></p>
</form>
Only in BUILD/sql-ledger/bin/mozilla: admin.pl~
diff -ur sql-ledger/bin/mozilla/login.pl BUILD/sql-ledger/bin/mozilla/login.pl
--- sql-ledger/bin/mozilla/login.pl Fri Nov 5 05:15:38 2004
+++ BUILD/sql-ledger/bin/mozilla/login.pl Sun Nov 28 00:11:45 2004
@@ -143,6 +143,7 @@
</td>
</tr>
</table>
+<p><a href="admin.pl">Administration login</a></p>
</body>
</html>
Property changes:
Added: svn:executable
+ *
/tags/debian_version_2_4_7-2/debian/patches/10makefiles.dpatch
New file
0,0 → 1,237
#! /bin/sh -e
## 10makefiles.dpatch by Petter Reinholdtsen <pere@hungry.com>
##
## All lines beginning with `## DP:' are a description of the patch.
##
## DP: Build/install rules for sql-ledger
 
[ -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/bin/Makefile
+++ sql-ledger-2.2.6/bin/Makefile
@@ -0,0 +1,22 @@
+PACKAGE = sql-ledger
+
+MODULES = admin.pl login.pl arap.pl arapprn.pl ap.pl ar.pl ca.pl cp.pl ct.pl gl.pl ic.pl \
+ ir.pl is.pl oe.pl pe.pl rc.pl rp.pl am.pl io.pl pos.pl ps.pl pw.pl bp.pl hr.pl
+SUBDIRS = js lynx mozilla
+
+all:
+
+clean:
+
+install:
+ mkdir -p $(DESTDIR)/usr/lib/sql-ledger/bin
+ cp -r $(SUBDIRS) $(DESTDIR)/usr/lib/sql-ledger/bin
+
+ for subdir in $(SUBDIRS) ; do \
+ cp $$subdir/menu.pl $(DESTDIR)/usr/lib/sql-ledger/bin/$$subdir ; \
+ done
+
+ cd $(DESTDIR)/usr/lib/sql-ledger ; \
+ for module in $(MODULES) ; do \
+ (cd bin/lynx ; ln -sf ../mozilla/$$module) ;\
+ done ; \
--- sql-ledger-2.2.6.orig/doc/Makefile
+++ sql-ledger-2.2.6/doc/Makefile
@@ -0,0 +1,13 @@
+PACKAGE = sql-ledger
+
+FILES = README Makefile faq.html
+
+all:
+
+clean:
+
+install:
+ mkdir -p $(DESTDIR)/usr/share/doc/sql-ledger
+ cp -a $(FILES) $(DESTDIR)/usr/share/doc/sql-ledger
+
+#for ALL in locale/*/COPYING ; do HEAD=$(grep -n "# This program is free software" $ALL |cut -f1 -d:); let HEAD=$HEAD-1; head -$HEAD $ALL | tail +4 ; done | grep -v "^#$"
--- sql-ledger-2.2.6.orig/sql/Makefile
+++ sql-ledger-2.2.6/sql/Makefile
@@ -0,0 +1,11 @@
+PACKAGE = sql-ledger
+
+FILES = *.sql
+
+all:
+
+clean:
+
+install:
+ mkdir -p $(DESTDIR)/usr/lib/sql-ledger/sql
+ cp $(FILES) $(DESTDIR)/usr/lib/sql-ledger/sql
--- sql-ledger-2.2.6.orig/templates/Makefile
+++ sql-ledger-2.2.6/templates/Makefile
@@ -0,0 +1,14 @@
+PACKAGE = sql-ledger
+
+FILES = *.html *.tex *.txt
+
+all:
+
+clean:
+
+install:
+ mkdir -p $(DESTDIR)/var/lib/sql-ledger/templates
+ cp -a $(FILES) $(DESTDIR)/var/lib/sql-ledger/templates
+ chown www-data:www-data $(DESTDIR)/var/lib/sql-ledger/templates
+ ln -sf /var/lib/sql-ledger/templates $(DESTDIR)/usr/lib/sql-ledger/
+
--- sql-ledger-2.2.6.orig/css/Makefile
+++ sql-ledger-2.2.6/css/Makefile
@@ -0,0 +1,13 @@
+PACKAGE = sql-ledger
+
+FILES = sql-ledger.css
+
+all:
+
+clean:
+
+install:
+ mkdir -p $(DESTDIR)/var/lib/sql-ledger/css
+ cp $(FILES) $(DESTDIR)/var/lib/sql-ledger/css
+ chown -R www-data:www-data $(DESTDIR)/var/lib/sql-ledger/css
+ ln -sf /var/lib/sql-ledger/css $(DESTDIR)/usr/lib/sql-ledger/
--- sql-ledger-2.2.6.orig/users/Makefile
+++ sql-ledger-2.2.6/users/Makefile
@@ -0,0 +1,13 @@
+PACKAGE = sql-ledger
+
+FILES = sql-ledger.eps sql-ledger.png
+
+all:
+
+clean:
+
+install:
+ mkdir -p $(DESTDIR)/var/lib/sql-ledger/users
+ cp -r $(FILES) $(DESTDIR)/var/lib/sql-ledger/users/
+ chown www-data:www-data $(DESTDIR)/var/lib/sql-ledger/users
+ ln -sf /var/lib/sql-ledger/users $(DESTDIR)/usr/lib/sql-ledger/
--- sql-ledger-2.2.6.orig/SL/Makefile
+++ sql-ledger-2.2.6/SL/Makefile
@@ -0,0 +1,11 @@
+PACKAGE = sql-ledger
+
+FILES := $(shell ls *.pm)
+
+all:
+
+clean:
+
+install:
+ mkdir -p $(DESTDIR)/usr/lib/sql-ledger/SL
+ cp -r $(FILES) $(DESTDIR)/usr/lib/sql-ledger/SL
--- sql-ledger-2.2.6.orig/locale/Makefile
+++ sql-ledger-2.2.6/locale/Makefile
@@ -0,0 +1,43 @@
+PACKAGE = sql-ledger
+
+LOCALES = $(shell ls */LANGUAGE | cut -d/ -f1)
+
+localedir = /usr/lib/sql-ledger/locale
+dlocaledir = $(DESTDIR)$(localedir)
+srctopdir := $(shell pwd)/..
+
+all:
+
+clean:
+
+install:
+ mkdir -p $(dlocaledir)
+ set -e ; \
+ for lang in $(LOCALES) ; do \
+ mkdir -p $(dlocaledir)/$$lang ; \
+ for file in `find $$lang/. -type f | grep -v COPYING`; do \
+ if [ -f $$file ] ; then \
+ cp $$file $(dlocaledir)/$$lang/. ; \
+ fi ; \
+ done ; \
+ if [ -h $$lang/Num2text ] ; then \
+ ln -sf ../es/Num2text $(dlocaledir)/$$lang/Num2text ; \
+ elif [ -h $$lang/Num2text ] ; then \
+ cp $$lang/Num2text $(dlocaledir)/$$lang/. ; \
+ fi ; \
+ done
+
+ cp de/locales.pl $(dlocaledir)/de
+ set -e ; for lang in $(LOCALES) ; do \
+ if [ -d $(dlocaledir)/$$lang -a \
+ -f $(dlocaledir)/$$lang/LANGUAGE -a \
+ ! -f $(dlocaledir)/$$lang/locales.pl ] ; then \
+ ln -sf ../de/locales.pl $(dlocaledir)/$$lang/locales.pl ;\
+ fi ; \
+ done
+
+ set -e ; for lang in $(LOCALES) ; do \
+ (cd $(dlocaledir)/$$lang && \
+ perl -I $(srctopdir) ./locales.pl || exit 1) ; \
+ done
+
--- sql-ledger-2.2.6.orig/Makefile
+++ sql-ledger-2.2.6/Makefile
@@ -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 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
+
+all:
+
+install:
+ mkdir -p $(DESTDIR)/usr/lib/sql-ledger
+ cp $(LIB_FILES) $(DESTDIR)/usr/lib/sql-ledger
+ mkdir -p $(DESTDIR)/usr/share/sql-ledger
+ cp $(SHR_FILES) $(DESTDIR)/usr/share/sql-ledger
+
+ cd $(DESTDIR)/usr/lib/sql-ledger ; \
+ ln -sf login.pl admin.pl ; \
+ set -e ; for module in $(MODULES) ; do \
+ ln -s am.pl $$module ; \
+ done ; \
+ ln -sf /etc/sql-ledger/sql-ledger.conf
+
+ set -e ; for subdir in $(SUBDIRS) ; do \
+ $(MAKE) -C $$subdir $@ ; \
+ done
+
+clean:
--- sql-ledger-2.2.6.orig/etc/Makefile
+++ sql-ledger-2.2.6/etc/Makefile
@@ -0,0 +1,12 @@
+PACKAGE = sql-ledger
+
+FILES = sql-ledger-httpd.conf sql-ledger.conf
+
+all:
+
+clean:
+
+install:
+ mkdir -p $(DESTDIR)/etc/sql-ledger
+ cp $(FILES) $(DESTDIR)/etc/sql-ledger
+
Property changes:
Added: svn:executable
+ *
/tags/debian_version_2_4_7-2/debian/patches/40imagepath.dpatch
New file
0,0 → 1,69
#! /bin/sh -e
## 40imagepath.dpatch by Petter Reinholdtsen <pere@hungry.com>
##
## All lines beginning with `## DP:' are a description of the patch.
##
## DP: Correct path to logo and images
 
[ -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@
diff -ur sql-ledger-2.4.5/bin/mozilla/am.pl BUILD/sql-ledger/bin/mozilla/am.pl
--- sql-ledger-2.4.5/bin/mozilla/am.pl Fri Nov 5 04:53:55 2004
+++ sql-ledger/bin/mozilla/am.pl Mon Nov 29 20:37:08 2004
@@ -2349,7 +2349,7 @@
</pre>
<center>
-<a href="http://www.sql-ledger.org" target=_top><img src=sql-ledger.gif border=0></a>
+<a href="http://www.sql-ledger.org" target=_top><img src="images/sql-ledger.png" border=0></a>
<h1 class=login>|.$locale->text('Version').qq| $form->{version}</h1>
<p>
diff -ur sql-ledger/bin/mozilla/admin.pl BUILD/sql-ledger/bin/mozilla/admin.pl
--- sql-ledger-2.4.5/bin/mozilla/admin.pl Tue Nov 23 22:56:46 2004
+++ sql-ledger/bin/mozilla/admin.pl Sat Nov 27 21:35:55 2004
@@ -104,7 +104,7 @@
<div align=center>
-<a href="http://www.sql-ledger.org"><img src=sql-ledger.png border=0>&trade;</a>
+<a href="http://www.sql-ledger.org"><img src="images/sql-ledger.png" border=0>&trade;</a>
<h1 class=login>|.$locale->text('Version').qq| $form->{version}<p>|.$locale->text('Administration').qq|</h1>
<form method=post action="$form->{script}" name=admin>
diff -ur sql-ledger/bin/mozilla/login.pl BUILD/sql-ledger/bin/mozilla/login.pl
--- sql-ledger-2.4.5/bin/mozilla/login.pl Fri Nov 5 05:15:38 2004
+++ sql-ledger/bin/mozilla/login.pl Sat Nov 27 21:24:48 2004
@@ -109,7 +109,7 @@
<center>
<table class=login border=3 cellpadding=20>
<tr>
- <td class=login align=center><a href="http://www.sql-ledger.org" target=_top><img src=sql-ledger.gif border=0>&trade;</a>
+ <td class="login" align="center"><a href="http://www.sql-ledger.org" target=_top><img src="images/sql-ledger.png" border="0">&trade;</a>
<h1 class=login align=center>|.$locale->text('Version').qq| $form->{version}
</h1>
@@ -170,7 +170,7 @@
<center>
<table class=login border=3 cellpadding=20>
<tr>
- <td class=login align=center><a href="http://www.sql-ledger.org" target=_top><img src=sql-ledger.gif border=0>&trade;</a>
+ <td class="login" align="center"><a href="http://www.sql-ledger.org" target=_top><img src="images/sql-ledger.png" border="0">&trade;</a>
<h1 class=login align=center>|.$locale->text('Version').qq| $form->{version}
</h1>
Property changes:
Added: svn:executable
+ *
/tags/debian_version_2_4_7-2/debian/patches/00list
New file
0,0 → 1,8
#
# List of patches to apply.
#
10makefiles
30defaults
40imagepath
45crosslink
50norwegian_chart
/tags/debian_version_2_4_7-2/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
+ *
/tags/debian_version_2_4_7-2/debian/copyright
New file
0,0 → 1,115
This package was debianized by Finn-Arne Johansen <faj@bzz.no> on
Sun, 4 May 2003 05:21:25 +0200.
 
It was downloaded from http://prdownloads.sourceforge.net/sql-ledger/sql-ledger-2.0.6.tar.gz?download
 
Upstream Author: Dieter Simader dsimader@sql-ledger.org
 
Brazilian texts:
Author: Andre Felipe Machado <andremachado@techforce.com.br>
Miguel Koren O'Brien de Lacy <miguelk@konsultex.com.br>
Simplified Chinese texts:
Author: Edmund Lian <elian@inbrief.net>
Spanish texts:
Adoption to Colombian Accounting Terms:
Authors: Dirk Enrique Seiffert <info@caribenet.com>
Lourdes Mejía Martinez <lourdes@caribenet.com>
Silfredo Godoy Chavez <silfredo@caribenet.com>
 
Catalan Translation:
Author: Jaume Teixi <teixi@rocacorbit.com>
Czech texts:
Author: Tomas Fencl <tomas.fencl@centrum.cz>
German texts:
Author: Thomas Bayen <tbayen@bayen.de>
Gunter Ohrner <G.Ohrner@post.rwth-aachen.de>
Danish texts:
Author: Keld Jørn Simonsen <keld@dkuug.dk>
Jonas Smedegaard <jonas@jones.dk>
Estonian texts:
Author: Martin Lillepuu <martin@lillepuu.com>
Lauri Jesmin <jesmin@ut.ee>
Tanel Kurvits <rauge@hot.ee>
Egypt Arabic texts:
Author: Omar BaheyEldin <o@ab2.com>
Rania Tayel
#---- Please Use UTF-8 encoding
#---- For some web servers you have to enable UTF-8
#---- For Knoquere you have to edit the font and use an arabic font
--- Good Luck
#--- Omar BaheyEldin
British English texts:
Author:
Spanish texts:
Author: Maria Gabriela Fong <mgfong@maga.tzo.org>
John Stoddart <jstypo@imagencolor.com.ve>
Federico Montesino Pouzols <fedemp@arrok.com>
Tomás Pereira <topec@percar.com>
Spanish texts:
Author: Maria Gabriela Fong <mgfong@maga.tzo.org>
John Stoddart <jstypo@imagencolor.com.ve>
Federico Montesino Pouzols <fedemp@arrok.com>
Tomás Pereira <topec@percar.com>
Finish texts:
Author: Petri Leppänen <mpj@mail.htk.fi>
French texts:
Author: Sèbastien Brassard <sbrassar.cgocable.ca>
Oscar Buijten <oscar@elbie.com>
Wolfgang Sourdeau <wolfgang@contre.com>
Aguibou KONE <aguibou.kone@rocketmail.com>
Jens-Ingo Brodesser <jens-ingo@all2all.org>
Hungarian texts:
Author: Kabai József <kabai@investor.hu>
Icelandic texts:
Author: Margeir Reynisson <margeir@met.is>
Italian texts:
Author: Paolo Bizzarri <p.bizzarri@icube.it>
Luca Venturini <luca@yepa.com>
Alessandro Pasotti <apasotti@isoleborromee.it>
Daniele Giacomini <daniele@swlibero.org> 2003.09.28-2003.11.05
Lithuanian texts:
Author:
Latvian texts:
Author: Kaspars Melkis <info@isolis.lv>
Spanish texts (Mexico):
Author: Alberto Ladron <h@grupoh.com.mx>
Dutch texts:
Author: AJ Hettema <Ignite@ecosse.net>
Oscar Buijten <oscar@elbie.com>
Bert Tijhuis <domino@dse.nl>
Paul Tammes <ptammes@home.nl>
Norwegian texts:
Author: Keld Jørn Simonsen <keld@dkuug.dk>
Morten Pedersen <morten@workzone.no>
Finn-Arne Johansen <faj@bzz.no>
Petter Reinholdtsen <pere@hungry.com>
Spanish texts:
Author: Maria Gabriela Fong <mgfong@maga.tzo.org>
Polish texts:
Author: Peter Dabrowski <meritage@mail.com>
Portugese texts:
Author: Paulo Rodrigues <prodrigues@vianetworks.pt>
Russian texts:
Author:
Swedish texts:
Author: Jonny Larsson <jonny@lernbo.com>
Daniel Andersson <daniel@addelei.nu>
Spanish texts:
Author: Carlos López Linares <chlopezl@yahoo.com>
Turkish texts:
Author: Mufit Eribol <meribol@deltagrup.com.tr>
Traditional Chinese texts:
Author: Edmund Lian <elian@inbrief.net>
Ukrainian texts:
Author: Ivan Petrouchtchak <impe@telus.net>
Spanish Texts (Venezuela):
Author: John Stoddart <jstypo@imagencolor.com.ve>
 
These scripts are free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.
 
On Debian GNU/Linux systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.
 
/tags/debian_version_2_4_7-2/debian/all2po
New file
0,0 → 1,182
#!/usr/bin/perl
#
# Author: Petter Reinholdtsen
# Date: 2004-12-05
# License: GPL
#
# Convert SQL-ledger 'all' translation files to gettext style .po
# files, and back.
#
# Based on code from po-debconf.
 
use Text::Wrap;
 
my $infile = shift;;
 
my %alltext;
if ($infile eq "all") {
require "all";
%alltext = %{ $self{texts} };
as_po("all.po", %alltext);
} elsif ($infile eq "all.po") {
%alltext = load_po($infile);
as_sql_ledger_all("all", %alltext);
} else {
print STDERR "usage: $0 all > all.po\n";
print STDERR " $0 all.po > all\n";
exit 1;
}
 
exit 0;
 
sub perl_encode {
$msg = shift;
# Using single quotes, so there is no need to escape
#$msg =~ s%\"%\\\"%g;
return $msg;
}
 
sub as_sql_ledger_all {
my ($filename, %alltext) = @_;
 
print <<EOF;
# These are all the texts to build the translations files.
# to build unique strings edit the module files instead
# this file is just a shortcut to build strings which are the same
 
\$self{texts} = {
EOF
 
for $text (sort keys %alltext) {
my $translation = perl_encode($alltext{$text});
print " '$text' => '$translation',\n"
}
 
print <<EOF;
};
 
1;
EOF
}
 
sub po_encode {
$msg = shift;
$msg =~ s%\\%\\\\%g;
$msg =~ s%\"%\\\"%g;
$msg =~ s%\n%\\n%g;
return $msg;
}
 
sub as_po {
my ($filename, %alltext) = @_;
 
# Guessing on a charset. It should be fetched from the original
# file itself, but it is missing in the sql-ledger all files.
my $charset = "ISO-9959-1";
 
# Prevent a wrapped line from beginning with a space
$Text::Wrap::break = qr/\n|\s(?=\S)/;
 
$Text::Wrap::columns = 72;
$Text::Wrap::huge = 'overflow';
$Text::Wrap::break = qr/\n|\s(?=\S)/;
 
print <<EOF;
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Copyright holder
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\\n"
"Language-Team: LANGUAGE <LL@li.org>\\n"
"MIME-Version: 1.0\\n"
"Content-Type: text/plain; charset=$charset\\n"
"Content-Transfer-Encoding: 8bit\\n"
 
EOF
for $text (sort keys %alltext) {
my $translation = po_encode($alltext{$text});
my $id = wrap("", " ", "msgid \"$text\"");
my $str = wrap("", " ", "msgstr \"$translation\"");
$id =~ s/\n / \"\n \"/g;
$str =~ s/\n / \"\n \"/g;
print "$id\n";
print "$str\n\n";
}
}
 
sub unescape_one_sequence
{
my ($sequence) = @_;
 
return "\\" if $sequence eq "\\\\";
return "\"" if $sequence eq "\\\"";
return "\n" if $sequence eq "\\n";
 
# gettext also handles \n, \t, \b, \r, \f, \v, \a, \xxx (octal),
# \xXX (hex) and has a comment saying they want to handle \u and \U.
 
return $sequence;
}
 
sub unescape_po_string
{
my ($string) = @_;
 
$string =~ s/(\\.)/unescape_one_sequence($1)/eg;
 
return $string;
}
 
sub load_po {
my $filename = shift;
my %alltext;
open(PO_FILE, "<$filename") || die "Unable to read from $filename";
 
my $nextfuzzy = 0;
my $inmsgid = 0;
my $inmsgstr = 0;
my $msgid = "";
my $msgstr = "";
 
while (<PO_FILE>)
{
$nextfuzzy = 1 if /^#, fuzzy/;
 
if (/^msgid "((\\.|[^\\])*)"/ )
{
$alltext{$msgid} = $msgstr if $inmsgstr && $msgid && defined $msgstr;
$msgid = "";
$msgstr = "";
 
if ($nextfuzzy) {
$inmsgid = 0;
} else {
$msgid = unescape_po_string($1);
$inmsgid = 1;
}
$inmsgstr = 0;
$nextfuzzy = 0;
}
 
if (/^msgstr "((\\.|[^\\])*)"/)
{
$msgstr = unescape_po_string($1);
$inmsgstr = 1;
$inmsgid = 0;
}
 
if (/^ *"((\\.|[^\\])*)"/)
{
$msgid .= unescape_po_string($1) if $inmsgid;
$msgstr .= unescape_po_string($1) if $inmsgstr;
}
}
$alltext{$msgid} = $msgstr if $inmsgstr && $msgid && $msgstr;
return %alltext;
}
/tags/debian_version_2_4_7-2/debian/rules
New file
0,0 → 1,113
#!/usr/bin/make -f
# GNU copyright 2004 by Petter Reinholdtsen
 
# This is the debhelper compatibility version to use.
export DH_COMPAT=3
 
include /usr/share/dpatch/dpatch.make
 
TARBALL_VERSION = 2.4.7
 
DEB_TARBALL = sql-ledger-$(TARBALL_VERSION).tar.gz
 
DESTDIR = $(CURDIR)/debian/sql-ledger
 
INSTALL = install
 
build-tree = $(CURDIR)/BUILD
 
unpack: unpack-stamp
unpack-stamp: $(DEB_TARBALL)
touch unpack-stamp
 
$(DEB_TARBALL): $(DEB_TARBALL)-stamp
$(DEB_TARBALL)-stamp:
mkdir -p $(build-tree)
cd $(build-tree) && tar -zxf $(CURDIR)/$(DEB_TARBALL)
touch $@
 
configure: configure-stamp
configure-stamp: unpack patch-stamp
dh_testdir
# Add here commands to configure the package.
 
touch configure-stamp
 
build: build-stamp
 
build-stamp: configure-stamp
dh_testdir
 
# Add here commands to compile the package.
$(MAKE) -C $(build-tree)/sql-ledger
#/usr/bin/docbook-to-man debian/sql-ledger.sgml > sql-ledger.1
 
touch build-stamp
 
clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp unpack-stamp $(DEB_TARBALL)-stamp
rm -rf $(build-tree)
 
# Add here commands to clean up after the build process.
#-$(MAKE) -C $(build-tree)/sql-ledger clean
 
dh_clean
 
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
 
# Add here commands to install the package into debian/sql-ledger.
$(MAKE) -C $(build-tree)/sql-ledger install DESTDIR=$(DESTDIR)
 
$(INSTALL) debian/sql-ledger-enable $(DESTDIR)/usr/sbin/
 
 
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
 
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu
# dh_installlogrotate
# dh_installinit
dh_installcron
dh_installman
dh_installinfo
dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
 
binary: binary-indep binary-arch
 
# Generate new copyright file with the copyright info for each
# translation as well as the package itself.
debian/copyright: unpack patch-stamp
cat debian/copyright.pre > debian/copyright
set -e ; \
for file in $(build-tree)/sql-ledger/locale/*/COPYING ; do \
HEAD=$$(grep -n '# This program is free software' $$file |cut -f1 -d:); \
HEAD=`expr $$HEAD - 1`; \
head -$$HEAD $$file | tail +4 ; \
done | grep -v '^#$$' | sed -e 's/^#[ ]//' >> debian/copyright
cat debian/copyright.post >> debian/copyright
 
.PHONY: build clean binary-indep binary-arch binary install configure
Property changes:
Added: svn:executable
+ *
/tags/debian_version_2_4_7-2/debian/copyright.post
New file
0,0 → 1,9
 
These scripts are free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.
 
On Debian GNU/Linux systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.
 
/tags/debian_version_2_4_7-2/debian/.cvsignore
New file
0,0 → 1,3
files
sql-ledger
sql-ledger.substvars
/tags/debian_version_2_4_7-2/debian/copyright.pre
New file
0,0 → 1,7
This package was debianized by Finn-Arne Johansen <faj@bzz.no> on
Sun, 4 May 2003 05:21:25 +0200.
 
It was downloaded from http://prdownloads.sourceforge.net/sql-ledger/sql-ledger-2.0.6.tar.gz?download
 
Upstream Author: Dieter Simader dsimader@sql-ledger.org
 
/tags/debian_version_2_4_7-2/debian/README.Debian
New file
0,0 → 1,30
sql-ledger for Debian
---------------------
 
To test this package you need to add this line to you
/etc/apache/httpd.conf:
include /etc/sql-ledger/sql-ledger-httpd.conf
or, if you run apache >= 1.3.29.0.1, please a symlink from
/etc/sql-ledger/sql-ledger-httpd.conf to /etc/apache/conf.d
then restart apache.
 
You also have to add some users to your postgres DB
 
The easiest way to test this package is to add a postgres-users with
the name of www-data. This however will mean that every apache process
will be able to authenticate to your DB.
 
To make a more robust security scheme, please read your postgres
documentation, but for now, do , as root, a
 
su - postgres
createuser -d www-data
 
Answer "n" to the question "Shall the new user be allowed to create
more new users?"
 
To finally test this, point your browser at
http://localhost/sql-ledger/admin.pl to create the DB and the initial
user, and afterwards: http://localhost/sql-ledger/login.pl to log in.
 
-- Finn-Arne Johansen <faj@bzz.no>, Sun, March 21, 2004 15:41:25 +0100
/tags/debian_version_2_4_7-2/debian/control
New file
0,0 → 1,31
Source: sql-ledger
Section: web
Priority: optional
Maintainer: Finn-Arne Johansen <faj@bzz.no>
Uploaders: Petter Reinholdtsen <pere@debian.org>
Build-Depends-Indep: debhelper (>> 3.0.0), rsync, dpatch
Standards-Version: 3.6.1
 
Package: sql-ledger
Architecture: all
Depends: ${perl:Depends}, apache | httpd, libdbd-pg-perl
Suggests: tetex-extra, postgresql
Description: A web based double-entry accounting program
Accounting data is stored in a SQL Server, for the display any text or
GUI browser can be used. The entire system is linked through a chart
of accounts. Each item in inventory is linked to revenue, expense,
inventory and tax accounts. When you sell and purchase goods and
services the accounts are automatically updated.
.
With the assembly feature you can build manufactured goods from parts,
services and assemblies. When you sell assemblies all the accounts
linked to the individual parts, services and assemblies are updated
and stock levels adjusted accordingly. If any item belonging to an
assembly is changed all assemblies are updated as well.
.
Invoices, Packing List, Income Statement, Balance Sheet, Sales and
Purchase Order, Statements, Receipts and Checks are generated from
templates and may be changed to suit your needs. Templates are provided
in html and tex format. The tex templates are processed with latex
to produce postscript and PDF documents and can be sent to a printer,
displayed in a PDF viewer or sent out via email ...
/tags/debian_version_2_4_7-2/debian
Property changes:
Added: svn:ignore
+ files
sql-ledger
sql-ledger.substvars