[PC-BSD Commits] r20959 - in pbi/modules/security/clamtk: . scripts

svn at pcbsd.org svn at pcbsd.org
Mon Jan 14 09:51:23 PST 2013


Author: kenmoore
Date: 2013-01-14 17:51:23 +0000 (Mon, 14 Jan 2013)
New Revision: 20959

Modified:
   pbi/modules/security/clamtk/pbi.conf
   pbi/modules/security/clamtk/scripts/post-install.sh
Log:
Try to fix up the security/clamtk virus database functionality based upon input from Peter2121 on the forums.



Modified: pbi/modules/security/clamtk/pbi.conf
===================================================================
--- pbi/modules/security/clamtk/pbi.conf	2013-01-14 17:26:46 UTC (rev 20958)
+++ pbi/modules/security/clamtk/pbi.conf	2013-01-14 17:51:23 UTC (rev 20959)
@@ -1,26 +1,23 @@
 #!/bin/sh
 # PBI Build Configuration
-# Place over-rides and settings here
-#
-# XDG Desktop Menu Spec:
-# http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html
-##############################################################################
 
-# Program Name
+# -- Program Information --
 PBI_PROGNAME="clamtk"
- 
-# Program Website
 PBI_PROGWEB="http://clamtk.sourceforge.net/"
- 
-# Program Author / Vendor
 PBI_PROGAUTHOR="ports at FreeBSD.org"
- 
-# Default Icon (Relative to %%PBI_APPDIR%% or resources/)
 PBI_PROGICON="clamtk.png"
- 
-# The target port we are building
+
+# -- Port Information --
 PBI_MAKEPORT="security/clamtk"
+PBI_MKPORTBEFORE=""
+PBI_MKPORTAFTER=""
+PBI_MAKEOPTS=""
 
-PBI_BUILDKEY="01"; export PBI_BUILDKEY
- 
-export PBI_PROGNAME PBI_PROGWEB PBI_PROGAUTHOR PBI_PROGICON PBI_MAKEPORT
+# -- Require Root Permissions to Install PBI --
+PBI_REQUIRESROOT="YES"
+# -- Auto-build Configuration Options --
+PBI_BUILDKEY="02"
+PBI_AB_PRIORITY="00"
+PBI_AB_NOTMPFS="NO"
+
+export PBI_PROGNAME PBI_PROGWEB PBI_PROGAUTHOR PBI_PROGICON PBI_MAKEPORT PBI_MKPORTBEFORE PBI_MKPORTAFTER PBI_MAKEOPTS PBI_REQUIRESROOT PBI_BUILDKEY PBI_AB_PRIORITY PBI_NOTMPFS

Modified: pbi/modules/security/clamtk/scripts/post-install.sh
===================================================================
--- pbi/modules/security/clamtk/scripts/post-install.sh	2013-01-14 17:26:46 UTC (rev 20958)
+++ pbi/modules/security/clamtk/scripts/post-install.sh	2013-01-14 17:51:23 UTC (rev 20959)
@@ -1,2 +1,11 @@
 #!/bin/sh
+#fix the perl header
 sed -i.bak "s,/usr/bin/perl,${PBI_PROGDIRPATH}/bin/perl,g" ${PBI_PROGDIRPATH}/bin/clamtk
+
+#Now setup the clamav directories
+mkdir /var/log/clamav
+mkdir /var/db/clamav
+
+chown clamav:clamav /var/log/clamav
+chown clamav:clamav /var/db/clamav
+



More information about the Commits mailing list