updates for pi ...

This commit is contained in:
K D Hedger
2020-04-28 14:16:19 +01:00
parent e542b04f25
commit 126a4b8658
4 changed files with 24 additions and 97 deletions

View File

@ -151,24 +151,23 @@ else
case $TYPE in
"ADDUSER")
if [ "$ISSYSTEM" = "Y" ];then
sudo useradd -r -d /dev/null -U -s /bin/false -u "$USEUIDS" -g "$USEUIDS" "$LOGINNAME"||true
useradd -r -d /dev/null -U -s /bin/false -u "$USEUIDS" -g "$USEUIDS" "$LOGINNAME"||true
else
sudo useradd -d "$USERHOME" -m -U -u "$USEUIDS" -G "$XTRAGROUPS" -s "$USERSHELL" "$LOGINNAME"
sudo passwd $LOGINNAME
useradd -d "$USERHOME" -m -U -u "$USEUIDS" -G "$XTRAGROUPS" -s "$USERSHELL" "$LOGINNAME"
passwd $LOGINNAME
fi
;;
"DELUSER")
sudo userdel -f$DELETEFILES "$LOGINNAME"
userdel -f$DELETEFILES "$LOGINNAME"
;;
"ADDGROUP")
getGids
sudo groupadd -g "$USEUIDS" $ISSYSTEM "$LOGINNAME"
groupadd -g "$USEUIDS" $ISSYSTEM "$LOGINNAME"
;;
"DELGROUP")
sudo groupdel "$LOGINNAME"
groupdel "$LOGINNAME"
;;
esac
fi

View File

