Browse Source

SysVinit-2.88dsf-5

Tomohiro "Tomo-p" KATO 9 months ago
parent
commit
0b9c0abc11
1 changed files with 34 additions and 13 deletions
  1. 34 13
      S/SysVinit/SysVinit-vl.spec

+ 34 - 13
S/SysVinit/SysVinit-vl.spec

@@ -2,11 +2,15 @@ Summary: Programs which control basic system processes.
 Summary(ja): 基本的なシステムプロセスを制御するプログラム
 Name: SysVinit
 Version: 2.88dsf
-Release: 4%{_dist_release}
+Release: 5%{_dist_release}
+Group: system
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: daisuke
+
 License: GPLv2+
-Group: System Environment/Base
-Source: http://download.savannah.gnu.org/releases/sysvinit/sysvinit-%{version}.tar.bz2
 URL: http://savannah.nongnu.org/projects/sysvinit/
+Source: http://download.savannah.gnu.org/releases/sysvinit/sysvinit-%{version}.tar.bz2
 Patch1: sysvinit-2.78-man.patch
 Patch2: sysvinit-2.86-autofsck.patch
 Patch3: sysvinit-2.86-loginshell.patch
@@ -17,17 +21,13 @@ Patch14: sysvinit-2.88-ipv6.patch
 Patch15: sysvinit-2.88-omit.patch
 Patch16: sysvinit-2.88-wall-maxlines.patch
 Patch17: sysvinit-2.88-wall-broadcast-message.patch
-Buildroot: %{_tmppath}/%{name}-%{version}-root
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
 Requires: pam >= 0.66-5
 Requires: %{name}-tools = %{version}-%{release}
 Requires: filesystem
 Requires: util-linux >= 2.30.1
 
-Vendor: Project Vine
-Distribution: Vine Linux
-Packager: daisuke
-
-
 %description
 The SysVinit package contains a group of processes that control
 the very basic functions of your system. SysVinit includes the init
@@ -41,11 +41,13 @@ SysVinit パッケージには,システムの非常に基本的な機能を
 よって最初に起動されるプログラムである init 等です.init はその後
 システムの起動や,他のプログラムの起動/終了を制御します.
 
+
 %package tools
 Summary: Tools used for process management.
 Summary(ja): プロセス管理に使用するツール
-Group: System Environment/Base
+Group: system
 Requires: util-linux >= 2.30.1
+Requires: procps >= 3.3.17
 
 %description tools
 The sysvinit-tools package contains various tools used for process
@@ -55,6 +57,10 @@ $description -l ja tools
 SysVinit-tools パッケージにはプロセス管理に使用するさまざまなツール
 が含まれています。
 
+
+%debug_package
+
+
 %prep
 %setup -q -n sysvinit-%{version}
 # We use a shell, not sulogin. Other random man fixes go here (such as #192804)
@@ -79,9 +85,15 @@ SysVinit-tools パッケージにはプロセス管理に使用するさまざ
 # Raise limit for broadcast message
 %patch17 -p1 -b .broadcast
 
+# for newer glibc.
+sed -i -e '/stat.h/a #include <sys/sysmacros.h>' src/mountpoint.c
+sed -i -e '/utsname.h/a #include <sys/sysmacros.h>' src/bootlogd.c
+
+
 %build
 make %{?_smp_mflags} CC=%{__cc} CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" LDFLAGS="-lcrypt" -C src
 
+
 %install
 rm -rf $RPM_BUILD_ROOT
 for I in bin sbin %{_bindir} %{_mandir}/man{1,3,5,8} etc var/run dev %{_includedir}; do
@@ -116,26 +128,35 @@ rm -f $RPM_BUILD_ROOT/sbin/sulogin
 rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/utmpdump.*
 rm -f $RPM_BUILD_ROOT/%{_mandir}/man8/sulogin.*
 
+# pidof is part of procps >= 3.3.17
+rm -f $RPM_BUILD_ROOT/sbin/pidof
+rm -f $RPM_BUILD_ROOT%{_mandir}/man8/pidof*
+
 rm -f $RPM_BUILD_ROOT%{_bindir}/*
 rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/*
 
+
 %post
 [ -x /sbin/telinit -a -p /dev/initctl -a -f /proc/1/exe -a -d /proc/1/root ] && /sbin/telinit u
 exit 0
 
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+
 %files tools
 %defattr(-,root,root)
-%doc doc/Changelog COPYRIGHT
-/sbin/pidof
+%license COPYRIGHT
+%doc doc/Changelog
 /sbin/killall5
 %{_mandir}/man8/killall5*
-%{_mandir}/man8/pidof*
 
 
 %changelog
+* Fri Oct 29 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.88dsf-5
+- removed pidof which is part of procps >= 3.3.17.
+
 * Sat Sep 09 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.88dsf-4
 - removed last,lastb,mesg and wall which is part of util-linux = 2.30.