From f74656ad5087b9e0351888174fe20c8ca80900b6 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Wed, 15 Aug 2012 10:51:11 -0500
Subject: certmaster:  support python 2.7

---
 abs/core/certmaster/PKGBUILD | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/abs/core/certmaster/PKGBUILD b/abs/core/certmaster/PKGBUILD
index 6672e0c..ccb85fa 100644
--- a/abs/core/certmaster/PKGBUILD
+++ b/abs/core/certmaster/PKGBUILD
@@ -8,7 +8,7 @@ depends=('pyopenssl' 'linhes-scripts>=7-24' )
 makedepends=()
 conflicts=()
 replaces=()
-moddir="pkg/usr/lib/python2.6/site-packages/func/minion/modules/"
+moddir="pkg/usr/lib/python2.7/site-packages/func/minion/modules/"
 backup=('etc/certmaster/certmaster.conf' 'etc/certmaster/minion.conf')
 
 install=certmaster.install
@@ -25,6 +25,7 @@ build() {
 	install -m755 -D logrotate-certmaster.conf $startdir/pkg/etc/logrotate.d/certmaster.conf
 	mkdir -p  $startdir/pkg/var/log/certmaster
         cd $startdir/pkg
+        find ./usr/bin/*  -exec sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' {} \;
         find ./ -name "*.pyc" -print | xargs rm -f
 }
 md5sums=('f5acc9ff1efa34971296e26d794c5b35'
-- 
cgit v0.12

