84222395b8
These new vars are DESTDIR (by default XBPS_DESTDIR/pkgname-version), SRCPKGDESTDIR (XBPS_DESTDIR/sourcepkg-version) and FILESDIR (XBPS_TEMPLATESDIR/pkgname/files). This simplifies packages that used them. --HG-- extra : convert_revision : 287ea7128cb5df19870ca7aff0a3b8f99a11d63a
51 lines
1.2 KiB
Text
51 lines
1.2 KiB
Text
# Template file for 'xbps-base-dirs'
|
|
pkgname=xbps-base-dirs
|
|
version=0.2
|
|
build_style=custom-install
|
|
short_desc="xbps base system directories"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
long_desc="
|
|
This package installs the base system directories."
|
|
|
|
base_chroot=yes
|
|
noarch=yes
|
|
install_priority=100
|
|
|
|
do_install()
|
|
{
|
|
for f in bin sbin boot etc home lib dev proc mnt opt sys var \
|
|
media/cdrom; do
|
|
mkdir -p $DESTDIR/$f
|
|
done
|
|
|
|
mkdir -p -m 0750 $DESTDIR/root
|
|
mkdir -p -m 1777 $DESTDIR/tmp $DESTDIR/var/tmp
|
|
|
|
for f in local bin include lib sbin src; do
|
|
mkdir -p $DESTDIR/usr/$f
|
|
done
|
|
|
|
for f in locale misc terminfo zoneinfo doc info; do
|
|
mkdir -p $DESTDIR/usr/share/$f
|
|
mkdir -p $DESTDIR/usr/local/share/$f
|
|
done
|
|
|
|
for f in 1 2 3 4 5 6 7 8; do
|
|
mkdir -p $DESTDIR/usr/share/man/man$f
|
|
mkdir -p $DESTDIR/usr/local/share/man/man$f
|
|
done
|
|
|
|
cd $DESTDIR/usr && ln -s ./share/man man
|
|
cd $DESTDIR/usr/local && ln -s ./share/man man
|
|
|
|
for f in lock log mail run spool opt cache lib; do
|
|
mkdir -p $DESTDIR/var/$f
|
|
done
|
|
|
|
if [ "$xbps_machine" = "x86_64" ]; then
|
|
mkdir -p $DESTDIR/usr/lib
|
|
mkdir -p $DESTDIR/lib
|
|
cd $DESTDIR && ln -s lib lib64
|
|
cd $DESTDIR/usr && ln -s lib lib64
|
|
fi
|
|
}
|