SPECS: job.spec (NEW) - worse than raw

arekm arekm at pld-linux.org
Thu Jun 23 20:25:14 CEST 2005


Author: arekm                        Date: Thu Jun 23 18:25:14 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- worse than raw

---- Files affected:
SPECS:
   job.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/job.spec
diff -u /dev/null SPECS/job.spec:1.1
--- /dev/null	Thu Jun 23 20:25:14 2005
+++ SPECS/job.spec	Thu Jun 23 20:25:09 2005
@@ -0,0 +1,99 @@
+# $Revision$, $Date$
+Name:		job
+Version:	1.5.0
+Release:	0.1
+Summary:	Linux Jobs
+Source0:	ftp://oss.sgi.com/projects/pagg/download/%{name}-%{version}.tar.gz
+License:	GPL
+URL:		http://oss.sgi.com/projects/pagg/
+Group:		Applications/System
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The job package provides a set of commands, a PAM module, man pages,
+and configuration files. The commands are used to send signals to
+jobs, wait on jobs, get status information about jobs, and for
+administrators to control process attachment to jobs. The PAM module
+allows the administrator to specify which point-of-entry services on
+the system (rlogin, gdm, xdm, ftp, etc.) should create new jobs.
+
+%prep
+%setup -q -n %{name}
+
+%build
+%{__make} build \
+	ROOT="$RPM_BUILD_ROOT"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	ROOT="$RPM_BUILD_ROOT"
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(754,root,root) /etc/rc.d/init.d/job
+%attr(755,root,root) /lib/security/pam_job.so
+%{_includedir}/job.h
+%attr(755,root,root) %{_prefix}/lib/libjob.so
+%attr(755,root,root) %{_bindir}/jdetach
+%attr(755,root,root) %{_bindir}/jkill
+%attr(755,root,root) %{_bindir}/jsethid
+%attr(755,root,root) %{_bindir}/jstat
+%attr(755,root,root) %{_bindir}/jwait
+%attr(755,root,root) %{_bindir}/jattach
+%{_mandir}/*/*
+%doc AUTHORS COPYING INSTALL README
+
+%preun
+if [ "$1" = 0 ] ; then
+	SAFE=`fgrep -s pam_job.so /etc/pam.d/* | wc -l`
+	if [ $SAFE -ne 0 ] ; then
+		echo "You must remove all references to pam_job.so in the "
+		echo "/etc/pam.d/* config files before attempting to uninstall"
+		echo "the job package."
+		echo ""
+		exit 1
+	fi
+	which chkconfig > /dev/null
+	if [ $? -eq 0 ] ; then
+		chkconfig --del job
+	fi
+fi
+exit 0
+
+%post
+which chkconfig > /dev/null
+if [ $? -eq 0 ] ; then
+	chkconfig --add job
+fi
+echo "You must add references to pam_job.so in the /etc/pam.d/* config"
+echo "files to enable the PAM services for creating jobs.  You only"
+echo "need to add the reference for services that you want to fall under"
+echo "job control."
+echo ""
+echo "Example entry when able to use session modules:"
+echo ""
+echo "    session    optional    /lib/security/pam_job.so"
+echo ""
+echo "Example entry when required to use account modules:"
+echo ""
+echo "    account    optional   /lib/security/pam_job.so"
+echo ""
+echo "Consult the /usr/share/doc/job-1.4/README file for additional"
+echo "information about the PAM module."
+echo ""
+exit 0
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/06/23 18:25:09  arekm
+- worse than raw
+
================================================================



More information about the pld-cvs-commit mailing list