blob: 78ea35cef379b920c7f21b900f7fef4e08f82ac7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
# Available Variables
# COMPTMPDIR = Set to the tmpdir that contains CFILE
# CFILE = Set to the file provided by this component
# This script installs the freebsd source
rm -rf /usr/ports
mkdir /usr/ports
cd /usr/ports
echo "Extracting ports tree..."
tar xvjf ${COMPTMPDIR}/${CFILE} >/dev/null 2>/dev/null
if [ -d "/usr/jails/portjail/usr" ] ; then
echo "Extracting ports tree into portsjail..."
mkdir -p /usr/jails/portjail/usr/ports
cd /usr/jails/portjail/usr/ports
tar xvjf ${COMPTMPDIR}/${CFILE} >/dev/null 2>/dev/null
fi
|