summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/initscripts/PKGBUILD36
-rw-r--r--libre/initscripts/initscripts.install7
-rw-r--r--libre/initscripts/parabola-branding.patch39
-rw-r--r--libre/initscripts/wireless.conf.d12
4 files changed, 94 insertions, 0 deletions
diff --git a/libre/initscripts/PKGBUILD b/libre/initscripts/PKGBUILD
new file mode 100644
index 000000000..565d22f5d
--- /dev/null
+++ b/libre/initscripts/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 100111 2010-11-20 11:25:37Z pierre $
+# Maintainer: Thomas Bächler <thomas@archlinux.org>
+# Maintainer: Aaron Griffin <aaron@archlinux.org>
+# Maintainer (Parabola): fauno <fauno@kiwwwi.com.ar>
+
+pkgname=initscripts
+pkgver=2010.07
+pkgrel=3
+pkgdesc="System initialization/bootup scripts (Parabola branding)"
+arch=('i686' 'x86_64')
+url="http://parabolagnulinux.org"
+license=('GPL')
+groups=('base')
+backup=(etc/inittab etc/rc.conf etc/rc.local etc/rc.local.shutdown etc/conf.d/wireless)
+depends=('bash' 'awk' 'grep' 'coreutils' 'sed' 'udev'
+ 'net-tools' 'ncurses' 'kbd' 'findutils' 'sysvinit')
+optdepends=('bridge-utils: Network bridging support'
+ 'dhcpcd: DHCP network configuration'
+ 'wireless_tools: Wireless networking')
+install=initscripts.install
+source=("ftp://ftp.archlinux.org/other/initscripts/${pkgname}-${pkgver}-1.tar.xz"
+ 'wireless.conf.d'
+ 'parabola-branding.patch')
+md5sums=('0cea15a64d999d0e1aa0c4bb4dbd1af8'
+ '027576534885b8d5dded9be546057b12'
+ 'b883c986aa8bdb8ca7b16a05e115db1d')
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}-1
+
+ msg2 "Rebranding for Parabola"
+ patch -Np1 -i ${srcdir}/parabola-branding.patch
+
+ DESTDIR=${pkgdir} ./install.sh
+ install -D -m644 ${srcdir}/wireless.conf.d ${pkgdir}/etc/conf.d/wireless
+}
diff --git a/libre/initscripts/initscripts.install b/libre/initscripts/initscripts.install
new file mode 100644
index 000000000..360101c10
--- /dev/null
+++ b/libre/initscripts/initscripts.install
@@ -0,0 +1,7 @@
+post_upgrade() {
+ if [ "$(vercmp $2 2009.07)" -lt 0 ]; then
+ echo "==> Adjusting /etc/inittab for transition to /dev/tty standard."
+ echo "==> Original file saved as /etc/inittab.pacsave"
+ sed -i'.pacsave' 's#vc/\([0-9]\)#tty\1#' /etc/inittab
+ fi
+}
diff --git a/libre/initscripts/parabola-branding.patch b/libre/initscripts/parabola-branding.patch
new file mode 100644
index 000000000..028e687ab
--- /dev/null
+++ b/libre/initscripts/parabola-branding.patch
@@ -0,0 +1,39 @@
+diff -auN initscripts-2010.07-1/functions initscripts-2010.07-1-parabola//functions
+--- initscripts-2010.07-1/functions 2010-07-05 20:41:12.000000000 -0300
++++ initscripts-2010.07-1-parabola//functions 2011-02-21 13:10:40.097545657 -0300
+@@ -54,7 +54,7 @@
+ # colors:
+ if [ "$USECOLOR" = "YES" -o "$USECOLOR" = "yes" ]; then
+ C_MAIN="\033[1;37;40m" # main text
+- C_OTHER="\033[1;34;40m" # prefix & brackets
++ C_OTHER="\033[1;35;40m" # prefix & brackets
+ C_SEPARATOR="\033[1;30;40m" # separator
+
+ C_BUSY="\033[0;36;40m" # busy
+diff -auN initscripts-2010.07-1/rc.conf initscripts-2010.07-1-parabola//rc.conf
+--- initscripts-2010.07-1/rc.conf 2010-07-05 20:41:12.000000000 -0300
++++ initscripts-2010.07-1-parabola//rc.conf 2011-02-21 13:11:43.844641708 -0300
+@@ -1,5 +1,5 @@
+ #
+-# /etc/rc.conf - Main Configuration for Arch Linux
++# /etc/rc.conf - Main Configuration for Parabola GNU/Linux-Libre
+ #
+
+ # -----------------------------------------------------------------------
+diff -auN initscripts-2010.07-1/rc.sysinit initscripts-2010.07-1-parabola//rc.sysinit
+--- initscripts-2010.07-1/rc.sysinit 2010-07-05 20:41:12.000000000 -0300
++++ initscripts-2010.07-1-parabola//rc.sysinit 2011-02-21 13:11:43.847975064 -0300
+@@ -7,8 +7,11 @@
+ . /etc/rc.d/functions
+
+ echo " "
+-printhl "Arch Linux\n"
+-printhl "${C_H2}http://www.archlinux.org"
++printhl "Parabola GNU/Linux-Libre"
++printhl "${C_H2}http://parabolagnulinux.org"
++printhl "Copyright 2009-2011 The Parabola Project"
++printsep
++printhl "You're booting into a libre version of Arch Linux\n"
+ printhl "Copyright 2002-2007 Judd Vinet"
+ printhl "Copyright 2007-2010 Aaron Griffin"
+ printhl "Distributed under the GNU General Public License (GPL)"
diff --git a/libre/initscripts/wireless.conf.d b/libre/initscripts/wireless.conf.d
new file mode 100644
index 000000000..47540ef40
--- /dev/null
+++ b/libre/initscripts/wireless.conf.d
@@ -0,0 +1,12 @@
+#
+# Settings for wireless cards
+#
+# For each wireless interface declared in INTERFACES (in rc.conf), declare
+# a wlan_${IF} variable that contains the arguments to be passed to
+# iwconfig(8). Then list the original interface name in the
+# WLAN_INTERFACES array.
+#
+
+#wlan_eth0="eth0 mode managed essid default"
+#WLAN_INTERFACES=(eth0)
+