Changes to get into Fedora Extras

Really would like to rename to devallocator. Fedora extras frowns on packages with "_" in them.

Dan
--- devallocator/conf/dev_allocation.rhat	2006-02-02 20:21:55.000000000 -0500
+++ devallocator/conf/dev_allocation	2006-05-17 08:09:00.000000000 -0400
@@ -1,45 +0,0 @@
-#!/bin/sh
-
-#
-# Copyright 2005 Trusted Computer Solutions, Inc
-# Copyright (C) 2005 Hewlett-Packard Development Company, L.P.
-#
-# Name:		dev_allocation - setup user allocatable devices
-#
-
-# Tags
-# chkconfig: 2345 85 21
-# description:   perform actions needed for user allocatable devices 
-
-# source function library
-. /etc/rc.d/init.d/functions
-
-RETVAL=0
-
-start() {
-	#
-	# set configured devices into the unallocated state
-	#
-	DEVS=`/usr/bin/dev_allocator -l | /bin/sed 1d | /bin/awk '{print $1}'`
-
-	for DEV in ${DEVS}
-	do
-		/usr/bin/dev_allocator -u ${DEV}
-	done
-
-	touch /var/lock/subsys/dev_allocation
-}
-
-case "$1" in
-  start)
-	start
-	;;
-  stop)
-	rm -f /var/lock/subsys/dev_allocation
-	;;
-  *)
-	echo $"Usage: $0 {start|stop}"
-	exit 1
-esac
-
-exit $RETVAL
--- devallocator/conf/Makefile.rhat	2006-02-13 18:44:38.000000000 -0500
+++ devallocator/conf/Makefile	2006-05-17 08:07:59.000000000 -0400
@@ -6,7 +6,7 @@
 	mkdir -p ${ROOT}/etc/rc.d/init.d
 	mkdir -p ${ROOT}/usr/share/devallocation/classes
 	mkdir -p ${ROOT}/etc/devallocation
