summaryrefslogtreecommitdiff
path: root/libre/initscripts
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /libre/initscripts
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'libre/initscripts')
-rw-r--r--libre/initscripts/PKGBUILD36
-rw-r--r--libre/initscripts/initscripts.install7
-rw-r--r--libre/initscripts/parabola-branding.patch52
-rw-r--r--libre/initscripts/wireless.conf.d12
4 files changed, 107 insertions, 0 deletions
diff --git a/libre/initscripts/PKGBUILD b/libre/initscripts/PKGBUILD
new file mode 100644
index 000000000..886f106ff
--- /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=2011.02.1
+pkgrel=1
+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}.tar.xz"
+ 'wireless.conf.d'
+ 'parabola-branding.patch')
+md5sums=('22dcf8fc052deef0894d5caa0981419a'
+ '027576534885b8d5dded9be546057b12'
+ '030deb770293ea5a1e632934095af412')
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ 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..a309f9a4c
--- /dev/null
+++ b/libre/initscripts/parabola-branding.patch
@@ -0,0 +1,52 @@
+diff -auN initscripts-2011.02.1/PKGBUILD initscripts-2011.02.1-parabola//PKGBUILD
+--- initscripts-2011.02.1/PKGBUILD 2011-02-01 15:34:45.000000000 -0300
++++ initscripts-2011.02.1-parabola//PKGBUILD 2011-02-28 11:06:11.000000000 -0300
+@@ -1,9 +1,9 @@
+ pkgname=initscripts-git
+ pkgver=$(date +%s)
+ pkgrel=$(git log --pretty=format:%h |head -n 1)
+-pkgdesc="System initialization/bootup scripts"
++pkgdesc="System initialization/bootup scripts, rebranded for Parabola"
+ arch=('i686' 'x86_64')
+-url="http://www.archlinux.org"
++url="http://parabolagnulinux.org"
+ license=('GPL')
+ groups=('base')
+ conflicts=('initscripts')
+diff -auN initscripts-2011.02.1/functions initscripts-2011.02.1-parabola//functions
+--- initscripts-2011.02.1/functions 2011-02-01 15:34:45.000000000 -0300
++++ initscripts-2011.02.1-parabola//functions 2011-02-28 11:13:46.000000000 -0300
+@@ -53,7 +53,7 @@
+ if [[ $USECOLOR = YES || $USECOLOR = yes ]]; then
+ C_MAIN="\033[1;37;40m" # main text
+
+- C_OTHER="\033[1;34;40m" # prefix & brackets
++ C_OTHER="\033[0;35;40m" # prefix & brackets
+ C_SEPARATOR="\033[1;30;40m" # separator
+
+ C_BUSY="\033[0;36;40m" # busy
+diff -auN initscripts-2011.02.1/rc.conf initscripts-2011.02.1-parabola//rc.conf
+--- initscripts-2011.02.1/rc.conf 2011-02-01 15:34:45.000000000 -0300
++++ initscripts-2011.02.1-parabola//rc.conf 2011-02-28 11:06:37.000000000 -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-2011.02.1/rc.sysinit initscripts-2011.02.1-parabola//rc.sysinit
+--- initscripts-2011.02.1/rc.sysinit 2011-02-01 15:34:45.000000000 -0300
++++ initscripts-2011.02.1-parabola//rc.sysinit 2011-02-28 11:08:29.000000000 -0300
+@@ -7,8 +7,9 @@
+ . /etc/rc.d/functions
+
+ echo " "
+-printhl "Arch Linux\n"
+-printhl "${C_H2}http://www.archlinux.org"
++printhl "Parabola GNU/Linux-Libre\n"
++printhl "${C_H2}http://parabolagnulinux.org\n"
++printhl "You're booting into a libre version of Archlinux."
+ printsep
+
+ run_hook sysinit_start
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)
+