]> git.puffer.fish Git - mirror/frr.git/commitdiff
distro/redhat/rpm: remove with_ipv6, package pimd binary, remove pam stack
authorPaul Jakma <paul.jakma@hpe.com>
Thu, 11 Feb 2016 13:54:23 +0000 (13:54 +0000)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 14 Jun 2016 19:14:11 +0000 (15:14 -0400)
* redhat/quagga.spec.in: remove with_ipv6, it should just be the norm now.
  The actual pimd binary wasn't being packaged, fix.
  Remove deprecated pam.stack support.

* redhat/quagga.pam.stack: ancient, nuke.
* Makefile.am: ditto

(cherry picked from commit 283d5d7f2fa12c3d33dc17962154665a9993b2c5)

redhat/Makefile.am
redhat/quagga.pam.stack [deleted file]
redhat/quagga.spec.in

index 9612e91484dba4d679c05db72a66ed985aa3089b..3ec1fb73ac5ba7db614c236bdea226389c4fc9a1 100644 (file)
@@ -1,6 +1,6 @@
 
 EXTRA_DIST = bgpd.init bgpd.service isisd.init \
        isisd.service ospf6d.init ospf6d.service ospfd.init ospfd.service \
-       quagga.logrotate quagga.pam quagga.pam.stack quagga.spec \
+       quagga.logrotate quagga.pam quagga.spec \
        quagga.sysconfig ripd.init ripd.service ripngd.init ripngd.service \
        watchquagga.init zebra.init zebra.service
diff --git a/redhat/quagga.pam.stack b/redhat/quagga.pam.stack
deleted file mode 100644 (file)
index 8ddc2bb..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#%PAM-1.0
-#
-
-##### if running quagga as root:
-# Only allow root (and possibly wheel) to use this because enable access
-# is unrestricted.
-auth       sufficient   /lib/security/$ISA/pam_rootok.so
-
-# Uncomment the following line to implicitly trust users in the "wheel" group.
-#auth       sufficient   /lib/security/$ISA/pam_wheel.so trust use_uid
-# Uncomment the following line to require a user to be in the "wheel" group.
-#auth       required     /lib/security/$ISA/pam_wheel.so use_uid
-###########################################################
-
-# If using quagga privileges and with a seperate group for vty access, then
-# access can be controlled via the vty access group, and pam can simply
-# check for valid user/password, eg:
-#
-# only allow local users.
-#auth       required     /lib/security/$ISA/pam_securetty.so
-#auth       required     /lib/security/$ISA/pam_stack.so service=system-auth
-#auth       required     /lib/security/$ISA/pam_nologin.so
-#account    required     /lib/security/$ISA/pam_stack.so service=system-auth
-#password   required     /lib/security/$ISA/pam_stack.so service=system-auth
-#session    required     /lib/security/$ISA/pam_stack.so service=system-auth
-#session    optional     /lib/security/$ISA/pam_console.so
index a49f48096ac80001a1ff6e23cb8f0473fc7b2e95..746922a03a4ca42c3a8b061fd6ca791e151d2efa 100644 (file)
@@ -3,6 +3,9 @@
 # Some can be overriden on rpmbuild commandline with:
 # rpmbuild --define 'variable value'
 #
+# E.g. rpmbuild --define 'release_rev 02' may be useful if building
+# rpms again and again on the same day, so the newer rpms can be installed.
+# bumping the number each time.
 
 ####################### Quagga configure options #########################
 # with-feature options
@@ -14,7 +17,6 @@
 %{!?with_tcp_zebra:    %define with_tcp_zebra  0 }
 %{!?with_vtysh:                %define with_vtysh      1 }
 %{!?with_pam:          %define with_pam        1 }
-%{!?with_ipv6:         %define with_ipv6       1 }
 %{!?with_ospfclient:   %define with_ospfclient 1 }
 %{!?with_ospfapi:      %define with_ospfapi    1 }
 %{!?with_irdp:         %define with_irdp       1 }
 # FC4 and 5 split texi2html out of tetex package.
 %define quagga_buildreqs %{expand:%{quagga_buildreqs}} texi2html
 
-# pam_stack was deprecated in FC5
-# default to pam_stack, default should be changed later.
-%if "%dist" == "fc4" || "%dist" == "fc3"
-%define        quagga_pam_source quagga.pam.stack
-%else
-%define        quagga_pam_source quagga.pam
-%endif
-
 # man page probably needs groff for groff_ms macros
 %define  quagga_buildreqs %{expand:%{quagga_buildreqs}} groff
 
 %{!?quagga_gid:                %define         quagga_gid      92 }
 %define                daemon_list     zebra ripd ospfd bgpd
 
-%if %{with_ipv6}
 %define                daemonv6_list   ripngd ospf6d
-%else
-%define                daemonv6_list   ""
-%endif
 
 %if %{with_isisd}
 %define                daemon_other    isisd
@@ -161,9 +151,6 @@ developing OSPF-API and quagga applications.
 %if !%{with_shared}
        --disable-shared \
 %endif
-%if %{with_ipv6}
-       --enable-ipv6 \
-%endif
 %if %{with_snmp}
        --enable-snmp \
 %endif
@@ -247,7 +234,7 @@ for daemon in %{all_daemons} ; do
                        $RPM_BUILD_ROOT/etc/rc.d/init.d/${daemon}
        fi
 done
-install -m644 %{zeb_rh_src}/%{quagga_pam_source} \
+install -m644 %{zeb_rh_src}/quagga.pam \
        $RPM_BUILD_ROOT/etc/pam.d/quagga
 install -m644 %{zeb_rh_src}/quagga.logrotate \
        $RPM_BUILD_ROOT/etc/logrotate.d/quagga
@@ -291,14 +278,10 @@ zebra_spec_add_service ()
 zebra_spec_add_service zebrasrv 2600/tcp "zebra service"
 zebra_spec_add_service zebra    2601/tcp "zebra vty"
 zebra_spec_add_service ripd     2602/tcp "RIPd vty"
-%if %{with_ipv6}
 zebra_spec_add_service ripngd   2603/tcp "RIPngd vty"
-%endif
 zebra_spec_add_service ospfd    2604/tcp "OSPFd vty"
 zebra_spec_add_service bgpd     2605/tcp "BGPd vty"
-%if %{with_ipv6}
 zebra_spec_add_service ospf6d   2606/tcp "OSPF6d vty"
-%endif
 %if %{with_ospfapi}
 zebra_spec_add_service ospfapi  2607/tcp "OSPF-API"
 %endif
@@ -405,9 +388,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_sbindir}/ripd
 %{_sbindir}/bgpd
 %{_sbindir}/watchquagga
-%if %{with_ipv6}
 %{_sbindir}/ripngd
 %{_sbindir}/ospf6d
+%if %{with_pimd}
+%{_sbindir}/pimd
 %endif
 %if %{with_isisd}
 %{_sbindir}/isisd
@@ -448,6 +432,12 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Fri Sep 4 2015 Paul Jakma <paul@jakma.org> - %{version}
+- package the pimd binary
+- remove with_ipv6 conditionals, always build v6
+- Fix UTF-8 char in spec changelog
+- remove quagga.pam.stack, long deprecated.
+
 * Fri Sep 4 2015 Paul Jakma <paul@jakma.org> - %{version}
 - buildreq updates
 - add a default define for with_pimd
@@ -584,7 +574,7 @@ rm -rf $RPM_BUILD_ROOT
 * Thu Aug 09 2001 Elliot Lee <sopwith@redhat.com> 0.91a-6
 - Fix bug #51336
 
-* Wed Aug  1 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.91a-5
+* Wed Aug  1 2001 Trond Eivind Glomsrød  <teg@redhat.com> 0.91a-5
 - Use generic initscript strings instead of initscript specific
   ( "Starting foo: " -> "Starting $prog:" )