Minor buildscript changes

This commit is contained in:
Mike Staszel 2010-07-30 01:41:52 -05:00
parent 1086da6a96
commit 342b0e887b
3 changed files with 12 additions and 8 deletions

View file

@ -2,7 +2,7 @@
pkgname=filesystem pkgname=filesystem
pkgver=2010.07 pkgver=2010.07
pkgrel=1 pkgrel=2
pkgdesc="Base filesystem" pkgdesc="Base filesystem"
arch=('arm') arch=('arm')
license=('GPL') license=('GPL')
@ -42,6 +42,8 @@ build()
mkdir -p bin boot dev etc home lib mnt proc root sbin tmp usr var opt srv sys mkdir -p bin boot dev etc home lib mnt proc root sbin tmp usr var opt srv sys
chmod 555 proc chmod 555 proc
mkdir -p usr/{bin,include,lib,sbin,share/misc,src} mkdir -p usr/{bin,include,lib,sbin,share/misc,src}
mkdir -p media
touch media/.empty
mkdir -p usr/share/man/man{1,2,3,4,5,6,7,8} mkdir -p usr/share/man/man{1,2,3,4,5,6,7,8}
ln -s man3 $pkgdir/usr/share/man/man3x ln -s man3 $pkgdir/usr/share/man/man3x

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# #
# Plugbox Linux Distribution Image Builder # Plugbox Linux Distribution Image Builder
# Version 0.4.1 # Version 0.4.2
# #
# Licensed under the GPLv2. # Licensed under the GPLv2.
# #
@ -15,10 +15,12 @@
# NOTE: This script is interactive. # NOTE: This script is interactive.
# Agree to installing packages and answer "y" to cleaning the Pacman database. # Agree to installing packages and answer "y" to cleaning the Pacman database.
# #
# NOTE: Make sure the package "mtd-utils" is installed for making UBI images.
#
# ==== Variables to set ==== # ==== Variables to set ====
PLUGSCRIPTDIR=/media/Plugbox/builder/plugapps/scripts/plugscripts PLUGSCRIPTDIR=/media/Plugbox/builder/plugapps/scripts/plugscripts
INSTALLEDPKGS="base kernel26-withlinux file openssh openssl heimdal" INSTALLEDPKGS="base kernel26-withlinux file openssh openssl heimdal bash tzdata"
RELEASEVER=1.1 RELEASEVER=1.1-rc2
MAKETARGZ=1 MAKETARGZ=1
MAKEUBIIMG=1 MAKEUBIIMG=1
# ==== The Process ==== # ==== The Process ====
@ -41,7 +43,7 @@ echo "de_DE@euro ISO-8859-15" >> $1/etc/locale.gen
chroot $1/ /usr/sbin/locale-gen chroot $1/ /usr/sbin/locale-gen
chroot $1/ /usr/bin/pacman -Scc --noconfirm chroot $1/ /usr/bin/pacman -Scc --noconfirm
echo $RELEASEVER > $1/etc/plugbox-version echo $RELEASEVER > $1/etc/plugbox-version
cp $PLUGSCRIPTDIR $1/usr/share/plugapps/ cp -R $PLUGSCRIPTDIR $1/usr/share/plugapps/
# Here is the rootfs.tar.gz part if you set MAKETARGZ to 1 # Here is the rootfs.tar.gz part if you set MAKETARGZ to 1
if [ $MAKETARGZ = 1 ]; then if [ $MAKETARGZ = 1 ]; then

View file

@ -15,13 +15,13 @@
# ==== SETTINGS ==== # ==== SETTINGS ====
# Set me to the root of your ABS repository, by default /var/abs # Set me to the root of your ABS repository, by default /var/abs
ABSDIR=/media/usb/builder/abs ABSDIR=/media/Plugbox/builder/abs
# Set me to your PlugApps Github clone # Set me to your PlugApps Github clone
GITDIR=/media/usb/builder/plugapps GITDIR=/media/Plugbox/builder/plugapps
# Set me to the directory you want to work in # Set me to the directory you want to work in
WORKDIR=/media/usb/builder/tmper WORKDIR=/media/Plugbox/builder/tmper
# Set me to the makepkg command - The default below should work fine # Set me to the makepkg command - The default below should work fine
MAKEPKGCMD="makepkg --ignorearch --asroot --clean --syncdeps --noconfirm --rmdeps" MAKEPKGCMD="makepkg --ignorearch --asroot --clean --syncdeps --noconfirm --rmdeps"