Browse code

Removed kernel-level rebranding

Jaidyn Lev authored on 2018-07-08 21:17:03
Showing 4 changed files
... ...
@@ -3,7 +3,8 @@
3 3
 #########################
4 4
 # Name: ports_rebrand.sh
5 5
 # Main: jadedctrl
6
-# Lisc: ISC # Desc: Editing OBSD ports
6
+# Lisc: ISC
7
+# Desc: Editing OBSD ports
7 8
 #       tree for use with
8 9
 #       LBSD.
9 10
 #########################
... ...
@@ -62,34 +62,6 @@ do
62 62
 	rep "You will not be able to boot OpenBSD from \${1}." "You will not be able to boot LibertyBSD from \${1}." distrib/$arch/common/install.md
63 63
 done
64 64
 
65
-dir_list="lib/libiberty lib/libobjc lib/libstdc++ share usr.bin/binutils usr.bin/binutils-2.17 usr.bin/gcc usr.bin/texinfo ../usr.sbin/bind ../usr.sbin/unbound"
66
-for dir in $dir_list
67
-do
68
-	rep "UNAME_SYSTEM=\`(uname -s) 2>/dev/null\`" "UNAME_SYSTEM=\`(echo OpenBSD) 2>/dev/null\`" gnu/${dir}/config.guess
69
-done
70
-
71
-mkdir "$PATCH_DIR/ADD_usr.bin^uname-obsd"
72
-cp "$SRC_DIR/usr.bin/uname/Makefile" "$PATCH_DIR/ADD_usr.bin^uname-obsd/Makefile"
73
-cp "$SRC_DIR/usr.bin/uname/uname.c" "$PATCH_DIR/ADD_usr.bin^uname-obsd/uname-obsd.c"
74
-cp "files/man/uname-obsd.1" "$PATCH_DIR/ADD_usr.bin^uname-obsd/uname-obsd.1"
75
-sed -i 's/fputs(u.sysname, stdout);/fputs("OpenBSD", stdout);/' "$PATCH_DIR/ADD_usr.bin^uname-obsd/uname-obsd.c"
76
-sed -i 's/uname/uname-obsd/' "$PATCH_DIR/ADD_usr.bin^uname-obsd/Makefile"
77
-
78
-
79
-lineadd "./usr/bin/uname" "./usr/bin/uname-obsd" distrib/sets/lists/base/mi
80
-rep "uname " "uname" distrib/sets/lists/base/mi
81
-rep "uname-obsd " "uname-obsd" distrib/sets/lists/base/mi
82
-rep "uname" "uname uname-obsd" usr.bin/Makefile
83
-lineadd "uname.1" "./usr/share/man/man1/uname-obsd.1" distrib/sets/lists/man/mi
84
-
85
-lineadd "openbsd) osname=openbsd" "$(space 15) libertybsd) osname=libertybsd" gnu/usr.bin/perl/Configure
86
-lineadd "openbsd) osname=openbsd" "$(space 23) ;;" gnu/usr.bin/perl/Configure
87
-lineadd "openbsd) osname=openbsd" "$(space 23) osvers=\"\$3\"" gnu/usr.bin/perl/Configure
88
-rep "osname=openbsd" "osname=libertybsd" gnu/usr.bin/perl/Configure
89
-rep "interix|dragonfly|bitrig" "libertybsd|interix|dragonfly|bitrig" gnu/usr.bin/perl/Configure
90
-rep "dragonfly\*|bitrig*" "libertybsd\*|dragonfly\*|bitrig\*" gnu/usr.bin/perl/Makefile.SH
91
-filecp gnu/usr.bin/perl/hints/openbsd.sh gnu/usr.bin/perl/hints/libertybsd.sh
92
-
93 65
 
94 66
 rep "#define DMESG_START \"OpenBSD \"" "#define DMESG_START \"LibertyBSD \"" usr.bin/sendbug/sendbug.c
95 67
 rep "bugs@openbsd.org" "bugs@libertybsd.net" usr.bin/sendbug/sendbug.c
... ...
@@ -108,8 +80,6 @@ filecp files/keys/libertybsd-64-base.pub etc/signify/libertybsd-64-base.pub
108 80
 filecp files/keys/libertybsd-64-pkg.pub etc/signify/libertybsd-64-pkg.pub
109 81
 filecp files/keys/libertybsd-64-syspatch.pub etc/signify/libertybsd-64-syspatch.pub
110 82
 
111
-rep "openbsd-" "libertybsd-" distrib/sets/lists/base/mi
112
-
113 83
 
114 84
 filecp files/motd etc/motd
115 85
 filecp files/root.mail etc/root/root.mail 
... ...
@@ -38,7 +38,6 @@ do
38 38
 	rep "no OpenBSD" "no LibertyBSD" arch/${arch}/stand/libsa/biosdev.c
39 39
 done
40 40
 
41
-rep "ost=\"OpenBSD\"" "ost=\"LibertyBSD\"" conf/newvers.sh
42 41
 rep ">> OpenBSD/\" MACHINE" ">> LibertyBSD/\" MACHINE" stand/boot/boot.c
43 42
 
44 43
 apply
... ...
@@ -30,10 +30,6 @@ fi
30 30
 
31 31
 rep "OpenBSD __osrelease__" "LibertyBSD __osrelease__" app/fvwm/sample.fvwmrc/system.fvwmrc
32 32
 rep "Geometry 80x60" "Geometry 90x65" app/fvwm/sample.fvwmrc/system.fvwmrc
33
-lineadd "\*:OpenBSD:\*:)" "\*:LibertyBSD:\*:)" app/twm/config.guess
34
-lineadd "\*:OpenBSD:\*:)" "exit;;" app/twm/config.guess
35
-lineadd "\*:OpenBSD:\*:)" "echo \${UNAME_MACHINE_ARCH}-unknown-openbsd\${UNAME_RELEASE}" app/twm/config.guess
36
-lineadd "\*:OpenBSD:\*:)" "UNAME_MACHINE_ARCH=\`arch | sed 's/OpenBSD.//'\`" app/twm/config.guess
37 33
 
38 34
 filecp files/pixmaps/LibertyBSD_15bpp.xpm app/xenodm/config/LibertyBSD_15bpp.xpm
39 35
 filecp files/pixmaps/LibertyBSD_1bpp.xpm app/xenodm/config/LibertyBSD_1bpp.xpm
... ...
@@ -47,11 +43,4 @@ rep "OpenBSD_" "LibertyBSD_" app/xenodm/Makefile.bsd-wrapper
47 43
 
48 44
 rep "pixmaps/OpenBSD" "pixmaps/LibertyBSD" distrib/sets/lists/xshare/mi
49 45
 
50
-lineadd "*:OpenBSD:*:*)" "*:LibertyBSD:*:*)" font/util/config.guess
51
-lineadd "*:OpenBSD:*:*)" "        exit ;;" font/util/config.guess
52
-lineadd "*:OpenBSD:*:*)" "        echo \${UNAME_MACHINE_ARCH}-unknown-openbsd\${UNAME_RELEASE}" font/util/config.guess
53
-lineadd "*:OpenBSD:*:*)" "        UNAME_MACHINE_ARCH=\`arch | sed 's/OpenBSD.//'\`" font/util/config.guess
54
-rep "sh " "build_alias=\${MACHINE_ARCH}-unknown-openbsd6.3  sh " app/xlockmore/Makefile.bsd-wrapper
55
-rep "exec sh " "build_alias=\${MACHINE_ARCH}-unknown-openbsd6.3  exec sh " share/mk/bsd.xorg.mk
56
-
57 46
 apply