1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-30 20:31:22 +00:00
morpheus/pkgbuild

28 lines
514 B
Plaintext
Raw Normal View History

2013-09-06 07:40:52 +00:00
#!/bin/sh
2013-09-05 11:31:58 +00:00
if test -z "$1"; then
echo usage: $0 pkgname 1>&2
exit 1
fi
# Export important variables for the build scripts
top=$(pwd)
root=$top/root
mirror=http://dl.2f30.org/morpheus-pkgs
export top root mirror
# Create directory hierarchy
2013-09-06 08:50:29 +00:00
mkdir -p src
mkdir -p $root/{bin,boot,dev,etc,svc,home,root,var,share,devel,sys,proc}
2013-09-05 12:20:13 +00:00
mkdir -p $root/dev/shm
2013-09-06 08:50:29 +00:00
mkdir -p $root/devel/{include,lib,src}
mkdir -p $root/share/man
2013-09-05 11:31:58 +00:00
pushd $root/
2013-09-06 09:59:40 +00:00
if [ -e sbin ]; then
unlink sbin
fi
2013-09-05 11:31:58 +00:00
ln -s /bin sbin
popd
2013-09-06 08:31:51 +00:00
./build pkgs/"$1"