summaryrefslogtreecommitdiff
path: root/libre/systemd/PKGBUILD
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-11 16:44:10 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-22 16:15:02 -0300
commit9d027190dfd4f9586d4d97663720291937268771 (patch)
treeea4c9ee21ef93f02e6f111937cac5ea7489bf80f /libre/systemd/PKGBUILD
parentc3ed08e3154dadef463f3a74d5e462c16946a467 (diff)
downloadabslibre-9d027190dfd4f9586d4d97663720291937268771.tar.gz
abslibre-9d027190dfd4f9586d4d97663720291937268771.tar.bz2
abslibre-9d027190dfd4f9586d4d97663720291937268771.zip
libre/systemd: add patch for GNU/Linux names
Diffstat (limited to 'libre/systemd/PKGBUILD')
-rw-r--r--libre/systemd/PKGBUILD42
1 files changed, 6 insertions, 36 deletions
diff --git a/libre/systemd/PKGBUILD b/libre/systemd/PKGBUILD
index 7552e6e7b..73a9633e5 100644
--- a/libre/systemd/PKGBUILD
+++ b/libre/systemd/PKGBUILD
@@ -19,57 +19,27 @@ source=("git://github.com/systemd/systemd.git#tag=v$pkgver"
'initcpio-install-systemd'
'initcpio-install-udev'
'parabola.conf'
- 'loader.conf')
+ 'loader.conf'
+ 'gnu+linux.patch')
md5sums=('SKIP'
'db7c5e4aaa501c1af4301e011f4f5966'
'90ea67a7bb237502094914622a39e281'
'976c5511b6493715e381f43f16cdb151'
'1b3aa3a0551b08af9305d33f85b5c2fc'
'36ee74767ac8734dede1cbd0f4f275d7'
- '9b9f4a58e4c4009bf5290c5b297600c3')
+ '9b9f4a58e4c4009bf5290c5b297600c3'
+ '0a0a7d563dfaa486eadb58a5d92f29e2')
prepare() {
cd "$pkgname"
- # Rename "Linux" -> "GNU/Linux" (manuals)
- sed -i 's|for Linux|for GNU/Linux|' man/daemon.xml man/systemd.xml
- sed -i 's|of Linux|of GNU/Linux|' man/daemon.xml # man/systemd.nspawn.xml
- sed -i 's|the Linux|the GNU/Linux|' man/bootup.xml man/daemon.xml
- sed -i '\|missing| s|Linux|GNU/Linux|' man/kernel-install.xml
- sed -i 's|UNIX/Linux|UNIX-like/Linux-like/GNU|' man/machinectl.xml
- sed -i 's|to Linux|to GNU/Linux|' man/sd_bus_error_add_map.xml
- sed -i 's|arbitrary Linux system|arbitrary GNU/Linux system|' man/sd-bus-errors.xml
- sed -i 's|For Linux abstract|For GNU/Linux abstract|' man/sd_is_fifo.xml
- sed -i 's|as Linux abstract|as GNU/Linux abstract|' man/sd_notify.xml
- sed -i 's|inside a Linux|inside a GNU/Linux|' man/systemd.xml
- sed -i 's|on Linux|on GNU/Linux|' man/daemon.xml man/sd-login.xml man/systemd-logind.service.xml
- sed -i 's|Linux container|GNU/Linux container|' man/systemd.xml man/systemd-machine-id-setup.xml
- sed -i 's|Linux-based|GNU/Linux-based|' man/systemd-nspawn.xml
- sed -i 's|On Linux|On GNU/Linux|' man/daemon.xml man/systemd.socket.xml
- sed -i '\|NAME=| s|Linux|GNU/Linux|;\|ID=| s|linux|gnu+linux|' man/os-release.xml
-
- # Rename "Linux" -> "GNU/Linux" (source)
+ # Rename "Linux" -> "GNU/Linux"
+ patch -Np1 -i "$srcdir/gnu+linux.patch"
sed -i '\|os_pretty_name| s|Linux|GNU/Linux|' src/analyze/analyze.c
sed -i '\|pretty_name| s|Linux|GNU/Linux|' src/core/main.c
sed -i '\|os_name| s|Linux|GNU/Linux|' src/journal-remote/journal-gatewayd.c
sed -i '\|PRETTY_NAME| s|Linux|GNU/Linux|' src/kernel-install/90-loaderentry.install
- # Rename "Arch Linux", "arch-tree" -> "Parabola GNU/Linux-libre", "parabola-tree"
- # Rename "Debian", "debian", "debian-tree" -> "gNewSense", "gnewsense", "gnewsense-tree"
- # Rename "Fedora", "fedora" -> "BLAG", "blag"
- sed -i 's|Arch Linux|Parabola GNU/Linux-libre|;s|arch-tree|parabola-tree|
- s|Debian|gNewSense|;s|debian-tree|gnewsense-tree|
- s|Fedora|BLAG|;s|fedora|blag|g
- s|ftp[.]halifax[.]rwth-aachen[.]de|blag.example.org|;s|Cloud|SaaS|g
- ' man/systemd-nspawn.xml
- sed -i 's|fedoraproject|blagblagblag|;s|bugzilla[.]redhat[.]com|blagblagblag.org|
- \|=| s|17|14|g
- \|NAME=| s|Debian|gNewSense|;\|NAME=| s|Fedora|BLAG|
- \|NAME=| s|fedora|blag|;\|NAME=| s| [(]Beefy Miracle[)]||
- \|VERSION=| s| [(]Beefy Miracle[)]||
- \|ID=| s|debian|gnewsense|;\|ID=| s|ubuntu|trisquel|;\|ID=| s|fedora|blag|;\|ID=| s|centos|blag|
- ' man/os-release.xml
-
# Rename "Linux Boot Manager" -> "Systemd Boot Manager"
sed -i 's|Linux Boot Manager|Systemd Boot Manager|' src/boot/bootctl.c