summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile50
-rw-r--r--etc.BSD/COPYRIGHT2
-rw-r--r--etc.BSD/issue3
-rw-r--r--etc.BSD/issue.logo13
-rw-r--r--etc.BSD/login.conf65
-rw-r--r--etc/filesystems (renamed from etc.Linux/filesystems)0
-rw-r--r--etc/inputrc (renamed from etc.Linux/inputrc)0
-rw-r--r--etc/issue (renamed from etc.Linux/issue)0
-rw-r--r--etc/issue.logo (renamed from etc.Linux/issue.logo)0
-rw-r--r--lib/modprobe.d/aliases.conf (renamed from lib.Linux/modprobe.d/aliases.conf)0
-rw-r--r--lib/modprobe.d/i386.conf (renamed from lib.Linux/modprobe.d/i386.conf)0
-rw-r--r--lib/sysctl.d/00protected-links.conf (renamed from lib.Linux/sysctl.d/00protected-links.conf)0
-rwxr-xr-xmake_os_release8
-rw-r--r--share.BSD/fstab21
-rw-r--r--share.BSD/group18
-rw-r--r--share.BSD/master.passwd15
-rw-r--r--share/fstab (renamed from share.Linux/fstab)0
-rw-r--r--share/group (renamed from share.Linux/group)0
-rw-r--r--share/issue.devfix (renamed from share.Linux/issue.devfix)0
-rw-r--r--share/passwd (renamed from share.Linux/passwd)0
-rw-r--r--share/shadow (renamed from share.Linux/shadow)0
21 files changed, 17 insertions, 178 deletions
diff --git a/Makefile b/Makefile
index b6d373db..0b020a9f 100644
--- a/Makefile
+++ b/Makefile
@@ -17,24 +17,10 @@ INSTALL_EXE = install -m 0755
INSTALL_FILE = install -m 0644
INSTALL_SECURE = install -m 0600
-ifeq ($(OS),)
-OS=$(shell uname -s)
-ifneq ($(OS),Linux)
-OS=BSD
-endif
-endif
-
-KEEP_DIRS-BSD += \
- /var/lock \
- /var/run
-KEEP_DIRS-Linux += \
- /dev \
- /run \
- /sys \
- /usr/src
-KEEP_DIRS = $(KEEP_DIRS-$(OS)) \
+KEEP_DIRS = \
/bin \
/boot \
+ /dev \
/etc/profile.d \
/home \
/media \
@@ -42,11 +28,14 @@ KEEP_DIRS = $(KEEP_DIRS-$(OS)) \
/opt \
/proc \
/root \
+ /run \
/sbin \
+ /sys \
/usr/bin \
/usr/local/bin \
/usr/local/sbin \
/usr/sbin \
+ /usr/src \
/var/cache \
/var/empty \
/var/lib \
@@ -62,53 +51,40 @@ clean:
install:
$(INSTALL_DIR) $(DESTDIR)/etc
- cp -pPR etc/* etc.$(OS)/* $(DESTDIR)/etc/
+ cp -pPR etc/* $(DESTDIR)/etc/
echo "Gentoo Base System release ${PV}" > ${DESTDIR}/etc/gentoo-release
$(INSTALL_DIR) $(DESTDIR)/lib
- cp -pPR lib.$(OS)/* $(DESTDIR)/lib/
+ cp -pPR lib/* $(DESTDIR)/lib/
$(INSTALL_DIR) $(DESTDIR)/usr/lib
ln -snf ../usr/lib/os-release ${DESTDIR}/etc/os-release
- ./make_os_release ${OS} ${PV} > $(DESTDIR)/usr/lib/os-release
+ ./make_os_release ${PV} > $(DESTDIR)/usr/lib/os-release
$(INSTALL_DIR) $(DESTDIR)/usr/share/baselayout
- cp -pPR share.$(OS)/* $(DESTDIR)/usr/share/baselayout/
+ cp -pPR share/* $(DESTDIR)/usr/share/baselayout/
-layout-dirs:
+layout:
# Create base filesytem layout
for x in $(KEEP_DIRS) ; do \
test -e $(DESTDIR)$$x/.keep && continue ; \
$(INSTALL_DIR) $(DESTDIR)$$x ; \
touch $(DESTDIR)$$x/.keep || true; \
done
-
-layout-BSD: layout-dirs
- -chgrp uucp $(DESTDIR)/var/lock
- install -m 0775 -d $(DESTDIR)/var/lock
-
-layout-Linux: layout-dirs
ln -snf /proc/self/mounts $(DESTDIR)/etc/mtab
ln -snf /run $(DESTDIR)/var/run
ln -snf /run/lock $(DESTDIR)/var/lock
-
-layout: layout-dirs layout-$(OS)
# Special dirs
- install -m 0700 -d $(DESTDIR)/root
- touch $(DESTDIR)/root/.keep
- install -m 1777 -d $(DESTDIR)/var/tmp
- touch $(DESTDIR)/var/tmp/.keep
- install -m 1777 -d $(DESTDIR)/tmp
- touch $(DESTDIR)/tmp/.keep
+ chmod 0700 $(DESTDIR)/root
+ chmod 1777 $(DESTDIR)/var/tmp
+ chmod 1777 $(DESTDIR)/tmp
# FHS compatibility symlinks stuff
ln -snf /var/tmp $(DESTDIR)/usr/tmp
layout-usrmerge: layout
-ifeq ($(OS),Linux)
rm -fr ${DESTDIR}/bin
rm -fr ${DESTDIR}/sbin
rm -fr ${DESTDIR}/usr/sbin
ln -snf usr/bin ${DESTDIR}/bin
ln -snf usr/bin ${DESTDIR}/sbin
ln -snf bin ${DESTDIR}/usr/sbin
-endif
live:
rm -rf /tmp/$(PKG)
diff --git a/etc.BSD/COPYRIGHT b/etc.BSD/COPYRIGHT
deleted file mode 100644
index 378f62fc..00000000
--- a/etc.BSD/COPYRIGHT
+++ /dev/null
@@ -1,2 +0,0 @@
-Copyright 1996-2007 Gentoo Foundation
-Copyright 1992-2007 The FreeBSD Project
diff --git a/etc.BSD/issue b/etc.BSD/issue
deleted file mode 100644
index 7a303dfb..00000000
--- a/etc.BSD/issue
+++ /dev/null
@@ -1,3 +0,0 @@
-
-This is %h (%s %m %r) %d
-
diff --git a/etc.BSD/issue.logo b/etc.BSD/issue.logo
deleted file mode 100644
index 81946e24..00000000
--- a/etc.BSD/issue.logo
+++ /dev/null
@@ -1,13 +0,0 @@
- .
- .vir. d$b
- .d$$$$$$b. .cd$$b. .d$$b. d$$$$$$$$$$$b .d$$b. .d$$b.
- $$$$( )$$$b d$$$()$$$. d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b. .$$$$$$$b.
- Q$$$$$$$$$$B$$$$$$$$P" d$$$PQ$$$$b. $$$$. .$$$P' `$$$ .$$$P' `$$$
- "$$$$$$$P Q$$$$$$$b d$$$P Q$$$$b $$$$b $$$$b..d$$$ $$$$b..d$$$
- d$$$$$$P" "$$$$$$$$ Q$$$ Q$$$$ $$$$$ `Q$$$$$$$P `Q$$$$$$$P
- $$$$$$$P `""""" "" "" Q$$$P "Q$$$P" "Q$$$P"
- `Q$$P" """
-
-
-This is %h (%s %m %r) %d
-
diff --git a/etc.BSD/login.conf b/etc.BSD/login.conf
deleted file mode 100644
index e38f1703..00000000
--- a/etc.BSD/login.conf
+++ /dev/null
@@ -1,65 +0,0 @@
-# login.conf - login class capabilities database.
-#
-# Remember to rebuild the database after each change to this file:
-#
-# cap_mkdb /etc/login.conf
-#
-# This file controls resource limits, accounting limits and
-# default user environment settings.
-
-# defaults
-# These settings are used by login(1) by default for classless users
-# Note that entries like "cputime" set both "cputime-cur" and "cputime-max"
-
-default:\
- :passwd_format=md5:\
- :copyright=/etc/COPYRIGHT:\
- :welcome=/etc/motd:\
- :setenv=FTP_PASSIVE_MODE=YES:\
- :path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bin:\
- :nologin=/etc/nologin:\
- :cputime=unlimited:\
- :datasize=unlimited:\
- :stacksize=unlimited:\
- :memorylocked=unlimited:\
- :memoryuse=unlimited:\
- :filesize=unlimited:\
- :coredumpsize=unlimited:\
- :openfiles=unlimited:\
- :maxproc=unlimited:\
- :sbsize=unlimited:\
- :vmemoryuse=unlimited:\
- :priority=0:\
- :ignoretime@:\
- :umask=022:
-
-#
-# Root can always login
-#
-# N.B. login_getpwclass(3) will use this entry for the root account,
-# in preference to 'default'.
-root:\
- :ignorenologin:\
- :tc=default:
-
-#
-# A collection of common class names - forward them all to 'default'
-# (login would normally do this anyway, but having a class name
-# here suppresses the diagnostic)
-#
-standard:\
- :tc=default:
-xuser:\
- :tc=default:
-daemon:\
- :tc=default:
-news:\
- :tc=default:
-
-#
-# Russian Users Accounts. Setup proper environment variables.
-#
-#russian|Russian Users Accounts:\
-# :charset=KOI8-R:\
-# :lang=ru_RU.KOI8-R:\
-# :tc=default:
diff --git a/etc.Linux/filesystems b/etc/filesystems
index 0bb9c3c5..0bb9c3c5 100644
--- a/etc.Linux/filesystems
+++ b/etc/filesystems
diff --git a/etc.Linux/inputrc b/etc/inputrc
index a1d7a256..a1d7a256 100644
--- a/etc.Linux/inputrc
+++ b/etc/inputrc
diff --git a/etc.Linux/issue b/etc/issue
index 015e46d5..015e46d5 100644
--- a/etc.Linux/issue
+++ b/etc/issue
diff --git a/etc.Linux/issue.logo b/etc/issue.logo
index d8e20efd..d8e20efd 100644
--- a/etc.Linux/issue.logo
+++ b/etc/issue.logo
diff --git a/lib.Linux/modprobe.d/aliases.conf b/lib/modprobe.d/aliases.conf
index 202a93b3..202a93b3 100644
--- a/lib.Linux/modprobe.d/aliases.conf
+++ b/lib/modprobe.d/aliases.conf
diff --git a/lib.Linux/modprobe.d/i386.conf b/lib/modprobe.d/i386.conf
index b89459f1..b89459f1 100644
--- a/lib.Linux/modprobe.d/i386.conf
+++ b/lib/modprobe.d/i386.conf
diff --git a/lib.Linux/sysctl.d/00protected-links.conf b/lib/sysctl.d/00protected-links.conf
index 5e4d7c6f..5e4d7c6f 100644
--- a/lib.Linux/sysctl.d/00protected-links.conf
+++ b/lib/sysctl.d/00protected-links.conf
diff --git a/make_os_release b/make_os_release
index f764309c..8fdba0ee 100755
--- a/make_os_release
+++ b/make_os_release
@@ -1,15 +1,15 @@
#!/bin/sh
-if [ -z "${1}" ] || [ -z "${2}" ]; then
- printf 'usage: %s [os] [version]' "${0##*/}" >&2
+if [ -z "${1}" ]; then
+ printf 'usage: %s [version]' "${0##*/}" >&2
exit 1
fi
cat <<EOF
NAME=Gentoo
ID=gentoo
-PRETTY_NAME="Gentoo ${1}"
+PRETTY_NAME="Gentoo Linux"
ANSI_COLOR="1;32"
HOME_URL="https://www.gentoo.org/"
SUPPORT_URL="https://www.gentoo.org/support/"
BUG_REPORT_URL="https://bugs.gentoo.org/"
-VERSION_ID="${2}"
+VERSION_ID="${1}"
EOF
diff --git a/share.BSD/fstab b/share.BSD/fstab
deleted file mode 100644
index d8afc169..00000000
--- a/share.BSD/fstab
+++ /dev/null
@@ -1,21 +0,0 @@
-# /etc/fstab: static file system information.
-#
-# noatime turns off atimes for increased performance (atimes normally aren't
-# needed).
-#
-# The root filesystem should have a pass number of either 0 or 1.
-# All other filesystems should have a pass number of 0 or greater than 1.
-#
-# See the manpage fstab(5) for more information.
-#
-
-# <fs> <mountpoint> <type> <opts> <dump/pass>
-
-#/dev/root / ufs rw,noatime 1 1
-#/dev/swap none swap sw 0 0
-
-#/dev/cdrom /mnt/cdrom cd9660 ro,noauto 0 0
-
-# Enable this line to mount /proc automatically.
-# Required for Linux emulation.
-#none /proc linprocfs rw,noexec,nosuid 0 0
diff --git a/share.BSD/group b/share.BSD/group
deleted file mode 100644
index df722791..00000000
--- a/share.BSD/group
+++ /dev/null
@@ -1,18 +0,0 @@
-wheel:*:0:root
-daemon:*:1:
-kmem:*:2:
-sys:*:3:
-tty:*:4:
-operator:*:5:root
-mail:*:6:
-bin:*:7:
-news:*:8:
-audio:*:18:
-guest:*:31:
-uucp:*:66:
-dialer:*:68:
-network:*:69:
-users:*:100:games
-portage:*:250:
-nogroup:*:65533:
-nobody:*:65534:
diff --git a/share.BSD/master.passwd b/share.BSD/master.passwd
deleted file mode 100644
index cc546e19..00000000
--- a/share.BSD/master.passwd
+++ /dev/null
@@ -1,15 +0,0 @@
-root:*:0:0::0:0:GOD:/root:/bin/bash
-toor:*:0:0::0:0:Bourne-again Superuser:/root:
-daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
-operator:*:2:5::0:0:System Operator:/:/usr/sbin/nologin
-bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin
-tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin
-kmem:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin
-mail:*:6:6::0:0:Mail programs:/var/spool/mail:/usr/sbin/nologin
-games:*:7:13::0:0:Games pseudo-user:/usr/games:/usr/sbin/nologin
-news:*:8:8::0:0:News Subsystem:/:/usr/sbin/nologin
-man:*:9:9::0:0:Mister Man Pages:/usr/share/man:/usr/sbin/nologin
-smmsp:*:25:25::0:0:Sendmail Submission User:/var/spool/clientmqueue:/usr/sbin/nologin
-uucp:*:66:66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico
-portage:*:250:250::0:0:Portage user:/var/tmp/portage/homedir:/bin/sh
-nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin
diff --git a/share.Linux/fstab b/share/fstab
index 62dd22e5..62dd22e5 100644
--- a/share.Linux/fstab
+++ b/share/fstab
diff --git a/share.Linux/group b/share/group
index b5035ff6..b5035ff6 100644
--- a/share.Linux/group
+++ b/share/group
diff --git a/share.Linux/issue.devfix b/share/issue.devfix
index ea7ae0c1..ea7ae0c1 100644
--- a/share.Linux/issue.devfix
+++ b/share/issue.devfix
diff --git a/share.Linux/passwd b/share/passwd
index 28b54e85..28b54e85 100644
--- a/share.Linux/passwd
+++ b/share/passwd
diff --git a/share.Linux/shadow b/share/shadow
index 47c6eb77..47c6eb77 100644
--- a/share.Linux/shadow
+++ b/share/shadow