Summary: Scripts to bring up network interfaces and legacy utilities Name: initscripts Version: 9.70 License: GPLv2 Group: System Environment/Base Release: 2%{?dist} URL: https://github.com/fedora-sysv/initscripts Source0: https://github.com/fedora-sysv/initscripts/archive/%{name}-%{version}.tar.gz %define sha1 initscripts=6e2ba0946fa2f175f576614d9374ad00266aec66 Patch0: service.patch Patch1: fix_return_code_during_set_error.patch Vendor: VMware, Inc. Distribution: Photon Requires: systemd Requires: iproute2 BuildRequires: glib-devel BuildRequires: python2 BuildRequires: python2-libs BuildRequires: popt-devel BuildRequires: gettext BuildRequires: pkg-config BuildRequires: systemd Provides: /sbin/service %description This package contains the script that activates and deactivates most network interfaces, some utilities, and other legacy files. %package -n debugmode Summary: Scripts for running in debug mode Requires: initscripts Group: System Environment/Base %description -n debugmode The debugmode package contains some basic scripts that are used to run the system in a debug mode. Currently, this consists of various memory checking code. %package -n initnetworkscripts Summary: Binaries of init network %description -n initnetworkscripts Binaries of init network %prep %setup -q %patch0 -p1 %patch1 -p1 %build make %install make ROOT=%{buildroot} SUPERUSER=`id -un` SUPERGROUP=`id -gn` mandir=%{_mandir} install %find_lang %{name} %ifnarch s390 s390x rm -f \ %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/ifup-ctc \ %else rm -f \ %{buildroot}%{_sysconfdir}/sysconfig/init.s390 %endif rm -f %{buildroot}%{_sysconfdir}/rc.d/rc.local %{buildroot}%{_sysconfdir}/rc.local rm -f %{buildroot}%{_sbindir}/ifdown rm -f %{buildroot}%{_sbindir}/ifup touch %{buildroot}%{_sysconfdir}/rc.d/rc.local chmod 755 %{buildroot}%{_sysconfdir}/rc.d/rc.local ln -sfv rc.d/init.d %{buildroot}/etc/init.d rm -rf %{buildroot}%{_prefix}/lib/systemd %files -f %{name}.lang %defattr(-,root,root) %dir %{_sysconfdir}/sysconfig/network-scripts %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/adjtime %config(noreplace) %{_sysconfdir}/sysconfig/init %config(noreplace) %{_sysconfdir}/sysconfig/netconsole %config(noreplace) %{_sysconfdir}/sysconfig/readonly-root %{_sysconfdir}/sysconfig/network-scripts/ifdown %{_sysconfdir}/sysconfig/network-scripts/ifdown-post %{_sysconfdir}/sysconfig/network-scripts/ifup #%dir %{_sysconfdir}/sysconfig/console %dir %{_sysconfdir}/sysconfig/modules %{_sysconfdir}/sysconfig/network-scripts/network-functions %{_sysconfdir}/sysconfig/network-scripts/network-functions-ipv6 %{_sysconfdir}/sysconfig/network-scripts/init.ipv6-global %config(noreplace) %{_sysconfdir}/sysconfig/network-scripts/ifcfg-lo %{_sysconfdir}/sysconfig/network-scripts/ifup-post %{_sysconfdir}/sysconfig/network-scripts/ifup-routes %{_sysconfdir}/sysconfig/network-scripts/ifdown-routes %{_sysconfdir}/sysconfig/network-scripts/ifup-plip %{_sysconfdir}/sysconfig/network-scripts/ifup-plusb %{_sysconfdir}/sysconfig/network-scripts/ifup-bnep %{_sysconfdir}/sysconfig/network-scripts/ifdown-bnep %{_sysconfdir}/sysconfig/network-scripts/ifup-eth %{_sysconfdir}/sysconfig/network-scripts/ifdown-eth %{_sysconfdir}/sysconfig/network-scripts/ifup-ipv6 %{_sysconfdir}/sysconfig/network-scripts/ifdown-ipv6 %{_sysconfdir}/sysconfig/network-scripts/ifup-sit %{_sysconfdir}/sysconfig/network-scripts/ifdown-sit %{_sysconfdir}/sysconfig/network-scripts/ifup-tunnel %{_sysconfdir}/sysconfig/network-scripts/ifdown-tunnel %{_sysconfdir}/sysconfig/network-scripts/ifup-aliases %{_sysconfdir}/sysconfig/network-scripts/ifup-ippp %{_sysconfdir}/sysconfig/network-scripts/ifdown-ippp %{_sysconfdir}/sysconfig/network-scripts/ifup-wireless %{_sysconfdir}/sysconfig/network-scripts/ifup-isdn %{_sysconfdir}/sysconfig/network-scripts/ifdown-isdn %ifarch s390 s390x %{_sysconfdir}/sysconfig/network-scripts/ifup-ctc %endif %config(noreplace) %{_sysconfdir}/networks %{_sysconfdir}/rwtab %dir %{_sysconfdir}/rwtab.d %{_sysconfdir}/statetab %dir %{_sysconfdir}/statetab.d #%{_prefix}/lib/systemd/fedora-* #%{_prefix}/lib/systemd/system/* %dir %{_sysconfdir}/rc.d %dir %{_sysconfdir}/rc.d/rc[0-9].d %{_sysconfdir}/rc[0-9].d %dir %{_sysconfdir}/rc.d/init.d %{_sysconfdir}/rc.d/init.d/* %ghost %verify(not md5 size mtime) %config(noreplace,missingok) %{_sysconfdir}/rc.d/rc.local %{_prefix}/lib/sysctl.d/00-system.conf %exclude %{_sysconfdir}/profile.d/debug* %{_sysconfdir}/profile.d/* %{_sbindir}/sys-unconfig %{_bindir}/usleep %attr(4755,root,root) %{_sbindir}/usernetctl %{_sbindir}/consoletype %{_sbindir}/genhostid %{_sbindir}/sushell %attr(2755,root,root) %{_sbindir}/netreport #%{_udevrulesdir}/* %{_prefix}/lib/udev/rename_device /usr/lib/udev/rules.d/60-net.rules %{_sbindir}/service %{_mandir}/man*/* %dir %attr(775,root,root) /var/run/netreport %dir %{_sysconfdir}/NetworkManager %dir %{_sysconfdir}/NetworkManager/dispatcher.d %{_sysconfdir}/NetworkManager/dispatcher.d/00-netreport %doc sysconfig.txt sysvinitfiles static-routes-ipv6 ipv6-tunnel.howto ipv6-6to4.howto changes.ipv6 %doc examples %{!?_licensedir:%global license %%doc} %license COPYING %{_sharedstatedir}/stateless %{_tmpfilesdir}/initscripts.conf %dir %{_libexecdir}/initscripts %dir %{_libexecdir}/initscripts/legacy-actions /etc/init.d %files -n debugmode %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/debug %{_sysconfdir}/profile.d/debug* %changelog * Tue Dec 26 2017 Divya Thaluru 9.70-2 - Fixed return code in /etc/init.d/functions bash script * Mon Apr 3 2017 Dheeraj Shetty 9.70-1 - Updated to version 9.70 * Tue May 24 2016 Priyesh Padmavilasom 9.65-2 - GA - Bump release of all rpms * Fri Feb 12 2016 Divya Thaluru 9.65-2 - Fixing service script to start services using systemctl by default * Tue Jan 26 2016 Xiaolin Li 9.65-1 - Updated to version 9.65 * Mon Jul 20 2015 Divya Thaluru 9.63-1 - Got Spec file from source tar ball and modified it to be compatible to build in Photon * Mon May 18 2015 Lukáš Nykrýn - 9.63-1 - remove ipcalc, it has its own package now - network: tell NM to reload its configuration during start - bonding: warn if the ifup for slave device failed - sysctl.conf: drop SHMALL and SHMMAX, they have sane default values in kernel - ifup: don't call NM for loopback - clarify daemon() usage message - rename_device: allow non-channel nics for s390x machines - ifup: add missing quotes * Thu Apr 09 2015 Lukáš Nykrýn - 9.62-1 - network-functions: fix change_resolv_conf after grep update - ifup-aliases: don't return with error when arping fails - init.d/functions: rc.debug option to debug initscripts - ifup-aliases: inherit ARPCHECK from parent device - network: report that we can't shut down network for root on netfs - ifdown-eth: use scope host for lo * Thu Jan 22 2015 Lukáš Nykrýn - 9.61-1 - specfile cleanup - ifup-ipv6: set accept_ra to 2 when IPV6FORWARDING=yes and IPV6_AUTOCONF=yes - ifup-post: check resolve.conf also with DNS2 - ifup-aliases: do not fail when only ipv6 addr is specified - fedora-import-state.service: run a little bit later - fedora-readonly: Updates for systemd random-seed handling - network-functions: is_available_wait should wait even in the case that is_available returns 2 - ifdown-post: remove resolv.conf only in specific cases - network-functions: fix check in install_bonding_driver * Tue Dec 16 2014 Lukáš Nykrýn - 9.60-1 - improve check for bond master in install bonding driver - network-functions: reeplace iwconfig with iw - ifup: fix typo - ifdown-ipv6: reset addrgenmode to eui64 for device * Wed Nov 12 2014 Lukáš Nykrýn - 9.59-1 - adjust LINKDELAY when STP is on * Thu Nov 06 2014 Lukáš Nykrýn - 9.58-1 - ifup,vlan: fix typo - doc: be consistent and use BOOTPROTO=none * Tue Oct 07 2014 Zbigniew Jędrzejewski-Szmek - 9.57 - Remove /etc/inittab, /etc/crypttab, utmp, wtmp, btmp * Tue Oct 07 2014 Lukáš Nykrýn - 9.56-1 - network_function: return immediately when device is pres ent - add configurable DEVTIMEOUT - fedora-import-state: do not clobber / - network-functions: grep->fgrep in bonding masters matchi ng - man: update sys-unconfig.8 - rename_devices: comments need to have a blank before them - add example ifcfg files - network-functions: improve bonding_masters grep - ifup: if we were unable to determine DEVICE always call nmcli up - ifup-tunnel: call ifup-ipv6 in the end - ifup: also set multicast_snooping after the bridge is up - network-functions: ETHTOOL_DELAY introduction patch - use pie and relro by default - custom naming for VLAN devices - vi.po: fix parentheses - ifup-wireless: add support for wowlan - ifup-wireless: add support for wowlan (second part) - ifup-aliases: do not bring up ipv6 for range files - sys-unconfig: use poweroff instead of halt - ifup-aliases: improve duplicate address detection - network-functions: handle BONDING_OPTS better - network: tell nm to wake the slaves * Tue Jul 22 2014 Lukáš Nykrýn - 9.55-1 - fix license handling - ipcalc: -c allow netmask - ipcalc: parse prefix more safely - inittab: fix path and mention set-default - don't require /sbin/sysctl - init.d/functions: check parent dir of pid file for accessibility - ifup-eth: some options for bridge can be applied after the bridge is up - remove ppp from translation * Tue Apr 15 2014 Lukáš Nykrýn - 9.54-1 - move ppp support to ppp package - remove fedora-configure - network: detect if / is on netfs - is_nm_handling: fix RE - bonding: match whole name of interface - network: add support for team devices - ifup-wireless: fix syntax error - fedora-readonly: fix prefix detection * Wed Mar 26 2014 Lukáš Nykrýn - 9.53-1 - bridging: add possibility to set prio and ageing - ifup: add possibility to specify value for -w parameter of arping - network: try to not compete with NM during boot - fedora-domainname: DefaultDependencies=no - service: add condrestart to allowed commands - update ifup/ifdown NetworkManager interaction once more(#1036701, #1061810) - network: modify ifup-wireless so it doesn't call exit - set shmmax and shmall defaults to match rhel6 values (#1056547) - update ifup/ifdown NetworkManager interaction (#1036701, #1061810) - service: fix action matching - remove ifup-ipx from spec - Delete IPX support. - remove dependency on sysvinit-tools * Tue Jan 14 2014 Lukáš Nykrýn - 9.52-1 - require procps-ng * Tue Jan 14 2014 Lukáš Nykrýn 9.51-1 - readonly-root: bind-mount only necessary subset of entries in rwtab - readonly-root: Add /var/log/audit/audit.log to rwtab - readonly-root: restore selinux context after bind mount - rename_device: remove comments and trailing whitespaces - service: suggest using systemctl if unknown action is used - ifup-eth: fix typo in error message - use iw instead of iwconfig and friends - update functions who call nmcli - ifdown: fix typo in nmcli call * Tue Sep 03 2013 Lukas Nykryn - 9.50-1 - ipcalc: support RFC3021 (#997271) - symlink /etc/sysctl.conf -> /etc/sysctl.d/ - man: only action specified in LSB are redirected to systemd - service: filter actions that are not supported by systemctl in service (#947823) - install_bonding_driver: drop check for existing device (#991335) - consider IPV6INIT undefined as YES - don't care about network filesystems * Fri Jul 12 2013 Lukáš Nykrýn - 9.48-1 - man: add systemd man pages to service.8 "see also" section - add possibility to set domainname through /etc/sysconfig/network - rename_device: don't wait for lock with lower permissions - 256term.csh: remove quotes around variable (#979796) - drop useless variables from /etc/sysconfig/init - readonly-root: rpcidmapd restart is not needed anymore - ifup-eth: print error only if arping is really called (#974603) - readonly-root: Add /var/lib/samba to rwtab * Fri May 31 2013 Lukáš Nykrýn - 9.47-1 - network-functions: to determine state of nscd check socket not lock (#960779) - sysconfig.txt advised saslauthd -a instad of -v - update translations from transifex - drop translation for other initscripts - tweak ifup/ifdown usage and man page (#961917) - ctrl-alt-delete.target is provided by systemd package - remove some defaults from arch specific sysctl.conf - readonly-root: remount rpc_pipefs if readonly-root is used - service: mention legacy actions and systemctl redirection in man page * Fri Apr 12 2013 Lukáš Nykrýn - 9.46-1 - add /var/lib/NetworkManager - add ipip6 tunneling support (#928232, raorn@raorn.name) - bonding: set master up before slaves - set net.ipv6.conf.SYSCTLDEVICE.autoconf in ifup-ipv6 - ifdown: don't call nmcli on interface that is alread down - remove some defaults from sysctl.conf (move to systemd) - call flush addresses with scope global - service: action should not be empty when calling legacy-actions (#947817) - ifup-eth: ignore arping errors (#928379) - replace tunctl with ip tuntap (#947875) - reload sysctl settings for vlans on ifup - try dhcpv6 after v4 failed (#846618) * Fri Mar 15 2013 Lukáš Nykrýn - 9.45-2 - provides /sbin/service * Fri Mar 15 2013 Lukáš Nykrýn - 9.45-1 - turn on symlink protections in sysctl (#922030) - add systemd-random-seed.service to Before= in fedora-readonly.service (#888615) - mention rule6 files in sysconfig.txt - skip nmcli for wireless device (#863707) - remove config-noreplace from /etc/inittab (#627474) - remount-rootfs.service got renamed to systemd-remount-fs.service - compile netreport and usernetctl with full RELRO and PIE (#853178) - move stuff directly to /usr (#905492) - Remove NETWORKING_IPV6 from sysconfig.txt (#918622) - fix greps to correctly handle comments and quotation * Wed Feb 20 2013 Lukáš Nykrýn - 9.44-1 - limit udev rule for network renaming (#907365, mschmidt@redhat.com) - fix path for arpwatch, seems to be in /var/lib on Fedora 18 - fix the path for lvm cache, there is no file /etc/lvm/.cache ( but there is one /etc/lvm/cache ) - fix path for dhcpd, is /var/lib/dhcpd since 2005 ( see 31cdb58df77 on the dhcp package git ) - fix the patch for apache modules in rwtab, that are now in /var/cache/httpd - remove no longer used directory ( at least in Fedora ), hald is deprecated, /var/tux cannot be found and xend seems to use a subdirectory of /var/lib/xen - correct the path for puppet directory in /etc/rwtab, now use /var/lib/puppet by default - allow passing -F from /.autorelabel to fixfiles when relabeling system (#904279) - correctly detect Open vSwitch device types - clear DEVICE and TYPE variables before every iteration (#902463) - sets BONDING_OPTS before interface is brougth up - check an IP address for existence in ifup-alias (#852005) - sync FSF address with GPL 2 text. - fix rpmlint's spaces vs tabs warning. - fix bogus %changelog dates. - build with $RPM_LD_FLAGS. - use -sf, not -s. (#901827) - add /usr/libexec/initscripts to file list (#894475) - rename term256 to 256term (glob sort) (#849429) - readd missing shebang. (#885821) - migrate even further away from /etc/sysconfig/network for hostname, and /etc/sysconfig/i18n. * Fri Dec 7 2012 Bill Nottingham - 9.43-1 - 60-net.rules: explicitly set the interface name (#870859) - ifup-eth: set firewall zone before ifup-ipv6 for DHCPv6 (#802415) - migrate to /etc/locale.conf, /etc/vconsole.conf (#881923) - rename_device: fix bogus locking - fix wireless device detection for kernel 3.6 (#875328) - drop fedora-storage-init, fedora-wait-storage () * Wed Oct 31 2012 Bill Nottingham - 9.42-1 - Halloween release! - add a default /etc/sysctl.conf that describes how to change values, and where the defaults now live. (#760254) - translation updates - fedora-autorelabel: don't pass -F to fixfiles (#863662, ) - fix calling of firewall-cmd in ifup-post/ifdown-post () * Fri Oct 5 2012 Bill Nottingham - 9.41-1 - debugmode: MALLOC_CHECK_ is not thread safe. Don't enable it by default (#853175) - Add support for 256 color terminals () - ifdown-eth: be less strict about VLAN name (#505314, ) - drop prefdm - ifup-eth: allow duplicate address detection to be disabled () - process rule6-* for sit devices (#840009, ) * Mon Aug 6 2012 Bill Nottingham - 9.40-1 - drop support for booting non-systemd systems - drop legacy commands: getkey, fstab-decode, testd * Fri Jun 29 2012 Bill Nottingham - 9.39-1 - assorted documentation cleanups - typo, spelling, licenese clean up () - service: add support for legacy custom actions packaged in /usr/libexec/initscripts/legacy-actions/