2008-12-27 07:43:57 +00:00
|
|
|
# Template file for 'xbps-base-dirs'
|
|
|
|
pkgname=xbps-base-dirs
|
2009-03-12 10:50:46 +00:00
|
|
|
version=0.4
|
2008-12-27 07:43:57 +00:00
|
|
|
build_style=custom-install
|
|
|
|
short_desc="xbps base system directories"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
long_desc="
|
2009-03-12 10:16:08 +00:00
|
|
|
This package installs the base system directories as well
|
|
|
|
as some required files for xbps."
|
2008-12-27 07:43:57 +00:00
|
|
|
|
|
|
|
base_chroot=yes
|
2009-02-15 22:57:15 +00:00
|
|
|
noarch=yes
|
2008-12-27 15:20:54 +00:00
|
|
|
install_priority=100
|
2008-12-27 07:43:57 +00:00
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
2008-12-27 08:21:26 +00:00
|
|
|
for f in bin sbin boot etc home lib dev proc mnt opt sys var \
|
|
|
|
media/cdrom; do
|
2009-03-11 05:31:56 +00:00
|
|
|
mkdir -p $DESTDIR/$f
|
2008-12-27 07:43:57 +00:00
|
|
|
done
|
|
|
|
|
2009-03-11 05:31:56 +00:00
|
|
|
mkdir -p -m 0750 $DESTDIR/root
|
|
|
|
mkdir -p -m 1777 $DESTDIR/tmp $DESTDIR/var/tmp
|
2008-12-27 07:43:57 +00:00
|
|
|
|
2009-03-12 10:50:46 +00:00
|
|
|
for f in local local/bin local/sbin local/include local/lib \
|
|
|
|
bin include lib sbin src; do
|
2009-03-11 05:31:56 +00:00
|
|
|
mkdir -p $DESTDIR/usr/$f
|
2008-12-27 07:43:57 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
for f in locale misc terminfo zoneinfo doc info; do
|
2009-03-11 05:31:56 +00:00
|
|
|
mkdir -p $DESTDIR/usr/share/$f
|
|
|
|
mkdir -p $DESTDIR/usr/local/share/$f
|
2008-12-27 07:43:57 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
for f in 1 2 3 4 5 6 7 8; do
|
2009-03-11 05:31:56 +00:00
|
|
|
mkdir -p $DESTDIR/usr/share/man/man$f
|
|
|
|
mkdir -p $DESTDIR/usr/local/share/man/man$f
|
2008-12-27 07:43:57 +00:00
|
|
|
done
|
|
|
|
|
2009-03-11 05:31:56 +00:00
|
|
|
cd $DESTDIR/usr && ln -s ./share/man man
|
|
|
|
cd $DESTDIR/usr/local && ln -s ./share/man man
|
2008-12-27 07:43:57 +00:00
|
|
|
|
|
|
|
for f in lock log mail run spool opt cache lib; do
|
2009-03-11 05:31:56 +00:00
|
|
|
mkdir -p $DESTDIR/var/$f
|
2008-12-27 07:43:57 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
if [ "$xbps_machine" = "x86_64" ]; then
|
2009-03-11 05:31:56 +00:00
|
|
|
mkdir -p $DESTDIR/usr/lib
|
|
|
|
mkdir -p $DESTDIR/lib
|
|
|
|
cd $DESTDIR && ln -s lib lib64
|
|
|
|
cd $DESTDIR/usr && ln -s lib lib64
|
2008-12-27 07:43:57 +00:00
|
|
|
fi
|
2009-03-12 10:16:08 +00:00
|
|
|
|
2009-03-12 10:50:46 +00:00
|
|
|
for f in $(find $XBPS_TRIGGERSDIR -type f -perm 755); do
|
|
|
|
install -D -m 755 $f $DESTDIR/var/db/xbps/triggers/$(basename $f)
|
2009-03-12 10:16:08 +00:00
|
|
|
done
|
2008-12-27 07:43:57 +00:00
|
|
|
}
|