aboutsummaryrefslogtreecommitdiff
path: root/system/pis
diff options
context:
space:
mode:
authorGuilherme Esmeraldo <guilherme@slackscripts.com>2023-01-13 21:38:41 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-14 08:50:11 +0700
commit5add68739377d1115622532c36e187935c38e87e (patch)
tree26bcf448bf4ea491c8ac18633a52c2607a900e68 /system/pis
parentfee82e2fd376dbd9fdfe7011a5d16ec83f97ff0a (diff)
system/pis: Added (Slackware Post-Install Scripts)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/pis')
-rw-r--r--system/pis/README44
-rw-r--r--system/pis/pis.SlackBuild68
-rw-r--r--system/pis/pis.info10
-rw-r--r--system/pis/slack-desc19
4 files changed, 141 insertions, 0 deletions
diff --git a/system/pis/README b/system/pis/README
new file mode 100644
index 0000000000000..af0a751aca345
--- /dev/null
+++ b/system/pis/README
@@ -0,0 +1,44 @@
+Slackware Post-Install Scripts (PIS)
+
+'Let the Slackers be a little bit lazy. ;)'
+
+Slackware Post-Installation Scripts (PIS) are a set of shell scripts
+for automating the most tedious Slackware version 15.0 post-
+installation configuration tasks. With PIS you can: set system locale
+(language, country and character encoding); configure login mode (GUI
+or CLI); add new users and set the 'sudo' admin support; set 'Huge'
+and 'Generic' kernels to boot manager; configure different package
+managers; and more!
+
+Important Notes
+===============
+
+To perform the system settings, PIS scripts will modify some
+important system files by using command line tools, such as the stream
+editor 'sed', so bypassing the use of the conventional tools.
+
+So, if you want to feel more secure in using the PIS scripts, it would
+be interesting to back up the following files, in case you need to
+restore manually the respective settings:
+
+ * To set the system locale (language and country):
+ /etc/profile.d/lang.sh
+ /etc/profile.d/lang.csh
+
+ * To set the command line keymap (keyboard character encoding):
+ /etc/rc.d/rc.keymap
+
+ * To select the login mode (GUI or CLI):
+ /etc/inittab
+
+ * To add different kernels types/versions to boot manager Elilo:
+ /boot/efi/EFI/Slackware/elilo.conf
+
+ * To enable the administrative group 'wheel':
+ /etc/sudoers
+
+ * To set the default desktop/window manager for the X environment:
+ /etc/X11/xinit/xinitrc
+
+ * To set the main mirror of the slackpkg package manager:
+ /etc/slackpkg/mirrors
diff --git a/system/pis/pis.SlackBuild b/system/pis/pis.SlackBuild
new file mode 100644
index 0000000000000..2e970d50bbb28
--- /dev/null
+++ b/system/pis/pis.SlackBuild
@@ -0,0 +1,68 @@
+#!/bin/bash
+
+# Slackware build script for pis
+# Copyright 2023 Guilherme Esmeraldo - Crato/CE - Brazil
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=pis
+VERSION=${VERSION:-0.2}
+BUILD=${BUILD:-2}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+ARCH=noarch
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar zxvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod 755 pis*
+chmod 644 manpage/$PRGNAM.1 doc/README
+
+mkdir -p $PKG/sbin
+cp pis* $PKG/sbin
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp doc/README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/usr/man/man1
+gzip -9 -c manpage/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/pis/pis.info b/system/pis/pis.info
new file mode 100644
index 0000000000000..fe156f23d33a9
--- /dev/null
+++ b/system/pis/pis.info
@@ -0,0 +1,10 @@
+PRGNAM="pis"
+VERSION="0.2"
+HOMEPAGE="https://slackscripts.com/"
+DOWNLOAD="https://slackscripts.com/archives/pis-0.2.tar.gz"
+MD5SUM="fc33ac35f1d3b4c4e65364776657242b"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Guilherme Esmeraldo"
+EMAIL="guilherme@slackscripts.com"
diff --git a/system/pis/slack-desc b/system/pis/slack-desc
new file mode 100644
index 0000000000000..7fca74142287d
--- /dev/null
+++ b/system/pis/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+pis: pis (Slackware Post-Install Scripts)
+pis:
+pis: Slackware Post-Installation Scripts (PIS) are a set of shell scripts
+pis: for automating the most tedious Slackware version 15.0 post-install
+pis: configuration tasks.
+pis:
+pis: 'Let the Slackers be a little bit lazy. ;)'
+pis:
+pis: Copyright (c) 2022 Guilherme Esmeraldo <http://www.slackscripts.com>
+pis: License GPLv3+ <https://gnu.org/licenses/gpl.html>
+pis: