1 # Template file for 'xbps-base-files'
2 pkgname=xbps-base-files
4 build_style=custom-install
5 short_desc="xbps base system files"
6 maintainer="Juan RP <xtraeme@gmail.com>"
8 This package installs the base system files and directories that
9 aren't installed by any other package and are required on any
15 conf_files="/etc/profile /etc/hosts /etc/host.conf /etc/securetty
16 /etc/skel/.bash_profile /etc/skel/.bash_logout /etc/skel/.bashrc
22 # Install FHS system directories.
24 for d in bin sbin boot etc home lib dev proc mnt opt sys var \
26 install -d ${DESTDIR}/${d}
29 install -d -m750 ${DESTDIR}/root
30 for d in tmp var/tmp var/lock var/spool/mail; do
31 install -d -m1777 ${DESTDIR}/${d}
34 for d in local local/bin local/sbin local/include local/lib \
35 bin include lib sbin src; do
36 install -d ${DESTDIR}/usr/${d}
39 for d in locale misc terminfo zoneinfo doc info; do
40 install -d ${DESTDIR}/usr/share/${d}
41 install -d ${DESTDIR}/usr/local/share/${d}
44 for f in 1 2 3 4 5 6 7 8; do
45 install -d ${DESTDIR}/usr/share/man/man${d}
46 install -d ${DESTDIR}/usr/local/share/man/man${d}
49 cd ${DESTDIR}/usr && ln -s ./share/man man
50 cd ${DESTDIR}/usr/local && ln -s ./share/man man
52 for d in log run opt cache lib; do
53 install -d ${DESTDIR}/var/${d}
56 if [ "$xbps_machine" = "x86_64" ]; then
57 cd ${DESTDIR} && ln -s lib lib64
58 cd ${DESTDIR}/usr && ln -s lib lib64
62 # Install trigger files.
64 install -d ${DESTDIR}/var/db/xbps/triggers
65 install -m750 ${XBPS_TRIGGERSDIR}/* ${DESTDIR}/var/db/xbps/triggers
68 # Install misc config files.
70 for f in bash_logout bash_profile bashrc; do
71 install -D -m644 ${FILESDIR}/dot_${f} ${DESTDIR}/etc/skel/.${f}
74 install -m644 ${FILESDIR}/profile ${DESTDIR}/etc
75 install -m600 ${FILESDIR}/securetty ${DESTDIR}/etc
76 install -m644 ${FILESDIR}/hosts ${DESTDIR}/etc
77 install -m644 ${FILESDIR}/host.conf ${DESTDIR}/etc
78 install -m644 ${FILESDIR}/issue ${DESTDIR}/etc
80 install -d ${DESTDIR}/etc/profile.d
81 install -m644 ${FILESDIR}/*.sh ${DESTDIR}/etc/profile.d
82 install -m644 ${FILESDIR}/DIR_COLORS* ${DESTDIR}/etc
84 install -d ${DESTDIR}/etc/modprobe.d
85 install -m644 ${FILESDIR}/usb-load-ehci-first \
86 ${DESTDIR}/etc/modprobe.d/usb-load-ehci-first.conf
87 install -m644 ${FILESDIR}/blacklist.conf ${DESTDIR}/etc/modprobe.d