123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- set -e
- program=hierarchyfs
- version=dragora
- pkgversion=3.0
- release=11
- pkgcategory=data
- description="
- Skeleton bases of Dragora GNU/Linux-Libre.
- It contains the main hierarchy of directories, symlinks,
- ownerships, and permissions for compose the basic structure
- of the file system.
- "
- homepage=https://www.dragora.org
- license=GPLv3+
- build()
- {
- mkdir -p "$destdir"
- cd "$destdir"
- mkdir -p \
- usr/bin \
- boot \
- dev \
- etc \
- home \
- lost+found \
- media \
- mnt \
- opt \
- proc \
- root \
- run \
- run/lock \
- usr/sbin \
- srv \
- sys \
- tmp \
- usr \
- var \
- dev/pts \
- etc/X11 \
- etc/opt \
- etc/skel \
- etc/xdg \
- media/cdrecorder \
- media/cdrom \
- media/floppy \
- media/zip \
- usr/bin \
- usr/games \
- usr/include \
- usr/libexec \
- usr/local/bin \
- usr/local/etc \
- usr/local/games \
- usr/local/include \
- usr/local/libexec \
- usr/local/sbin \
- usr/local/share/doc \
- usr/local/share/info \
- usr/local/share/man/man1 \
- usr/local/share/man/man2 \
- usr/local/share/man/man3 \
- usr/local/share/man/man4 \
- usr/local/share/man/man5 \
- usr/local/share/man/man6 \
- usr/local/share/man/man7 \
- usr/local/share/man/man8 \
- usr/local/src \
- usr/pkg \
- usr/share/doc \
- usr/share/games \
- usr/share/info \
- usr/share/man/man1 \
- usr/share/man/man2 \
- usr/share/man/man3 \
- usr/share/man/man4 \
- usr/share/man/man5 \
- usr/share/man/man6 \
- usr/share/man/man7 \
- usr/share/man/man8 \
- usr/src \
- var/cache/man \
- var/games \
- var/lib \
- var/local \
- var/log \
- var/mail \
- var/opt \
- var/spool/lpd \
- var/spool/news \
- var/tmp
- # Copy local files
- cp -p "${worktree}/archive/hierarchyfs/README.media" \
- "media/README"
- cp -p "${worktree}/archive/hierarchyfs/README.mnt" \
- "mnt/README"
- chmod 644 "media/README" "mnt/README"
- # Copy files for the already created root account
- cp -p "${worktree}"/archive/etc/skel/.*rc \
- "${worktree}"/archive/etc/skel/.profile \
- "${destdir}/root/"
- touch \
- "media/.graft-config" "mnt/.graft-config" "root/.graft-config"
- mkdir -p "${destdir}/var/lib/qi"
- cp -p "${CWD}/post-install.multidir" "${destdir}/var/lib/qi/${full_pkgname}.sh"
- chmod 644 "${destdir}/var/lib/qi/${full_pkgname}.sh"
- if test -f /tools/etc/stage1_is-multi-directory
- then
- libSuffix="$(cat /tools/etc/stage1_is-multi-directory)"
- fi
- if test -n "$libSuffix"
- then
- echo "libSuffix detected."
- echo "Changing value for post-install '${libSuffix}'"
- sed -i s"/^libSuffix=X/libSuffix=${libSuffix}/" \
- "${destdir}/var/lib/qi/${full_pkgname}.sh"
- fi
- }
|