1 # Maintainer: Dan Serban
2 # Contributor: Ali H. Caliskan <ali.h.caliskan AT gmail DOT com>
7 pkgdesc="An Open Source Business Suite ERP/CRM/MFG/SCM/POS."
9 url=("http://www.adempiere.com/")
11 depends=('java-runtime' 'java-environment' 'postgresql')
12 source=('http://downloads.sourceforge.net/adempiere/Adempiere_360LTS.tar.gz' 'SilentSetup.properties')
13 md5sums=('718472fd4c93ca77a3fd831dec498b38' '312017dd6970428779fb1f75b6045635')
18 cp AdempiereEnv.properties Adempiere/
19 msg "Install Adempiere Server"
20 if [ $JAVA_HOME ]; then
21 JAVA=$JAVA_HOME/bin/java
22 KEYTOOL=$JAVA_HOME/bin/keytool
26 echo "JAVA_HOME is not set."
27 echo "You may not be able to start the Setup"
28 echo "Set JAVA_HOME to the directory of your local JDK."
30 install -d $pkgdir/home/adempiere/Adempiere/keystore
32 echo "==================================="
33 echo "Starting Setup ..."
34 echo "==================================="
35 # Patch default configuration
36 cat > $srcdir/Adempiere/AdempiereEnv.properties<<EndScript
37 ADEMPIERE_HOME=$pkgdir/home/adempiere/Adempiere
38 ADEMPIERE_KEYSTORE=$pkgdir/home/adempiere/Adempiere/keystore/myKeystore
40 cat $srcdir/SilentSetup.properties >> $srcdir/Adempiere/AdempiereEnv.properties
41 # Trace Level Parameter, e.g. ARGS=ALL
43 CP=lib/CInstall.jar:lib/Adempiere.jar:lib/CCTools.jar:lib/oracle.jar:lib/derby.jar:lib/fyracle.jar:lib/jboss.jar:lib/postgresql.jar:
44 $JAVA -classpath $CP -DADEMPIERE_HOME=$ADEMPIERE_HOME org.compiere.install.SilentSetup $ARGS
45 echo "==================================="
46 echo "Make .sh executable & set Env"
47 echo "==================================="
49 find . -name '*.sh' -exec chmod a+x '{}' \;
52 . RUN_SignDatabaseBuild.sh > /dev/null 2>&1
55 echo "For problems, check log file in base directory"
56 msg "Installation complete"