Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e0c575848b | ||
|
|
68e2c7ab97 | ||
|
|
a97ea9f4f5 | ||
| 35e7d60dc4 | |||
|
|
d81b7c05a7 | ||
|
|
00610fe608 | ||
|
|
428c7c7ec3 |
6 changed files with 1 additions and 191 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -1,4 +0,0 @@
|
||||||
vmpsd-1.4.01.tar.gz
|
|
||||||
/vmpsd-1.4.02.tar.gz
|
|
||||||
/vmpsd-1.4.03.tar.gz
|
|
||||||
/vmpsd-1.4.04.tar.gz
|
|
||||||
1
dead.package
Normal file
1
dead.package
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Retire packages without systemd support, See FESCo ticket 1605
|
||||||
1
sources
1
sources
|
|
@ -1 +0,0 @@
|
||||||
27d8a178c3372b61e74898cec43856b8 vmpsd-1.4.04.tar.gz
|
|
||||||
62
vmpsd.init
62
vmpsd.init
|
|
@ -1,62 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# chkconfig: - 92 8
|
|
||||||
# description: vmpsd is a GPL implementation of Cisco's VMPS
|
|
||||||
# processname: vmpsd
|
|
||||||
# pidfile: /var/run/vmpsd.pid
|
|
||||||
# config: /etc/sysconfig/vmpsd
|
|
||||||
|
|
||||||
# source function library
|
|
||||||
. /etc/init.d/functions
|
|
||||||
|
|
||||||
if test -e /etc/sysconfig/vmpsd ; then
|
|
||||||
. /etc/sysconfig/vmpsd
|
|
||||||
fi
|
|
||||||
|
|
||||||
RETVAL=0
|
|
||||||
|
|
||||||
start() {
|
|
||||||
echo -n $"Starting vmpsd: "
|
|
||||||
|
|
||||||
daemon --user nobody vmpsd $OPTIONS
|
|
||||||
RETVAL=$?
|
|
||||||
echo
|
|
||||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/vmpsd
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
echo -n $"Shutting down vmpsd: "
|
|
||||||
killproc vmpsd
|
|
||||||
RETVAL=$?
|
|
||||||
|
|
||||||
echo
|
|
||||||
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/vmpsd
|
|
||||||
}
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
start
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
stop
|
|
||||||
;;
|
|
||||||
restart|reload)
|
|
||||||
stop
|
|
||||||
start
|
|
||||||
;;
|
|
||||||
condrestart)
|
|
||||||
if [ -f /var/lock/subsys/vmpsd ]; then
|
|
||||||
stop
|
|
||||||
start
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
status)
|
|
||||||
status vmpsd
|
|
||||||
RETVAL=$?
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
|
|
||||||
exit 1
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit $RETVAL
|
|
||||||
123
vmpsd.spec
123
vmpsd.spec
|
|
@ -1,123 +0,0 @@
|
||||||
Name: vmpsd
|
|
||||||
Version: 1.4.04
|
|
||||||
Release: 3%{?dist}
|
|
||||||
Summary: A GPL implementation of Cisco Systems' VMPS
|
|
||||||
|
|
||||||
Group: System Environment/Daemons
|
|
||||||
# Valid license according to http://fedoraproject.org/wiki/Licensing
|
|
||||||
License: GPL+
|
|
||||||
URL: http://vmps.sourceforge.net/
|
|
||||||
Source0: http://downloads.sourceforge.net/vmps/%{name}-%{version}.tar.gz
|
|
||||||
Source1: vmpsd.sysconfig
|
|
||||||
Source2: vmpsd.init
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
Requires(post): chkconfig
|
|
||||||
Requires(preun): chkconfig
|
|
||||||
# This is for /sbin/service
|
|
||||||
Requires(preun): initscripts
|
|
||||||
Requires(postun): initscripts
|
|
||||||
|
|
||||||
%description
|
|
||||||
VMPS (VLAN Management Policy Server) is a way of assigning switch ports to
|
|
||||||
specific VLANs based on MAC address of connecting device. OpenVMPS is a GPL
|
|
||||||
implementation of VMPS.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -qn %{name}-%{version}
|
|
||||||
|
|
||||||
%build
|
|
||||||
%configure
|
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_initrddir}
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_mandir}
|
|
||||||
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
||||||
|
|
||||||
install %{S:1} -p -m 0644 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}
|
|
||||||
install %{S:2} -p $RPM_BUILD_ROOT%{_initrddir}/%{name}
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%post
|
|
||||||
/sbin/chkconfig --add %{name}
|
|
||||||
|
|
||||||
%preun
|
|
||||||
if [ $1 -eq 0 ] ; then
|
|
||||||
/sbin/service %{name} stop > /dev/null 2>&1
|
|
||||||
/sbin/chkconfig --del %{name}
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun
|
|
||||||
if [ "$1" -ge "1" ] ; then
|
|
||||||
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%config(noreplace) %{_sysconfdir}/vlan.db
|
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
|
||||||
%attr(0755,root,root) %{_initrddir}/%{name}
|
|
||||||
%attr(0755,root,root) %{_bindir}/%{name}
|
|
||||||
%doc doc/NetregExtension.txt
|
|
||||||
%doc doc/VQP-spec.txt
|
|
||||||
%doc doc/vlan.db.example
|
|
||||||
%doc COPYING.GPL ChangeLog AUTHORS
|
|
||||||
%{_mandir}/man1/%{name}.1.gz
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.04-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.04-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Apr 11 2012 Colin Coe <colin.coe@gmail.com> - 1.4.04-1
|
|
||||||
- Rebase to latest upstream to resolve BZ754963
|
|
||||||
|
|
||||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.03-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon May 2 2011 Colin Coe <colin.coe@gmail.com> - 1.4.03-1
|
|
||||||
- Rebase to latest upstream to resolve BZ699728
|
|
||||||
|
|
||||||
* Thu Apr 28 2011 Colin Coe <colin.coe@gmail.com> - 1.4.02-1
|
|
||||||
- Rebase to latest upstream
|
|
||||||
|
|
||||||
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.01-7
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Sep 7 2009 Colin Coe <colin.coe@gmail.com> - 1.4.01-6%{?dist}
|
|
||||||
- Remove condrestart from post section as it's now in the postun section
|
|
||||||
- Stop packaging the INSTALL file
|
|
||||||
|
|
||||||
* Sun Sep 6 2009 Colin Coe <colin.coe@gmail.com> - 1.4.01-5
|
|
||||||
- Add condrestart in postun
|
|
||||||
- Add ChangeLog and COPYING.GPL to files section
|
|
||||||
|
|
||||||
* Sat Sep 5 2009 Colin Coe <colin.coe@gmail.com> - 1.4.01-4
|
|
||||||
- Add condrestart into post section
|
|
||||||
- Use macros in files section
|
|
||||||
- Remove '$DESTDIR=$RPM_BUILD_ROOT' from make in build section
|
|
||||||
- Do parallel make
|
|
||||||
- Don't start service by default
|
|
||||||
- Add Requires for post and preun
|
|
||||||
- Correct the Source0 URL
|
|
||||||
- Move clean to after install
|
|
||||||
|
|
||||||
* Tue Sep 1 2009 Colin Coe <colin.coe@gmail.com> - 1.4.01-3
|
|
||||||
- Split /etc/sysconfig/vmpsd and /etc/rc.d/init.d/vmpsd out of the spec file
|
|
||||||
- Corrected license from GPLv2 to GPL+
|
|
||||||
- Ensured that the make is done in the build section
|
|
||||||
|
|
||||||
* Thu Aug 20 2009 Colin Coe <colin.coe@gmail.com> - 1.4.01-2
|
|
||||||
- Tidied spec file and silenced rpmlint output
|
|
||||||
|
|
||||||
* Mon Aug 17 2009 Colin Coe <colin.coe@gmail.com> - 1.4.01-1
|
|
||||||
- Initial Packaging
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
OPTIONS="-f /etc/vmps.db -l 0x700"
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue