tools-uclibc/desktop: add build scripts for amd64-uclibc-hardened desktop
This commit is contained in:
parent
53bbdcad6a
commit
c18c6d6062
16 changed files with 7315 additions and 0 deletions
62
tools-uclibc/desktop/build.sh
Executable file
62
tools-uclibc/desktop/build.sh
Executable file
|
@ -0,0 +1,62 @@
|
|||
|
||||
mkdir desktop-amd64-uclibc-hardened
|
||||
tar -x -C desktop-amd64-uclibc-hardened -f /var/tmp/catalyst/builds/hardened/amd64/stage3-amd64-uclibc-hardened.tar.bz2
|
||||
|
||||
mkdir desktop-amd64-uclibc-hardened/usr/portage/
|
||||
mount --bind /usr/portage/ desktop-amd64-uclibc-hardened/usr/portage/
|
||||
mount --bind /proc/ desktop-amd64-uclibc-hardened/proc/
|
||||
mount --bind /dev/ desktop-amd64-uclibc-hardened/dev/
|
||||
mount --bind /dev/pts desktop-amd64-uclibc-hardened/dev/pts/
|
||||
mount --bind /sys/ desktop-amd64-uclibc-hardened/sys/
|
||||
|
||||
layman -S
|
||||
mkdir desktop-amd64-uclibc-hardened/var/lib/layman
|
||||
cp -a /var/lib/layman/hardened-development/ desktop-amd64-uclibc-hardened/var/lib/layman
|
||||
|
||||
cp -f fstab desktop-amd64-uclibc-hardened/etc/fstab
|
||||
rm -f desktop-amd64-uclibc-hardened/etc/portage/make.conf.catalyst
|
||||
cp -f portage/make.conf.1 desktop-amd64-uclibc-hardened/etc/portage/make.conf
|
||||
|
||||
for d in env package.accept_keywords package.mask package.use; do
|
||||
[[ "$(ls portage/${d})" != "" ]] && cp -f portage/${d}/* desktop-amd64-uclibc-hardened/etc/portage/${d}/
|
||||
done
|
||||
cp portage/package.env desktop-amd64-uclibc-hardened/etc/portage/
|
||||
|
||||
cp -f toolchain.sh desktop-amd64-uclibc-hardened/tmp/
|
||||
chroot desktop-amd64-uclibc-hardened/ /tmp/toolchain.sh
|
||||
rm -f desktop-amd64-uclibc-hardened/tmp/toolchain.sh
|
||||
|
||||
|
||||
cp -f portage/make.conf.2 desktop-amd64-uclibc-hardened/etc/portage/make.conf
|
||||
cp -f world desktop-amd64-uclibc-hardened/var/lib/portage/world
|
||||
cp -f rebuild.sh desktop-amd64-uclibc-hardened/tmp/
|
||||
chroot desktop-amd64-uclibc-hardened/ /tmp/rebuild.sh
|
||||
rm -f desktop-amd64-uclibc-hardened/tmp/rebuild.sh
|
||||
|
||||
|
||||
cp -f portage/make.conf.3 desktop-amd64-uclibc-hardened/etc/portage/make.conf
|
||||
cp -f update.sh desktop-amd64-uclibc-hardened/tmp/
|
||||
chroot desktop-amd64-uclibc-hardened/ /tmp/update.sh
|
||||
rm -f desktop-amd64-uclibc-hardened/tmp/update.sh
|
||||
|
||||
|
||||
genkernel \
|
||||
--kernel-config=config \
|
||||
--makeopts=-j9 \
|
||||
--symlink \
|
||||
--no-mountboot \
|
||||
--kerneldir=/usr/src/linux-lilblue \
|
||||
--bootdir=/root/lilblue/desktop-amd64-uclibc-hardened/boot/ \
|
||||
--module-prefix=/root/lilblue/desktop-amd64-uclibc-hardened/ \
|
||||
--modprobedir=/root/lilblue/desktop-amd64-uclibc-hardened/etc/modprobe.d \
|
||||
all
|
||||
|
||||
umount desktop-amd64-uclibc-hardened/sys/
|
||||
umount desktop-amd64-uclibc-hardened/dev/pts/
|
||||
umount desktop-amd64-uclibc-hardened/dev/
|
||||
umount desktop-amd64-uclibc-hardened/proc/
|
||||
umount desktop-amd64-uclibc-hardened/usr/portage/
|
||||
|
||||
sed -i '/^SYNC/d' desktop-amd64-uclibc-hardened/etc/portage/make.conf
|
||||
sed -i '/^GENTOO_MIRRORS/d' desktop-amd64-uclibc-hardened/etc/portage/make.conf
|
||||
sed -i 's/^MAKEOPTS/#MAKEOPTS/' desktop-amd64-uclibc-hardened/etc/portage/make.conf
|
7062
tools-uclibc/desktop/config
Normal file
7062
tools-uclibc/desktop/config
Normal file
File diff suppressed because it is too large
Load diff
3
tools-uclibc/desktop/fstab
Normal file
3
tools-uclibc/desktop/fstab
Normal file
|
@ -0,0 +1,3 @@
|
|||
/dev/sda1 /boot ext2 noauto,noatime 1 2
|
||||
/dev/sda3 / ext4 noatime 0 1
|
||||
/dev/sda2 none swap sw 0 0
|
1
tools-uclibc/desktop/portage/env/fontforge.conf
vendored
Normal file
1
tools-uclibc/desktop/portage/env/fontforge.conf
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
LDFLAGS="-lintl"
|
1
tools-uclibc/desktop/portage/env/libquicktime.conf
vendored
Normal file
1
tools-uclibc/desktop/portage/env/libquicktime.conf
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
LDFLAGS="-lintl"
|
13
tools-uclibc/desktop/portage/make.conf.1
Normal file
13
tools-uclibc/desktop/portage/make.conf.1
Normal file
|
@ -0,0 +1,13 @@
|
|||
CFLAGS="-O2 -pipe"
|
||||
CXXFLAGS="${CFLAGS}"
|
||||
CHOST="x86_64-gentoo-linux-uclibc"
|
||||
MAKEOPTS="-j9"
|
||||
|
||||
USE_BASE="bindist mmx mmxext smp sse sse2 ssse3 static-libs -savedconfig"
|
||||
USE_GCC="gcj graphite objc objc++ objc-gc gtk X"
|
||||
USE="${USE_BASE} ${USE_GCC}"
|
||||
|
||||
PORTDIR_OVERLAY="/var/lib/layman/hardened-development"
|
||||
|
||||
SYNC="rsync://192.168.3.1/portage"
|
||||
GENTOO_MIRRORS="ftp://192.168.3.1/pub/gentoo"
|
43
tools-uclibc/desktop/portage/make.conf.2
Normal file
43
tools-uclibc/desktop/portage/make.conf.2
Normal file
|
@ -0,0 +1,43 @@
|
|||
CFLAGS="-O2 -pipe"
|
||||
CXXFLAGS="${CFLAGS}"
|
||||
CHOST="x86_64-gentoo-linux-uclibc"
|
||||
MAKEOPTS="-j9"
|
||||
|
||||
USE_BASE="bindist mmx mmxext smp sse sse2 ssse3 static-libs -savedconfig"
|
||||
USE_GCC="gcj graphite objc objc++ objc-gc gtk X"
|
||||
USE_ENC="gmp gnutls pkcs11 X509"
|
||||
USE_ACL="acl caps"
|
||||
USE_DBS="berkdb gdbm sqlite"
|
||||
USE_CMP="bzip2 lzma lzo"
|
||||
USE_LANG="guile networking perl python ruby tcl tk threads"
|
||||
USE_UDEV="gudev hwdb keymap kmod"
|
||||
USE_VCS="git"
|
||||
USE_CHAR="fontforge icu idn"
|
||||
|
||||
USE_SERVERS="avahi cups dbus sasl mbox zeroconf"
|
||||
USE_PAX="xtpax -ptpax"
|
||||
|
||||
USE_AUDIO="openal"
|
||||
USE_IMG="aalib apng exif gif jpeg jpeg2k lcms mng png svg tiff xmp"
|
||||
USE_GRAPH="opengl xcb"
|
||||
USE_DISPLAY="cairo xinerama xscreensaver"
|
||||
USE_MULTI="3dnow 3dnowext a52 aac alsa amr ass avx cdio dirac dga dts dv dvb dvd encode ffmpeg flac g3dvl gsm jack jpeg2k lame libass libv4l mad mmxext mod modplug mp3 mpeg musepack ogg oss pulseaudio quicktime rtmp schroedinger sdl sdlgfx speex taglib theora vcd vorbis vpx xv xvid xvmc v4l vaapi"
|
||||
USE_MPLAYER="bidi bl bluray bs2b cddb cdparanoia cpudetection fbcon ftp ggi joystick ladspa libcaca libmpeg2 libnotify md5sum musicbrainz nas nut pnm portaudio postproc pvr quvi radio samba tga xanim zoran"
|
||||
|
||||
USE_XFCE4="session thunar"
|
||||
USE_BROWSE="curl webkit -libproxy"
|
||||
USE_WORD="latex math openxml pdf spell thesaurus wmf wordperfect"
|
||||
USE_GAMES="artworkextra"
|
||||
|
||||
USE_MISC="bash-completion extras lpsol natspec unlock-notify utils uuid vim-syntax watchdog"
|
||||
|
||||
USE="${USE_BASE} ${USE_GCC} ${USE_ENC} ${USE_ACL} ${USE_DBS} ${USE_CMP} ${USE_LANG} ${USE_UDEV} ${USE_VCS} ${USE_CHAR} ${USE_SERVERS} ${USE_PAX} ${USE_AUDIO} ${USE_IMG} ${USE_GRAPH} ${USE_DISPLAY} ${USE_MULTI} ${USE_MPLAYER} ${USE_BROWSE} ${USE_WORD} ${USE_GAMES} ${USE_XFCE4} ${USE_MISC}"
|
||||
|
||||
XFCE_PLUGINS="trash menu logout"
|
||||
VIDEO_CARDS="fbdev nouveau radeon"
|
||||
LINGUAS="en"
|
||||
|
||||
PORTDIR_OVERLAY="/var/lib/layman/hardened-development"
|
||||
|
||||
SYNC="rsync://192.168.3.1/portage"
|
||||
GENTOO_MIRRORS="ftp://192.168.3.1/pub/gentoo"
|
43
tools-uclibc/desktop/portage/make.conf.3
Normal file
43
tools-uclibc/desktop/portage/make.conf.3
Normal file
|
@ -0,0 +1,43 @@
|
|||
CFLAGS="-O2 -pipe"
|
||||
CXXFLAGS="${CFLAGS}"
|
||||
CHOST="x86_64-gentoo-linux-uclibc"
|
||||
MAKEOPTS="-j9"
|
||||
|
||||
USE_BASE="bindist mmx mmxext smp sse sse2 ssse3 static-libs -savedconfig"
|
||||
USE_GCC="gcj graphite objc objc++ objc-gc gtk X"
|
||||
USE_ENC="gmp gnutls pkcs11 X509"
|
||||
USE_ACL="acl caps"
|
||||
USE_DBS="berkdb gdbm sqlite"
|
||||
USE_CMP="bzip2 lzma lzo"
|
||||
USE_LANG="guile networking perl python ruby tcl tk threads"
|
||||
USE_UDEV="gudev hwdb keymap kmod"
|
||||
USE_VCS="git"
|
||||
USE_CHAR="fontforge icu idn"
|
||||
|
||||
USE_SERVERS="avahi cups dbus sasl mbox zeroconf"
|
||||
USE_PAX="xtpax -ptpax"
|
||||
|
||||
USE_AUDIO="openal"
|
||||
USE_IMG="aalib apng exif gif jpeg jpeg2k lcms mng png svg tiff xmp"
|
||||
USE_GRAPH="directfb opengl xcb"
|
||||
USE_DISPLAY="cairo xinerama xscreensaver"
|
||||
USE_MULTI="3dnow 3dnowext a52 aac alsa amr ass avx cdio dirac dga dts dv dvb dvd encode ffmpeg flac g3dvl gsm jack jpeg2k lame libass libv4l mad mmxext mod modplug mp3 mpeg musepack ogg oss pulseaudio quicktime rtmp schroedinger sdl sdlgfx speex taglib theora vcd vorbis vpx xv xvid xvmc v4l vaapi"
|
||||
USE_MPLAYER="bidi bl bluray bs2b cddb cdparanoia cpudetection fbcon ftp ggi joystick ladspa libcaca libmpeg2 libnotify md5sum musicbrainz nas nut pnm portaudio postproc pvr quvi radio samba tga xanim zoran"
|
||||
|
||||
USE_XFCE4="session thunar"
|
||||
USE_BROWSE="curl webkit -libproxy"
|
||||
USE_WORD="latex math openxml pdf spell thesaurus wmf wordperfect"
|
||||
USE_GAMES="artworkextra"
|
||||
|
||||
USE_MISC="bash-completion extras lpsol natspec unlock-notify utils uuid vim-syntax watchdog"
|
||||
|
||||
USE="${USE_BASE} ${USE_GCC} ${USE_ENC} ${USE_ACL} ${USE_DBS} ${USE_CMP} ${USE_LANG} ${USE_UDEV} ${USE_VCS} ${USE_CHAR} ${USE_SERVERS} ${USE_PAX} ${USE_AUDIO} ${USE_IMG} ${USE_GRAPH} ${USE_DISPLAY} ${USE_MULTI} ${USE_MPLAYER} ${USE_BROWSE} ${USE_WORD} ${USE_GAMES} ${USE_XFCE4} ${USE_MISC}"
|
||||
|
||||
XFCE_PLUGINS="trash menu logout"
|
||||
VIDEO_CARDS="fbdev nouveau radeon"
|
||||
LINGUAS="en"
|
||||
|
||||
PORTDIR_OVERLAY="/var/lib/layman/hardened-development"
|
||||
|
||||
SYNC="rsync://192.168.3.1/portage"
|
||||
GENTOO_MIRRORS="ftp://192.168.3.1/pub/gentoo"
|
|
@ -0,0 +1,2 @@
|
|||
=dev-libs/boost-1.52.0-r6 ~amd64
|
||||
=dev-util/boost-build-1.52.0-r1 ~amd64
|
4
tools-uclibc/desktop/portage/package.env
Normal file
4
tools-uclibc/desktop/portage/package.env
Normal file
|
@ -0,0 +1,4 @@
|
|||
sys-apps/coreutils coreutils.conf
|
||||
dev-vcs/git git.conf
|
||||
media-gfx/fontforge fontforge.conf
|
||||
media-libs/libquicktime libquicktime.conf
|
1
tools-uclibc/desktop/portage/package.mask/openntpd
Normal file
1
tools-uclibc/desktop/portage/package.mask/openntpd
Normal file
|
@ -0,0 +1 @@
|
|||
=net-misc/openntpd-20080406
|
1
tools-uclibc/desktop/portage/package.mask/sqlite
Normal file
1
tools-uclibc/desktop/portage/package.mask/sqlite
Normal file
|
@ -0,0 +1 @@
|
|||
>dev-db/sqlite-3.7.14.1
|
3
tools-uclibc/desktop/rebuild.sh
Executable file
3
tools-uclibc/desktop/rebuild.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash -l
|
||||
|
||||
emerge --keep-going -evq world
|
5
tools-uclibc/desktop/toolchain.sh
Executable file
5
tools-uclibc/desktop/toolchain.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash -l
|
||||
|
||||
emerge -1q gcc
|
||||
emerge -1q uclibc
|
||||
emerge -1q binutils
|
3
tools-uclibc/desktop/update.sh
Executable file
3
tools-uclibc/desktop/update.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash -l
|
||||
|
||||
emerge -uvNDq world
|
68
tools-uclibc/desktop/world
Normal file
68
tools-uclibc/desktop/world
Normal file
|
@ -0,0 +1,68 @@
|
|||
app-admin/sudo
|
||||
app-admin/syslog-ng
|
||||
app-arch/file-roller
|
||||
app-editors/nano
|
||||
app-editors/vim
|
||||
app-office/abiword
|
||||
app-portage/gentoolkit
|
||||
app-portage/layman
|
||||
app-text/evince
|
||||
app-text/tree
|
||||
dev-lang/python
|
||||
dev-lang/tcl
|
||||
dev-libs/gmp
|
||||
dev-libs/libiconv
|
||||
dev-libs/mpfr
|
||||
dev-util/strace
|
||||
dev-vcs/git
|
||||
gnome-extra/gnome-games
|
||||
gnome-extra/gnome-screensaver
|
||||
gnome-extra/gnome-system-monitor
|
||||
mail-client/claws-mail
|
||||
mail-client/mailx
|
||||
mail-mta/postfix
|
||||
media-gfx/eog
|
||||
media-gfx/gimp
|
||||
media-gfx/gqview
|
||||
media-sound/alsa-utils
|
||||
media-video/totem
|
||||
net-fs/samba
|
||||
net-ftp/lftp
|
||||
net-irc/hexchat
|
||||
net-mail/dovecot
|
||||
net-misc/openntpd
|
||||
net-misc/rdate
|
||||
net-misc/tor
|
||||
net-misc/vinagre
|
||||
sys-apps/dbus
|
||||
sys-apps/gradm
|
||||
sys-apps/less
|
||||
sys-apps/paxctl
|
||||
sys-apps/pciutils
|
||||
sys-boot/lilo
|
||||
sys-devel/autoconf
|
||||
sys-devel/automake
|
||||
sys-devel/gcc
|
||||
sys-kernel/genkernel
|
||||
sys-libs/cracklib
|
||||
sys-libs/db
|
||||
sys-libs/gdbm
|
||||
sys-libs/uclibc
|
||||
sys-process/fcron
|
||||
sys-process/lsof
|
||||
virtual/libiconv
|
||||
virtual/libintl
|
||||
virtual/package-manager
|
||||
www-client/epiphany
|
||||
x11-base/xorg-server
|
||||
x11-drivers/xf86-video-nouveau
|
||||
x11-drivers/xf86-video-vesa
|
||||
x11-misc/slim
|
||||
x11-terms/gnome-terminal
|
||||
x11-terms/xterm
|
||||
xfce-base/xfce4-appfinder
|
||||
xfce-base/xfce4-meta
|
||||
xfce-extra/thunar-archive-plugin
|
||||
xfce-extra/thunar-shares-plugin
|
||||
xfce-extra/xfce4-mixer
|
||||
xfce-extra/xfce4-volumed
|
Loading…
Add table
Reference in a new issue