From 507f4f14f8e620736b85904a0b98cbf4c355419e Mon Sep 17 00:00:00 2001 From: Jim Rees Date: Fri, 21 Apr 2006 15:58:38 +0000 Subject: [PATCH] openbsd-packaging-20060421 Use tar and shell scripts instead of pkg_ for packaging. The new package system apparently depends on ports and can't be used standalone. --- src/afsd/afs.rc.obsd | 2 +- src/packaging/OpenBSD/buildpkg.sh | 6 +++++- src/packaging/OpenBSD/postinstall | 8 ++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/afsd/afs.rc.obsd b/src/afsd/afs.rc.obsd index 9f844dde1..dad346306 100644 --- a/src/afsd/afs.rc.obsd +++ b/src/afsd/afs.rc.obsd @@ -5,5 +5,5 @@ rm -f /usr/vice/etc/openbsd_afs /sbin/modload -o /usr/vice/etc/openbsd_afs /usr/vice/etc/libafs.o -/usr/vice/etc/afsd -nosettime +/usr/vice/etc/afsd -afsdb -stat 600 /usr/vice/bin/fs setcrypt on diff --git a/src/packaging/OpenBSD/buildpkg.sh b/src/packaging/OpenBSD/buildpkg.sh index 66bfbe82e..8d76faac4 100644 --- a/src/packaging/OpenBSD/buildpkg.sh +++ b/src/packaging/OpenBSD/buildpkg.sh @@ -1,5 +1,7 @@ # $Id$ +# This doesn't actually build a package any more + SRC=../../../../.. umask 022 @@ -30,4 +32,6 @@ ln -s $SRC/afsd/afs.rc.obsd usr/vice/etc/rc.securelevel.afs echo '/afs:/usr/vice/cache:96000' >usr/vice/etc/cacheinfo -pkg_create -v -h -f packinglist -c -OpenAFS -d desc -p / -s $PWD openafs-client +tar chfvz openafs-client.tgz usr/vice + +#pkg_create -v -h -f packinglist -c -OpenAFS -d desc -p / -s $PWD openafs-client diff --git a/src/packaging/OpenBSD/postinstall b/src/packaging/OpenBSD/postinstall index bbaf929a9..c958909ef 100644 --- a/src/packaging/OpenBSD/postinstall +++ b/src/packaging/OpenBSD/postinstall @@ -1,10 +1,18 @@ # $Id$ +if [ `id -u` != "0" ]; then + echo "Must be root; current id="`id -u` + exit 1 +fi + umask 022 if [ ! -d /afs ]; then mkdir /afs fi +chown root.bin /usr/vice /usr/vice/cache +chown -R root.bin /usr/vice/bin /usr/vice/etc + strip -x /usr/vice/bin/* echo "Fetching CellServDB..." -- 2.39.5