summaryrefslogtreecommitdiff
path: root/dists
diff options
context:
space:
mode:
Diffstat (limited to 'dists')
-rw-r--r--dists/gentoo/ledger-smb-1.1.1c.ebuild47
-rw-r--r--dists/gentoo/ledger-smb-VERSION.ebuild47
-rw-r--r--dists/gentoo/ledger-smb-httpd-gentoo.conf16
-rw-r--r--dists/gentoo/metadata.xml13
-rw-r--r--dists/gentoo/post-install.txt30
5 files changed, 153 insertions, 0 deletions
diff --git a/dists/gentoo/ledger-smb-1.1.1c.ebuild b/dists/gentoo/ledger-smb-1.1.1c.ebuild
new file mode 100644
index 00000000..488832a7
--- /dev/null
+++ b/dists/gentoo/ledger-smb-1.1.1c.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2006 The LedgerSMB Team
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit depend.apache webapp eutils
+
+DESCRIPTION="LedgerSMB"
+HOMEPAGE="http://ledger-smb.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+#SRC_URI="http://eva.a.jjayr.com/lsmb-package/${P}.tar.gz"
+
+# don't use the gentoo mirrors yet, we're not there.
+RESTRICT='mirror'
+
+LICENSE="GPL-2"
+KEYWORDS="x86 ppc"
+
+# no use flag for now
+IUSE=""
+
+DEPEND=""
+RDEPEND="
+ >=dev-db/postgresql-8
+ >=dev-lang/perl-5.8
+ dev-perl/DBI
+ net-www/apache
+"
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+}
+
+src_install() {
+ webapp_src_preinst
+
+ webapp_server_configfile apache ${S}/dists/gentoo/ledger-smb-httpd-gentoo.conf
+
+ cp -R ${S}/* ${D}/${MY_HTDOCSDIR}
+
+ # LedgerSMB needs to write to the users directory
+ webapp_serverowned -R ${MY_HTDOCSDIR}/users/
+ webapp_serverowned -R ${MY_HTDOCSDIR}/spool/
+ webapp_postinst_txt en ${S}/dists/gentoo/post-install.txt
+
+ webapp_src_install
+}
diff --git a/dists/gentoo/ledger-smb-VERSION.ebuild b/dists/gentoo/ledger-smb-VERSION.ebuild
new file mode 100644
index 00000000..488832a7
--- /dev/null
+++ b/dists/gentoo/ledger-smb-VERSION.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2006 The LedgerSMB Team
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit depend.apache webapp eutils
+
+DESCRIPTION="LedgerSMB"
+HOMEPAGE="http://ledger-smb.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+#SRC_URI="http://eva.a.jjayr.com/lsmb-package/${P}.tar.gz"
+
+# don't use the gentoo mirrors yet, we're not there.
+RESTRICT='mirror'
+
+LICENSE="GPL-2"
+KEYWORDS="x86 ppc"
+
+# no use flag for now
+IUSE=""
+
+DEPEND=""
+RDEPEND="
+ >=dev-db/postgresql-8
+ >=dev-lang/perl-5.8
+ dev-perl/DBI
+ net-www/apache
+"
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+}
+
+src_install() {
+ webapp_src_preinst
+
+ webapp_server_configfile apache ${S}/dists/gentoo/ledger-smb-httpd-gentoo.conf
+
+ cp -R ${S}/* ${D}/${MY_HTDOCSDIR}
+
+ # LedgerSMB needs to write to the users directory
+ webapp_serverowned -R ${MY_HTDOCSDIR}/users/
+ webapp_serverowned -R ${MY_HTDOCSDIR}/spool/
+ webapp_postinst_txt en ${S}/dists/gentoo/post-install.txt
+
+ webapp_src_install
+}
diff --git a/dists/gentoo/ledger-smb-httpd-gentoo.conf b/dists/gentoo/ledger-smb-httpd-gentoo.conf
new file mode 100644
index 00000000..82f18f81
--- /dev/null
+++ b/dists/gentoo/ledger-smb-httpd-gentoo.conf
@@ -0,0 +1,16 @@
+
+#Alias /ledger-smb /some/path/to/ledger-smb/
+
+<Directory ${MY_HTDOCSDIR}>
+ AllowOverride All
+ AddHandler cgi-script .pl
+ Options ExecCGI Includes FollowSymlinks
+ Order Allow,Deny
+ Allow from All
+</Directory>
+
+#<Directory /some/path/to/ledger-smb/users>
+# Order Deny,Allow
+# Deny from All
+#</Directory>
+
diff --git a/dists/gentoo/metadata.xml b/dists/gentoo/metadata.xml
new file mode 100644
index 00000000..0bffadf0
--- /dev/null
+++ b/dists/gentoo/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>web-apps</herd>
+ <maintainer>
+ <email>jasonjayr@users.sourceforge.net</email>
+ <description>LedgerSMB Gentoo Maintainer</description>
+ </maintainer>
+ <longdescription lang="en">
+LedgerSMB is a fork of SQL-Ledger which seeks to provide better security and
+data integrity controls, better community support, open documentation, and more.
+ </longdescription>
+</pkgmetadata>
diff --git a/dists/gentoo/post-install.txt b/dists/gentoo/post-install.txt
new file mode 100644
index 00000000..c7aa8b0e
--- /dev/null
+++ b/dists/gentoo/post-install.txt
@@ -0,0 +1,30 @@
+LedgerSMB has been installed into ${VHOST_HOSTNAME}
+
+You must add the following to your <VirtualHost> section for ${VHOST_HOSTNAME}
+by hand.
+
+-----8<---- BEGIN APACHE CONFIG -----------
+
+<Directory ${VHOST_HTDOCSDIR}/${VHOST_APPDIR}>
+ AllowOverride All
+ AddHandler cgi-script .pl
+ Options ExecCGI Includes FollowSymlinks
+ Order Allow,Deny
+ Allow from All
+</Directory>
+
+# Prevent unauthorized access to configuration
+# and access control files
+<Directory ${VHOST_HTDOCSDIR}/${VHOST_APPDIR}/users>
+ Order Deny,Allow
+ Deny from All
+</Directory>
+
+-----8<---- END APACHE CONFIG -----------
+
+Once you've done that, go to admin.pl (probably at
+http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/admin.pl) and set your
+initial password and users.
+
+Good luck!
+