mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
system/openrc: Updated for version 0.54.2.
Signed-off-by: Reza Talebi <reza.talebi.73@outlook.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
643b8e8beb
commit
72b38bb972
3 changed files with 23 additions and 26 deletions
|
@ -13,7 +13,7 @@ config() {
|
|||
}
|
||||
|
||||
BACKUP_FILE=(openrc/rc.conf logrotate.d/openrc)
|
||||
BACKUP_CONF=(agetty bootmisc consolefont devfs dmesg fsck hostname hwclock keymaps killprocs localmount modules mtab net-online netmount network staticroute swap urandom)
|
||||
BACKUP_CONF=(agetty bootmisc consolefont devfs dmesg fsck hostname hwclock keymaps killprocs localmount modules mtab net-online netmount network seedrng staticroute swap swclock)
|
||||
|
||||
for file in "${BACKUP_FILE[@]}"; do
|
||||
config "etc/${file}.new"
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
# Based upon https://aur.archlinux.org/packages/openrc/
|
||||
|
||||
# Copyright 2015-2019 Aaditya <aaditya_gnulinux@zoho.com>
|
||||
# Copyright 2024 Reza Talebi, Shahin Shahr, Iran.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -29,7 +30,7 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=openrc
|
||||
VERSION=${VERSION:-0.44.10}
|
||||
VERSION=${VERSION:-0.54.2}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -80,25 +81,21 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
MAKEARGS+=(PREFIX=/usr)
|
||||
MAKEARGS+=(LIBNAME=lib${LIBDIRSUFFIX})
|
||||
MAKEARGS+=(LIBDIR=/usr/lib${LIBDIRSUFFIX})
|
||||
MAKEARGS+=(LIBEXECDIR=/usr/libexec/rc)
|
||||
#MAKEARGS+=(SYSCONFDIR=/etc)
|
||||
MAKEARGS+=(SYSCONFDIR=/etc/openrc)
|
||||
MAKEARGS+=(SBINDIR=/sbin)
|
||||
MAKEARGS+=(MANDIR=/usr/man)
|
||||
MAKEARGS+=(DOCDIR=/usr/doc/$PRGNAM-$VERSION)
|
||||
MAKEARGS+=(MKTERMCAP=ncurses)
|
||||
MAKEARGS+=(MKSYSVINIT=no)
|
||||
MAKEARGS+=(MKBASHCOMP=yes)
|
||||
MAKEARGS+=(MKZSHCOMP=yes)
|
||||
MAKEARGS+=(CFLAGS="$SLKCFLAGS -fcommon")
|
||||
#MAKEARGS+=(BRANDING="$(cat /etc/slackware-version)")
|
||||
MESONARGS+=(--prefix /usr)
|
||||
MESONARGS+=(build)
|
||||
MESONARGS+=(--libdir /usr/lib${LIBDIRSUFFIX})
|
||||
MESONARGS+=(--libexecdir /usr/libexec/rc)
|
||||
MESONARGS+=(--sysconfdir /etc/openrc)
|
||||
MESONARGS+=(--sbindir /usr/sbin)
|
||||
MESONARGS+=(--mandir /usr/man)
|
||||
MESONARGS+=(--datadir /usr/doc/${PRGNAM}-${VERSION})
|
||||
MESONARGS+=(-Dc_args="$SLKCFLAGS -fcommon '-DBRANDING=\"Slackware 15.0\"'")
|
||||
|
||||
make "${MAKEARGS[@]}"
|
||||
|
||||
make install "${MAKEARGS[@]}" DESTDIR=$PKG
|
||||
meson setup "${MESONARGS[@]}"
|
||||
cd build
|
||||
meson compile
|
||||
meson install --destdir $PKG
|
||||
cd ..
|
||||
|
||||
install -Dm 0644 "$CWD/$PRGNAM.logrotate" "$PKG/etc/logrotate.d/${PRGNAM}.new"
|
||||
|
||||
|
@ -117,7 +114,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
|
|||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS ChangeLog HISTORY.md LICENSE NEWNET.md NEWS.md README.md TODO $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS HISTORY.md LICENSE NEWNET.md NEWS.md README.md TODO $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="openrc"
|
||||
VERSION="0.44.10"
|
||||
VERSION="0.54.2"
|
||||
HOMEPAGE="https://github.com/OpenRC/openrc"
|
||||
DOWNLOAD="https://github.com/OpenRC/openrc/archive/0.44.10/openrc-0.44.10.tar.gz"
|
||||
MD5SUM="9e0cd60b1898a3bb1de662d28d105592"
|
||||
DOWNLOAD="https://github.com/OpenRC/openrc/archive/0.54.2/openrc-0.54.2.tar.gz"
|
||||
MD5SUM="997b6659d68ac1d4cba19b7d3ff528c3"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Aaditya"
|
||||
EMAIL="aaditya_gnulinux@zoho.com"
|
||||
MAINTAINER="Reza Talebi"
|
||||
EMAIL="reza.talebi.73@outlook.com"
|
||||
|
|
Loading…
Reference in a new issue