-	cp -f ../conf/dev_allocation ${ROOT}/etc/rc.d/init.d/
-	cp -f ../conf/classes/* ${ROOT}/usr/share/devallocation/classes
-	cp -f ../conf/supported_device_classes.conf ${ROOT}/etc/devallocation/
+	install -m 755 ../conf/devallocator ${ROOT}/etc/rc.d/init.d/
+	install -m 755 ../conf/classes/* ${ROOT}/usr/share/devallocation/classes
+	install -m 644 ../conf/supported_device_classes.conf ${ROOT}/etc/devallocation/
 
--- devallocator/conf/devallocator.rhat	2006-05-17 08:08:12.000000000 -0400
+++ devallocator/conf/devallocator	2006-05-17 08:07:25.000000000 -0400
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+#
+# Copyright 2005 Trusted Computer Solutions, Inc
+# Copyright (C) 2005 Hewlett-Packard Development Company, L.P.
+#
+# Name:		devallocator - setup user allocatable devices
+#
+
+# Tags
+# chkconfig: 2345 85 21
+# description:   perform actions needed for user allocatable devices 
+
+# source function library
+. /etc/rc.d/init.d/functions
+
+RETVAL=0
+
+stop() {
+	rm -f /var/lock/subsys/devallocator
+}
+
+start() {
+	#
+	# set configured devices into the unallocated state
+	#
+	DEVS=`/usr/bin/dev_allocator -l | /bin/sed 1d | /bin/awk '{print $1}'`
+
+	for DEV in ${DEVS}
+	do
+		/usr/bin/dev_allocator -u ${DEV}
+	done
+
+	touch /var/lock/subsys/devallocator
+}
+
+case "$1" in
+  restart)
+	stop
+	start
+	;;
+
+  start)
+	start
+	;;
+
+  status)
+	if [ -f /var/lock/subsys/devallocator ]; then
+	    echo $"$0 started
+"
+	else
+	    echo $"$0 stopped"
+	fi
+	;;
+
+  stop)
+	stop
+	;;
+  *)
+	echo $"Usage: $0 {start|stop}"
+	exit 1
+esac
+
+exit $RETVAL
--- devallocator/devallocator.spec.rhat	2006-05-17 08:15:07.000000000 -0400
+++ devallocator/devallocator.spec	2006-05-17 08:15:02.000000000 -0400
@@ -0,0 +1,88 @@
+%define devallocver 0.5-4
+Summary: MLS Utilities
+Name: devallocator
+Version: 0.5.4
+Release: 1
+License: GPL
+Group: System Environment/Base
+Source: http://prdownloads.sourceforge.net/devallocator/dev_allocator-%{devallocver}.tgz
+Patch: devallocator-rhat.patch
+URL: http://www.TrustedCS.com
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires(pre): /sbin/chkconfig
+Requires(post):/sbin/chkconfig
+BuildRequires: libxml2-devel libselinux-devel audit-libs-devel
+
+%description
+TCS application to manage the allocation and unallocation of devices.
+The TCS device allocation library provides an interface for
+applications to utilize the Device Allocation services.
+
+%package devel
+Summary: TCS Device Allocation API
+Group: Development/Libraries
+Requires: %{name}-libs = %{version}-%{release}
+Requires: devallocator = %{version}-%{release} 
+
+%description devel
+The TCS Device Allocation API provides an interface for
+applications to utilize the Device Allocation services.
+
+%prep
+%setup -q -n devallocator
+%patch -p1 -b .rhat
+
+%build
+make
+
+%install
+rm -rf %{buildroot}
+make ROOT="%{buildroot}" install
+
+%clean
+rm -rf %{buildroot}
+
+%preun
+if [ "$1" = "0" ]; then
+   /sbin/chkconfig --del devallocator
+fi
+
+%post
+/sbin/ldconfig
+/sbin/chkconfig --add devallocator
+
+%postun -p /sbin/ldconfig
+
+%files devel
+%defattr(-,root,root)
+%{_libdir}/libdevallocation.so
+%{_libdir}/libdevallocation.a
+%{_includedir}/selinux/*.h
+
+%files
+%doc conf/dev_allocator.conf
+%doc ChangeLog 
+%defattr(-,root,root)
+%attr(4755,root,root) %{_bindir}/dev_allocator
+%{_sbindir}/dev_allocator_config
+/etc/rc.d/init.d/devallocator
+%dir /etc/devallocation
+%config(noreplace) /etc/devallocation/supported_device_classes.conf
+/%{_libdir}/libdevallocation.so.*
+%dir /%{_libdir}/devallocation
+/%{_libdir}/devallocation/*
+%dir /usr/share/devallocation
+/usr/share/devallocation/*
+%doc /usr/share/man/man1/*.1.gz
+
+%changelog
+* Mon May 15 2006 Dan Walsh <[EMAIL PROTECTED]> 0.5.4-1
+- Fixes to spec file
+* Fri Oct 14 2005 Cory Olmo <[EMAIL PROTECTED]> 0.4-1
+- Switched license to GPL
+* Tue Aug 23 2005 Cory Olmo <[EMAIL PROTECTED]> 0.3-1
+- Added support for floppy devices
+* Wed Jun 29 2005 Cory Olmo <[EMAIL PROTECTED]> 0.2-1
+- Bug fixes for handling initial unallocation of devices
+* Fri May 27 2005 Cory Olmo <[EMAIL PROTECTED]> 0.1-1
+- Initial version
--- devallocator/dev_allocator.spec.rhat	2006-03-08 17:54:36.000000000 -0500
+++ devallocator/dev_allocator.spec	2006-05-17 08:15:21.000000000 -0400
@@ -1,105 +0,0 @@
-Summary: Device Allocator
-Name: dev_allocator
-Version: 0.5
-Release: 4
-License: GPL
-Group: System Environment/Base
-Source: %{name}.tar.bz2
-Vendor: Trusted Computer Solutions, Inc.
-URL: http://www.TrustedCS.com
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
-
-%define debug_package %{nil}
-
-%description
-Application to manage the allocation and unallocation of devices.
-The device allocation library provides an interface for
-applications to utilize the device allocation services.
-
-%package devel
-Summary: Device Allocation API
-Group: Development/Libraries
-
-%description devel
-The device allocation API provides an interface for
-applications to utilize the device allocation services.
-
-%prep
-%setup -q -n %{name}
-
-%build
-make
-
-%install
-rm -rf ${RPM_BUILD_ROOT}
-make ROOT="${RPM_BUILD_ROOT}" install
-
-%clean
-rm -rf ${RPM_BUILD_ROOT}
-
-%preun
-if [ "$1" = "0" ]; then
-   /sbin/chkconfig --del dev_allocation
-fi
-
-%post
-/sbin/ldconfig
-/sbin/chkconfig --add dev_allocation
-
-%postun 
-/sbin/ldconfig
-
-%files devel
-%defattr(-,root,root)
-%{_libdir}/libdevallocation.so
-%{_libdir}/libdevallocation.a
-%dir %{_includedir}/selinux
-%{_includedir}/selinux/*.h
-
-%files
-%doc conf/dev_allocator.conf
-%doc ChangeLog 
-%defattr(-,root,root)
-%{_bindir}/dev_allocator
-%{_sbindir}/dev_allocator_config
-%config /etc/rc.d/init.d/dev_allocation
-%dir /etc/devallocation
-%config /etc/devallocation/supported_device_classes.conf
-/%{_libdir}/libdevallocation.so.*
-%dir /%{_libdir}/devallocation
-/%{_libdir}/devallocation/*
-%dir /usr/share/devallocation
-/usr/share/devallocation/*
-%doc /usr/share/man/man1/*.1.gz
-
-%changelog
-* Tue Feb 28 2006 Cory Olmo <[EMAIL PROTECTED]> 0.5-3
-- Applied patch supplied by Dan Thayer
-- Config tool will now attempt to place added devices into initial state and
-  restore them on deletion.
-* Thu Feb 16 2006 Cory Olmo <[EMAIL PROTECTED]> 0.5-2
-- Applied patch supplied by Dan Thayer
-* Wed Feb 15 2006 Cory Olmo <[EMAIL PROTECTED]> 0.5-1
-- Config tool should not be setuid and located in /usr/sbin
-* Mon Feb 13 2006 Cory Olmo <[EMAIL PROTECTED]> 0.5-0
-- Changed the dev_allocator.conf config file to be XML
-- Created a commandline tool to handle the creation and modification of the
-  XML config file so there is no need to hand edit the file anymore as well
-  as aid in the automation of creating the config file via scripts
-* Thu Feb 02 2006 Cory Olmo <[EMAIL PROTECTED]> 0.4-6
-- Fixes for hackish label comparison routine
-- Configuration files are now installed as example files which the admin
-  has to install manually into the policy directory for their system
-* Fri Dec 16 2005 Cory Olmo <[EMAIL PROTECTED]> 0.4-3
-- Integrated changes from Moore's patch
-* Mon Oct 17 2005 Dan Walsh <[EMAIL PROTECTED]> 0.4-2
-- Fixes to spec file
-
-* Fri Oct 14 2005 Cory Olmo <[EMAIL PROTECTED]> 0.4-1
-- Switched license to GPL
-* Tue Aug 23 2005 Cory Olmo <[EMAIL PROTECTED]> 0.3-1
-- Added support for floppy devices
-* Wed Jun 29 2005 Cory Olmo <[EMAIL PROTECTED]> 0.2-1
-- Bug fixes for handling initial unallocation of devices
-* Fri May 27 2005 Cory Olmo <[EMAIL PROTECTED]> 0.1-1
-- Initial version
--
redhat-lspp mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-lspp

Reply via email to