@ -29,13 +29,12 @@ pushd $COMPILEAT 2>/dev/null||true
#need to have user created before install
${CWD}/preinstall
pushd "${TARNAME}-${VERSION}${MINORREVISION}"
CFLAGS="$LFSFLAGS" CXXFLAGS="$LFSFLAGS" ./configure --prefix=/usr --sysconfdir=/etc --enable-linuxcaps --with-binsubdir=sbin --with-lineeditlibs=readline
sed -e 's/"(\\S+)"/"?([^\\s"]+)"?/' -i scripts/update-leap/update-leap.in
CFLAGS="$LFSFLAGS" CXXFLAGS="$LFSFLAGS" ./configure --prefix=/usr --bindir=/usr/sbin --sysconfdir=/etc --enable-linuxcaps --with-lineeditlibs=readline --docdir=/usr/share/doc/${PKGNAME}-${VERSION}
make $MAKEFLAGS||make|| exit 100
make install DESTDIR=$PKG || exit 100
mkdir -vp $PKG/var/lib/ntp $PKG/etc||true
install -v -o ntp -g ntp -d $PKG/var/lib/ntp
install -v -m755 -d $PKG/usr/share/doc/${PKGNAME}-${VERSION}
cp -v -R html/* $PKG/usr/share/doc/${PKGNAME}-${VERSION}
popd
checketc $PKG

View File

@ -141,7 +141,7 @@ pushd $COMPILEAT 2>/dev/null||true
fi
pushd "${BUILDSCRIPTS}/HelperScripts"
./InstallService-NoDialog "ntpd sshd"
./InstallService-NoDialog "ntpd sshd gpm"
popd
mkdir -vp $PKG/lib/udev/rules.d

View File

@ -176,14 +176,6 @@ Walk the dog
#logout from temporary system:
exit
9.2)
#lfspkg now creates an unprivileged user for certain actions eg extracting tarballs.
#$LFS/LFSPkgBuilds should now have the group set to lfspkguser, and perms set to 775, if you want your normal user to have access just add yourself to the lfspkguser group.
#You will have to re-own/set perms the various folders etc, so:
sudo chown -R $USER:lfspkguser $LFS/LFSPkgBuilds $LFS/LFSSourceArchives/$LFSVERSION $LFS/LFSBuiltPackages/$LFSVERSION
chmod -R 775 $LFS/LFSSourceArchives/$LFSVERSION $LFS/LFSBuiltPackages/$LFSVERSION
10)
#Remove tools folder link from host and if you want to save tools archive for futre use move/copy the ${LFS}/tools-${LFSVERSION}.tar.gz somewhere safe:
sudo rm /tools
@ -191,7 +183,8 @@ sudo rm /tools
sudo rm -rf $LFS/tools
11)
#Re-enter the chroot ( this time and subsequent times don't use the 'system' argument to Chroot ):
#Change back to $LFS/LFSScripts folder and re-enter the chroot ( this time and subsequent times don't use the 'system' argument to Chroot ):
cd $LFS/LFSScripts
sudo ./Chroot
12)
@ -217,97 +210,33 @@ cd /LFSPkgBuildScripts/HelperScripts/
#dialog program not yet installed so use:
./InstallService-NoDialog wpa
#Openssh and the sshd init script is installed by the system-meta package.
#########################
# If you have trouble ssh'ing into the 'real' LFS system you may need to manually set the date if the ntpd server takes too long.
#########################
#Install any extra hardware/firmware packages you need ( you may have to boot into the 'real' system for this ).
#eg usb wireless package:
cd /LFSPkgBuildScripts/hware/RTL88x2BU-Linux-Driver
./RTL88x2BU-Linux-Driver.LFSBuild install
14)
#The following are optional but useful
#Before building the X server now is a good time to quickly boot into your new system and make sure all is OK, you can then reboot back to the host and continue building in the chroot or build in the 'real' system, the choice is yours but this HowTo assumes all building is done in the chroot.
#Build xorg:
#Build xorg ( experimental at the moment ):
cd /LFSPkgBuildScripts/xorg/xorg-meta/
./xorg-meta.LFSBuild install
15)
#Install documentation stuff
#Also installs python via dependency
#Loads of apps need these for building documentation so might as well install now.
cd /LFSPkgBuildScripts/devel/gtk-doc
./gtk-doc.LFSBuild install
cd /LFSPkgBuildScripts/devel/doxygen
./doxygen.LFSBuild install
16)
#Install cups and gtk.
#Gtk2 has a 'soft' dependency on cups so best to buils cups first.
cd /LFSPkgBuildScripts/print/cups
./cups.LFSBuild install
cd /LFSPkgBuildScripts/gtk/gtk
./gtk.LFSBuild install
#xsane frontends and xsane require gimp installed first to build the plugin
cd /LFSPkgBuildScripts/desktop/gimp
./gimp.LFSBuild install
#rest of printing stuff
cd /LFSPkgBuildScripts/print/printing-meta
./printing-meta.LFSBuild install
16.5)
#multi media
cd /LFSPkgBuildScripts/mm/mm-meta
./mm-meta.LFSBuild install
17)
#Development stuff
cd /LFSPkgBuildScripts/devel/development-meta
./development-meta.LFSBuild install
18)
#The big one! build a complete desktop
#this meta packagage includes other meta packages and takes a LOOOooooonnnnggggg time to build!
#this is for an xfce4 desktop.
cd /LFSPkgBuildScripts/desktop/desktop-meta
./desktop-meta.LFSBuild install
#Or for an LFSDesktop
cd /LFSPkgBuildScripts/lfsdesktop/LFSDesktop-meta
./LFSDesktop-meta.LFSBuild install
19)
#Extra odd stuff
#Chromium
cd /LFSPkgBuildScripts/desktop/chromium
./chromium.LFSBuild install
#falkon
cd /LFSPkgBuildScripts/qt/falkon/
./falkon.LFSBuild install
#Cairo-dock-plugins pulls in cairo-dock as a dependency
cd /LFSPkgBuildScripts/desktop/cairo-dock-plugins
./cairo-dock-plugins.LFSBuild install
#Qemu builds both static and dynamically linked versions
cd /LFSPkgBuildScripts/hware/qemu
./qemu.LFSBuild install
#Seamonkey for web dev
cd /LFSPkgBuildScripts/net/seamonkey
./seamonkey.LFSBuild install
#Icedtea-web BROKEN
#cd /LFSPkgBuildScripts/net/icedtea-web
#./icedtea-web.LFSBuild install
#For pulse audio
#cd /LFSPkgBuildScripts/net/icedtea-sound
#./icedtea-sound.LFSBuild install
#Samba
cd /LFSPkgBuildScripts/net/samba
./samba.LFSBuild install
#nfs
cd /LFSPkgBuildScripts/net/nfs-utils
./nfs-utils.LFSBuild install
#Fuse and stuff
cd /LFSPkgBuildScripts/net/sshfs
./sshfs.LFSBuild install