diff --git a/README.md b/README.md deleted file mode 100644 index 7342728d557c602f51c6d278bba9f3dd9faaf356..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,11 +0,0 @@ -Anolis OS -======================================= -# 代码仓库说明 -## 分支说明 ->进行代码开发工作时,请注意选择当前版本对应的分支 -* aX分支为对应大版本的主分支,如a8分支对应当前最新版本 -* aX.Y分支为对应小版本的维护分支,如a8.2分支对应8.2版本 -## 开发流程 -1. 首先fork目标分支到自己的namespace -2. 在自己的fork分支上做出修改 -3. 向对应的仓库中提交merge request,源分支为fork分支 diff --git a/chkconfig-1.20.tar.gz b/chkconfig-1.20.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..965e8be7419a528890104ca41488e7a24e85e1c8 Binary files /dev/null and b/chkconfig-1.20.tar.gz differ diff --git a/chkconfig.spec b/chkconfig.spec new file mode 100644 index 0000000000000000000000000000000000000000..8f59fb0827c6f885f970e1b960965cbbd1e1b668 --- /dev/null +++ b/chkconfig.spec @@ -0,0 +1,91 @@ +Name: chkconfig +Version: 1.20 +Release: 1%{?dist} +Summary: A system tool for maintaining the /etc/rc*.d hierarchy + +License: GPLv2 +URL: https://github.com/fedora-sysv/chkconfig +Source0: https://github.com/fedora-sysv/chkconfig/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: newt-devel gettext popt-devel libselinux-devel beakerlib gcc systemd-devel make + +%description +Chkconfig is a basic system utility. It updates and queries runlevel +information for system services. Chkconfig manipulates the numerous +symbolic links in /etc/rc.d, to relieve system administrators of some +of the drudgery of manually editing the symbolic links. + +%package -n ntsysv +Summary: A tool to set the stop/start of system services in a runlevel +Requires: chkconfig = %{version}-%{release} + +%description -n ntsysv +Ntsysv provides a simple interface for setting which system services +are started or stopped in various runlevels (instead of directly +manipulating the numerous symbolic links in /etc/rc.d). Unless you +specify a runlevel or runlevels on the command line (see the man +page), ntsysv configures the current runlevel (5 if you're using X). + +%package -n alternatives +Summary: A tool to maintain symbolic links determining default commands + +%description -n alternatives +alternatives creates, removes, maintains and displays information about the +symbolic links comprising the alternatives system. It is possible for several +programs fulfilling the same or similar functions to be installed on a single +system at the same time. + +%prep +%autosetup + + +%build +%make_build + + +%install +rm -rf $RPM_BUILD_ROOT +%make_install MANDIR=%{_mandir} SBINDIR=%{_sbindir} + +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d +ln -s rc.d/init.d $RPM_BUILD_ROOT/etc/init.d +for n in 0 1 2 3 4 5 6; do + mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc${n}.d + ln -s rc.d/rc${n}.d $RPM_BUILD_ROOT/etc/rc${n}.d +done +mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d + +%find_lang %{name} + +%files -f %{name}.lang +%defattr(-,root,root) +%{!?_licensedir:%global license %%doc} +%license COPYING +%{_sbindir}/chkconfig +%{_sysconfdir}/chkconfig.d +%{_sysconfdir}/init.d +%{_sysconfdir}/rc.d +%{_sysconfdir}/rc.d/init.d +%{_sysconfdir}/rc[0-6].d +%{_sysconfdir}/rc.d/rc[0-6].d +%{_mandir}/*/chkconfig* +%{_prefix}/lib/systemd/systemd-sysv-install + +%files -n ntsysv +%defattr(-,root,root) +%{_sbindir}/ntsysv +%{_mandir}/*/ntsysv.8* + +%files -n alternatives +%license COPYING +%dir /etc/alternatives +%{_sbindir}/update-alternatives +%{_sbindir}/alternatives +%{_mandir}/*/update-alternatives* +%{_mandir}/*/alternatives* +%dir /var/lib/alternatives + + +%changelog +* Thu Mar 10 2022 forrest_ly - 1.20-1 +- Init for Anolis OS 23