[Pkg-sql-ledger-commit] r172 - ledger-smb/trunk/debian
pkg-sql-ledger-commit-owner at lists.alioth.debian.org
pkg-sql-ledger-commit-owner at lists.alioth.debian.org
Wed Apr 2 13:42:30 UTC 2008
Author: dblaber-guest
Date: 2008-04-02 13:42:28 +0000 (Wed, 02 Apr 2008)
New Revision: 172
Modified:
ledger-smb/trunk/debian/rules
Log:
revert and get ready to use Makefile.PL instead.
Modified: ledger-smb/trunk/debian/rules
===================================================================
--- ledger-smb/trunk/debian/rules 2008-03-28 20:11:28 UTC (rev 171)
+++ ledger-smb/trunk/debian/rules 2008-04-02 13:42:28 UTC (rev 172)
@@ -40,88 +40,7 @@
ledgersmb.conf.default > ledgersmb.conf
- # Attempt to port old makefile
- mkdir -p $(DESTDIR)/usr/share/ledgersmb
- # Copy all of the perl files
- cp $(shell ls *.pl | grep -v -E '(pos\.conf)\.pl') $(DESTDIR)/usr/share/ledgersmb
- # Copy some of the images and others
- cp favicon.ico login.pl menu.ini ledgersmb.conf.default VERSION index.html ledger-smb.png ledger-smb.gif ledger-smb_small.png $(DESTDIR)/usr/share/ledgersmb
- # Bin directory
- mkdir -p $(DESTDIR)/usr/share/ledgersmb/bin/custom
- cp bin/*.pl $(DESTDIR)/usr/share/ledgersmb/bin
- find $(DESTDIR)/usr/share/ledgersmb/bin -type d -exec chmod 755 '{}' \;
- find $(DESTDIR)/usr/share/ledgersmb/bin -type f -exec chmod 644 '{}' \;
- # Contrib Directory
- mkdir -p $(DESTDIR)/usr/share/doc/ledgersmb/contrib
- pwd
- cp -r bin/* $(DESTDIR)/usr/share/doc/ledgersmb/contrib
- # Css Directory
- mkdir -p $(DESTDIR)/var/lib/ledgersmb/css
- cp css/ledger-smb*.css $(DESTDIR)/var/lib/ledgersmb/css
- chmod 644 $(DESTDIR)/var/lib/ledgersmb/css/*
- ln -sf /var/lib/ledgersmb/css $(DESTDIR)/usr/share/ledgersmb
- # Docs
- mkdir -p $(DESTDIR)/usr/share/ledgersmb/doc
- cp doc/LedgerSMB-manual.pdf $(DESTDIR)/usr/share/ledgersmb/doc
- mkdir -p $(DESTDIR)/usr/share/doc/ledgersmb
- cp -a doc/COPYRIGHT $(DESTDIR)/usr/share/doc/ledgersmb
- cp -a doc/API $(DESTDIR)/usr/share/doc/ledgersmb
- cp -a doc/manual $(DESTDIR)/usr/share/doc/ledgersmb
- cp -a doc/database $(DESTDIR)/usr/share/doc/ledgersmb
- cp -a doc/samples $(DESTDIR)/usr/share/doc/ledgersmb
- # Drivers
- mkdir -p $(DESTDIR)/usr/share/ledgersmb/drivers
- cp drivers/*.pl $(DESTDIR)/usr/share/ledgersmb/drivers
- chmod 644 $(DESTDIR)/usr/share/ledgersmb/drivers/*
- # LedgerSMB
- mkdir -p $(DESTDIR)/usr/share/ledgersmb/LedgerSMB
- cp -r LedgerSMB/*.pm $(DESTDIR)/usr/share/ledgersmb/LedgerSMB
- cp -r LedgerSMB/Taxes $(DESTDIR)/usr/share/ledgersmb/LedgerSMB
- cp -r LedgerSMB/Session $(DESTDIR)/usr/share/ledgersmb/LedgerSMB
- cp -r LedgerSMB/CreditCard $(DESTDIR)/usr/share/ledgersmb/LedgerSMB
- find $(DESTDIR)/usr/share/ledgersmb/LedgerSMB -type f -exec chmod 644 '{}' \;
- find $(DESTDIR)/usr/share/ledgersmb/LedgerSMB -type d -exec chmod 755 '{}' \;
- # Locale
- mkdir -p $(DESTDIR)/usr/share/ledgersmb/locale/po
- mkdir -p $(DESTDIR)/usr/share/ledgersmb/locale/html
- cp locale/po/* $(DESTDIR)/usr/share/ledgersmb/locale/po
- cp locale/html/*.html $(DESTDIR)/usr/share/ledgersmb/locale/html
- cp locale/LedgerSMB.pot $(DESTDIR)/usr/share/ledgersmb/locale
- cp locale/*.html $(DESTDIR)/usr/share/ledgersmb/locale
- find $(DESTDIR)/usr/share/ledgersmb/locale -type d -exec chmod 755 '{}' \;
- find $(DESTDIR)/usr/share/ledgersmb/locale -type f -exec chmod 644 '{}' \;
- # sql
- mkdir -p $(DESTDIR)/usr/share/ledgersmb/sql/legacy
- cp sql/*.sql $(DESTDIR)/usr/share/ledgersmb/sql
- cp -r sql/legacy $(DESTDIR)/usr/share/ledgersmb/sql
- find $(DESTDIR)/usr/share/ledgersmb/sql -type f -exec chmod 644 '{}' \;
- find $(DESTDIR)/usr/share/ledgersmb/sql -type d -exec chmod 755 '{}' \;
- # templates
- mkdir -p $(DESTDIR)/var/lib/ledgersmb/templates
- cp -a templates/*.html templates/*.tex templates/*.txt $(DESTDIR)/var/lib/ledgersmb/templates
- cp -a templates/demo $(DESTDIR)/var/lib/ledgersmb/templates
- chown -R www-data:www-data $(DESTDIR)/var/lib/ledgersmb/templates
- ln -sf /var/lib/ledgersmb/templates $(DESTDIR)/usr/share/ledgersmb/
- find $(DESTDIR)/var/lib/ledgersmb/templates -type f -exec chmod 644 '{}' \;
- find $(DESTDIR)/var/lib/ledgersmb/templates -type d -exec chmod 755 '{}' \;
- # utils
- mkdir -p $(DESTDIR)/usr/share/doc/ledgersmb/utils
- cp -r utils/* $(DESTDIR)/usr/share/doc/ledgersmb/utils
- mkdir -p $(DESTDIR)/etc/ledgersmb
- # Copy the configs
- cp ledgersmb.conf ledgersmb-httpd.conf pos.conf.pl $(DESTDIR)/etc/ledgersmb
- cd $(DESTDIR)/usr/share/ledgersmb ; \
- ln -sf /etc/ledgersmb/pos.conf.pl ; \
- ln -sf /var/lib/ledgersmb/images
- mkdir -p $(DESTDIR)/var/lib/ledgersmb/spool
- chown www-data:www-data $(DESTDIR)/var/lib/ledgersmb/spool
- mkdir -p $(DESTDIR)/var/lib/ledgersmb/images
- mkdir -p $(DESTDIR)/var/lib/ledgersmb/images/demo
- cp $(DESTDIR)/var/lib/ledgersmb/templates/demo/*.[^ht]* $(DESTDIR)/var/lib/ledgersmb/images
- cp $(DESTDIR)/var/lib/ledgersmb/templates/demo/*.[^ht]* $(DESTDIR)/var/lib/ledgersmb/images/demo
- chown -R www-data:www-data $(DESTDIR)/var/lib/ledgersmb/templates
-
-
+
chown www-data:www-data $(CURDIR)/debian/ledgersmb/etc/ledgersmb/*
chmod 0600 $(CURDIR)/debian/ledgersmb/etc/ledgersmb/*
chmod +x $(CURDIR)/debian/ledgersmb/usr/share/ledgersmb/upgrade-templates.pl
More information about the Pkg-sql-ledger-commit
mailing list