root/pbibuild/modules/klamav/build.sh

Revision 1007, 1.1 kB (checked in by gonzalo, 12 months ago)

KlamAV added to PBI Builder Server

  • Property svn:executable set to *
Line 
1#!/bin/sh
2# PBI building script
3# This will run after your port build is complete
4# Build your PBI here, and exit 0 on success, or exit 1 on failure.
5##############################################################################
6# Available Variables
7#    PBIDIR = The location of where you can populate your PBI directory
8# MODULEDIR = The location of the module directory for this PBI
9#   PORTVER = Version number of the port we used to build
10##############################################################################
11
12# Save the right version number in the removepbi.sh script
13sed -e "s,CHANGEME,KlamAV${PORTVER},g" ${PBIDIR}/scripts/removepbi.sh > /tmp/removepbi.sh
14mv /tmp/removepbi.sh ${PBIDIR}/scripts/removepbi.sh
15chmod 755 ${PBIDIR}/scripts/removepbi.sh
16
17# Get all the various language files and copy them to the PBI
18LANGFILE="klamav.mo"
19mkdir ${PBIDIR}/locale/
20cd /usr/local/share/locale
21for i in `ls`
22do
23  if [ -e "/usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE}" ]
24  then
25    mkdir ${PBIDIR}/locale/${i}
26    cp /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} ${PBIDIR}/locale/${i}/
27  fi
28done
Note: See TracBrowser for help on using the browser.