summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstanley lieber <stanley.lieber@gmail.com>2012-01-03 20:14:27 -0600
committerstanley lieber <stanley.lieber@gmail.com>2012-01-03 20:14:27 -0600
commit930635e22d722a1ddaab20272cc485e5c47f27d9 (patch)
treebb17f1fc73c1cacf7493756245b81989f8c9f624
parentceec9eee284475019e366e45249928fed5a2ff37 (diff)
pkg(1): put source files in /sys/src/pkg/
-rw-r--r--sys/man/1/pkg7
-rwxr-xr-xsys/src/cmd/pkg/create16
-rwxr-xr-xsys/src/cmd/pkg/remove1
3 files changed, 15 insertions, 9 deletions
diff --git a/sys/man/1/pkg b/sys/man/1/pkg
index 8ffed75f2..0becf667e 100644
--- a/sys/man/1/pkg
+++ b/sys/man/1/pkg
@@ -43,7 +43,12 @@ repository. The source directory should be provided as a full path.
.I Pkg/install
Install the package
.I name
-from the current repository.
+from the current repository, unpacking the executables in
+.B /$cputype/bin/
+or
+.B /rc/bin/
+and the source in
+.B /sys/src/pkg/.
.TP
.I Pkg/list
List packages available from the current repository.
diff --git a/sys/src/cmd/pkg/create b/sys/src/cmd/pkg/create
index b251c1b21..525d3b7fe 100755
--- a/sys/src/cmd/pkg/create
+++ b/sys/src/cmd/pkg/create
@@ -5,14 +5,14 @@ d=$1
echo Creating $i
C=`{pwd}
@{
-rfork en
-mkdir -p /tmp/$i/files/sys/src/cmd/$i
-dircp $d /tmp/$i/files/sys/src/cmd/$i
-cd $d
-mk
-divergefs -p /tmp/$i /
-mk install clean
-unmount /
+ rfork en
+ mkdir -p /tmp/$i/files/sys/src/pkg/$i
+ dircp $d /tmp/$i/files/sys/src/pkg/$i
+ cd $d
+ mk
+ divergefs -p /tmp/$i /
+ mk install clean
+ unmount /
}
cd /tmp/$i/files
rm -r env
diff --git a/sys/src/cmd/pkg/remove b/sys/src/cmd/pkg/remove
index 349d18410..641d041aa 100755
--- a/sys/src/cmd/pkg/remove
+++ b/sys/src/cmd/pkg/remove
@@ -14,5 +14,6 @@ if(test -s /sys/lib/pkg/$1) {
echo M $fs($i) NOT DELETING
}
}
+ rm -rf /sys/src/pkg/$1
rm /sys/lib/pkg/$1
}