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

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since f09d1ce was f09d1ce, checked in by Kris Moore <kris@…>, 14 months ago

Move /usr/local/etc/sudoers to desktop-overlay, and don't keep re-extracting it during updates

  • Property mode set to 100644
File size: 1.2 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 lists
34cp desktop-excludes ${LB}/share/pcbsd/conf
35if [ $? -ne 0 ] ; then
36  exit 1
37fi
38cp server-excludes ${LB}/share/pcbsd/conf
39if [ $? -ne 0 ] ; then
40  exit 1
41fi
42
43# Now create overlay.txz file
44tar cvJ --uname "root" --gname "wheel" -f ${LB}/share/pcbsd/distfiles/port-overlay.txz -C ports-overlay .
45if [ $? -ne 0 ] ; then
46  exit 1
47fi
48
49# Now create desktop-overlay.txz file
50tar cvJ --uname "root" --gname "wheel" -f ${LB}/share/pcbsd/distfiles/desktop-overlay.txz -C desktop-overlay .
51if [ $? -ne 0 ] ; then
52  exit 1
53fi
54
55# Now create server-overlay.txz file
56tar cvJ --uname "root" --gname "wheel" -f ${LB}/share/pcbsd/distfiles/server-overlay.txz -C server-overlay .
57if [ $? -ne 0 ] ; then
58  exit 1
59fi
60
61exit 0
Note: See TracBrowser for help on using the repository browser.