Skip to content

Commit

Permalink
Added deb package generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Sep 19, 2012
1 parent 39e9b95 commit 15c278e
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,21 @@
<exec command="git archive master --format=tar --prefix=vufind-${version}/ -o ${builddir}/packages/vufind-${version}.tar" />
<exec command="gzip ${builddir}/packages/vufind-${version}.tar" />

<!-- build the DEB package -->
<mkdir dir="${builddir}/export/vufind/usr/local" />
<copy todir="${builddir}/export/vufind/usr/local/vufind2">
<fileset dir="${srcdir}">
<include name="**" />
<exclude name=".git" />
</fileset>
</copy>
<move file="${builddir}/export/vufind/usr/local/vufind2/packages/DEBIAN" todir="${builddir}/export/vufind" includeemptydirs="true"/>
<exec command="chmod 0775 ${builddir}/export/vufind/DEBIAN/postinst" />
<exec command="dpkg-deb -b ${builddir}/export/vufind ${builddir}/packages/vufind_${version}.deb" />

<!-- clean up -->
<delete dir="${builddir}/export" includeemptydirs="true" failonerror="true" />

<!-- report success -->
<echo message="Packages successfully generated in ${builddir}/packages" />
</target>
Expand Down
6 changes: 6 additions & 0 deletions packages/DEBIAN/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
vufind 2.0beta distribution; urgency=low

* VuFind 2.0beta release (see http://vufind.org/wiki/vufind2:changelog for details)

-- maintainer VuFind Project Administration Team <[email protected]> Mo 1 Oct 2012 12:07:33 UTC

1 change: 1 addition & 0 deletions packages/DEBIAN/conffiles
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/usr/local/vufind2/solr/biblio/conf/solrconfig.xml
14 changes: 14 additions & 0 deletions packages/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Package: vufind2
Version: 2.0beta
Section: World Wide Web
Priority: Optional
Architecture: all
Depends: default-jdk, apache2, php5, php5-dev, php-pear, php5-intl, php5-ldap, php5-mysql, php5-xsl, php5-gd, mysql-server
Maintainer: VuFind Project Administration Team <[email protected]>
Homepage: http://vufind.org/
Description: A library resource discovery portal
VuFind is a library resource portal designed and developed for libraries by
libraries. The goal of VuFind is to enable your users to search and browse
through all of your library's resources by replacing the traditional OPAC.
You can find more information at http://vufind.org.

8 changes: 8 additions & 0 deletions packages/DEBIAN/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This package was debianized by Gerald Steilen <[email protected]>

Mon 5 Jul 2010 08:47:18 UTC

It was downloaded from: http://vufind.org/

Upstream Author(s): VuFind Project Administration Team <[email protected]>

36 changes: 36 additions & 0 deletions packages/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

# Script for installing VuFind 2.x on Ubuntu
# This does not include the OCI8 libraries

# Update the profile file to set required environment variables (unless they are
# already defined there):
grep -q JAVA_HOME= /etc/profile
if [ $? -ne 0 ]; then
sudo sh -c 'echo export JAVA_HOME=\"/usr/lib/jvm/default-java\" >> /etc/profile'
fi
grep -q VUFIND_HOME= /etc/profile
if [ $? -ne 0 ]; then
sudo sh -c 'echo export VUFIND_HOME=\"/usr/local/vufind2\" >> /etc/profile'
fi
grep -q VUFIND_LOCAL_DIR= /etc/profile
if [ $? -ne 0 ]; then
sudo sh -c 'echo export VUFIND_LOCAL_DIR=\"$VUFIND_HOME/local\" >> /etc/profile'
fi
source /etc/profile

# Turn on mod_rewrite in Apache.
sudo a2enmod rewrite

# Set permissions so Apache can write to certain directories.
sudo chown -R www-data:www-data $VUFIND_LOCAL_DIR/cache
sudo chown -R www-data:www-data $VUFIND_LOCAL_DIR/config

# set up Apache for VuFind and reload configuration
sudo ln -s $VUFIND_LOCAL_DIR/httpd-vufind.conf /etc/apache2/conf.d/vufind
sudo /etc/init.d/apache2 force-reload

# Finalize the installation
cd $VUFIND_HOME
sudo php install.php --use-defaults

0 comments on commit 15c278e

Please sign in to comment.