source: src-sh/port-files/pkg-install @ 1620346

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

Initial import of PC-BSD /current/ SVN repo

  • Property mode set to 100644
File size: 342 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
16exit 0
Note: See TracBrowser for help on using the repository browser.