source: src-sh/port-files/pkg-install @ 84b1299

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 84b1299 was 84b1299, checked in by Kris Moore <kris@…>, 17 months ago

Fix to include the pbiwraper binaries in the resulting pkg

  • Property mode set to 100644
File size: 652 bytes
Line 
1#!/bin/sh
2# Script to install PBI repo on pkg add
3
4PREFIX=${PKG_PREFIX-/usr/local}
5
6if [ "$2" != "POST-INSTALL" ] ; then
7   exit 0
8fi
9
10# If this is a new install, add the PC-BSD master repo
11ls /var/db/pbi/keys/* 2>/dev/null >/dev/null
12if [ $? -ne 0 ] ; then
13        ${PREFIX}/sbin/pbi_addrepo ${PREFIX}/share/pbi-manager/pcbsd.rpo
14fi
15
16# Copy over the wrapper files
17if [ `uname -m` = "amd64" ] ; then
18  cp ${PREFIX}/share/pbi-manager/.pbi-wrapper-i386 /usr/pbi/.pbi-wrapper-i386
19  cp ${PREFIX}/share/pbi-manager/.pbi-wrapper-amd64 /usr/pbi/.pbi-wrapper-amd64
20else
21  cp ${PREFIX}/share/pbi-manager/.pbi-wrapper-i386 /usr/pbi/.pbi-wrapper-i386
22fi
23
24exit 0
Note: See TracBrowser for help on using the repository browser.