### this file is sourced not run
PKGARCH=noarch

TARBALL= # none - self-generated
MD5SUM=  # none
SRC_URL= # none
BUNDLE=  # none
SLACKREQ=  # none
SLACKDESC='aaa-skeleton: aaa-skeleton 1.0 (System directories)  
aaa-skeleton:  
aaa-skeleton: This package contains the core system directories and minimal 
aaa-skeleton: number of configuration files that enables chroot to work (when 
aaa-skeleton: coupled with LFS /tools). It is roughly LHS compliant, but not 
aaa-skeleton: really.  
aaa-skeleton: 
aaa-skeleton: 
aaa-skeleton: 
aaa-skeleton: 
aaa-skeleton:
'
SLACKINSTALL='mkdir -p proc sys dev
'

###
pkg_download() {
	: nothing to download
}

###
pkg_prepare() {
	: nothing to prepare
}

### default pkg_package - nothing to do

### build
pkg_build() { 
	# dirs - /dev /proc /sys created in doinst.sh
	rm -rf /bin /etc /lib /lib64 /root /sbin /tmp /usr /var /run 2> /dev/null
	mkdir -p /bin /etc /lib /lib64 /root /sbin /tmp /usr /var/run
	ln -sf tmp /run 
	cd /usr
	mkdir -p bin include lib lib64 local sbin share
	mkdir -p share/man local/bin local/lib local/lib64 local/share 
	ln -sf share/man man
	ln -sf ../lib64/locale /usr/lib/locale # don't duplicate locale data
	
	# bare minimum configs
	echo "127.0.0.1 localhost" > /etc/hosts
	echo 'root:x:0:root' > /etc/group
	echo 'tty:x:3:spot' >> /etc/group
	echo 'root:x:0:0:root:/root:/bin/sh' > /etc/passwd
	echo 'root::11329:0:99999:7:::' > /etc/shadow
	ln -sf /proc/mounts /etc/mtab
	
	pkg_build_slackdesc
}
