diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2012-05-29 17:40:00 -0400 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2012-06-03 15:21:10 -0500 |
commit | ee12168b586b171cde63da47e11dec72d3573958 (patch) | |
tree | 9a5267b07a4d0601077fc543b37ea3394f125f36 /network/policyd2/policyd2.SlackBuild | |
parent | 2aa198578a6d30bfaa71fc6bcd429030b0af763d (diff) |
network/policyd2: Updated for version 2.0.12.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/policyd2/policyd2.SlackBuild')
-rw-r--r-- | network/policyd2/policyd2.SlackBuild | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/network/policyd2/policyd2.SlackBuild b/network/policyd2/policyd2.SlackBuild index 979bd39353dc2..f7658dead5fe1 100644 --- a/network/policyd2/policyd2.SlackBuild +++ b/network/policyd2/policyd2.SlackBuild @@ -3,7 +3,7 @@ # Slackware Package Build Script for policyd2 (a.k.a cluebringer) # Home Page http://www.policyd.org/ -# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA +# Copyright (c) 2008-2012, Nishant Limbachia, Hoffman Estates, IL, USA # <nishant _AT_ mnspace _DOT_ net> # All rights reserved. # @@ -25,12 +25,12 @@ # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -PRGNAM=policyd2 -VERSION=${VERSION:-2.0.11} +PRGNAM="policyd2" +VERSION=${VERSION:-2.0.12} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -SRCNAM=cluebringer +SRCNAM="cluebringer" if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -74,8 +74,14 @@ if ! grep -q ^policyd: /etc/passwd ; then exit 1 fi -### default database is mysql, but postgresql (pgsql) and SQlite (sqlite) are supported as well -### please use exact words, mysql, pgsql or sqlite +### default database is mysql, Following databases are supported by the +### convert-tsql script to prepare a db template. +# mysql55 - For MySQL v5.5 +# mysql4 - For MySQL v4 +# mysql - For MySQL v5 +# pgsql - For PostgreSQL +# sqlite - For SQLite v3 + DATABASE=${DATABASE:-mysql} ### web user and group @@ -89,7 +95,7 @@ GROUP=${GROUP:-policyd} ### define docroot to copy web admin files DOCROOT=${DOCROOT:-/var/www/htdocs} -DOCS="AUTHORS ChangeLog INSTALL TODO LICENSE WISHLIST" +DOCS="AUTHORS ChangeLog INSTALL TODO LICENSE UPGRADING WISHLIST" set -e @@ -109,7 +115,7 @@ find . \ ### patch cbpolicyd and cbpadmin to correct library paths and defaults patch -p0 < $CWD/patches/cbpolicyd.patch -patch -p0 < $CWD/patches/cbpadmin.patch +sed s:@LIBDIRSUFFIX@:$LIBDIRSUFFIX: $CWD/patches/cbpadmin.patch | patch -p0 mkdir -p $PKG/$DOCROOT mkdir -p $PKG/usr/{bin,sbin,lib${LIBDIRSUFFIX}/policyd-2.0,doc/$PRGNAM-$VERSION} @@ -117,6 +123,7 @@ cp -a cbp $PKG/usr/lib${LIBDIRSUFFIX}/policyd-2.0 install -m 0755 -D cbpadmin $PKG/usr/bin/cbpadmin install -m 0755 -D cbpolicyd $PKG/usr/sbin/cbpolicyd install -m 0644 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a database $PKG/usr/doc/$PRGNAM-$VERSION cp -a webui $PKG/$DOCROOT/policyd2-webui ### move config.php to new file |