rpms/vmpsd/devel import.log, NONE, 1.1 vmpsd.init, NONE, 1.1 vmpsd.spec, NONE, 1.1 vmpsd.sysconfig, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Colin Coe coec at fedoraproject.org
Thu Sep 10 12:19:35 UTC 2009


Author: coec

Update of /cvs/pkgs/rpms/vmpsd/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22573/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log vmpsd.init vmpsd.spec vmpsd.sysconfig 
Log Message:
Initial commit of vmpsd



--- NEW FILE import.log ---
vmpsd-1_4_01-6:HEAD:vmpsd-1.4.01-6.src.rpm:1252585116


--- NEW FILE vmpsd.init ---
#!/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


--- NEW FILE vmpsd.spec ---
Name:		vmpsd 
Version:	1.4.01
Release:	6%{?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}

%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
* Mon Sep 7 2009 Colin Coe <colin.coe at 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 at 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 at 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 at 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 at gmail.com> - 1.4.01-2
- Tidied spec file and silenced rpmlint output

* Mon Aug 17 2009 Colin Coe <colin.coe at gmail.com> - 1.4.01-1
- Initial Packaging 


--- NEW FILE vmpsd.sysconfig ---
OPTIONS="-f /etc/vmps.db -l 0x700"


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/vmpsd/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	9 Sep 2009 16:20:41 -0000	1.1
+++ .cvsignore	10 Sep 2009 12:19:35 -0000	1.2
@@ -0,0 +1 @@
+vmpsd-1.4.01.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/vmpsd/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	9 Sep 2009 16:20:41 -0000	1.1
+++ sources	10 Sep 2009 12:19:35 -0000	1.2
@@ -0,0 +1 @@
+b95f6390f0a340f4f99d4e8f72201cb4  vmpsd-1.4.01.tar.gz




More information about the fedora-extras-commits mailing list