source: src-sh/pc-extractoverlay/install.sh @ c60c604

9.2-releasereleng/10.0releng/10.0.1
Last change on this file since c60c604 was c60c604, checked in by Kris Moore <kris@…>, 7 months ago

Add a new "mkports.sh" helper script, which will convert the git tree into
the pcbsd-utils & pcbsd-utils-qt4 ports.

While here, convert the pcbsd-utils port to use STAGING

  • Property mode set to 100644
File size: 1.3 KB
Line 
1#!/bin/sh
2
3DEFAULT="/usr/local"
4
5if [ -z "$1" ] ; then
6        LB="${DEFAULT}"
7else
8        LB="${1}"
9fi
10
11cp pc-extractoverlay ${LB}/bin/pc-extractoverlay
12if [ $? -ne 0 ] ; then
13  exit 1
14fi
15chmod 755 ${LB}/bin/pc-extractoverlay
16if [ $? -ne 0 ] ; then
17  exit 1
18fi
19
20if [ ! -d "${LB}/share/pcbsd/conf" ] ; then
21  mkdir -p ${LB}/share/pcbsd/conf
22fi
23if [ ! -d "${LB}/share/pcbsd/distfiles" ] ; then
24  mkdir -p ${LB}/share/pcbsd/distfiles
25fi
26
27# Copy port prune list
28cp prune-port-files ${LB}/share/pcbsd/conf
29if [ $? -ne 0 ] ; then
30  exit 1
31fi
32
33# Copy exclude list
34cp port-excludes ${LB}/share/pcbsd/conf
35if [ $? -ne 0 ] ; then
36  exit 1
37fi
38cp desktop-excludes ${LB}/share/pcbsd/conf
39if [ $? -ne 0 ] ; then
40  exit 1
41fi
42cp server-excludes ${LB}/share/pcbsd/conf
43if [ $? -ne 0 ] ; then
44  exit 1
45fi
46
47# Now create overlay.txz file
48tar cvJ --uname "root" --gname "wheel" -f ${LB}/share/pcbsd/distfiles/port-overlay.txz -C ports-overlay .
49if [ $? -ne 0 ] ; then
50  exit 1
51fi
52
53# Now create desktop-overlay.txz file
54tar cvJ --uname "root" --gname "wheel" -f ${LB}/share/pcbsd/distfiles/desktop-overlay.txz -C desktop-overlay .
55if [ $? -ne 0 ] ; then
56  exit 1
57fi
58
59# Now create server-overlay.txz file
60tar cvJ --uname "root" --gname "wheel" -f ${LB}/share/pcbsd/distfiles/server-overlay.txz -C server-overlay .
61if [ $? -ne 0 ] ; then
62  exit 1
63fi
64
65exit 0
Note: See TracBrowser for help on using the repository browser.