From 0ba30c7da827dd737780a7862423491a8c50e375 Mon Sep 17 00:00:00 2001 From: Marcela Mašláňová Date: Aug 22 2007 09:10:02 +0000 Subject: The macro with_pam is used instead of have_pam. License tag was fixed. --- diff --git a/at-3.1.10-havepam.patch b/at-3.1.10-havepam.patch new file mode 100644 index 0000000..ae18a89 --- /dev/null +++ b/at-3.1.10-havepam.patch @@ -0,0 +1,40 @@ +--- at-3.1.10/atd.c.havepam 2007-08-22 10:37:16.000000000 +0200 ++++ at-3.1.10/atd.c 2007-08-22 10:39:42.000000000 +0200 +@@ -121,7 +121,7 @@ + + static volatile sig_atomic_t term_signal = 0; + +-#ifdef HAVE_PAM ++#ifdef WITH_PAM + #include + + static pam_handle_t *pamh = NULL; +@@ -139,7 +139,7 @@ + #define PAM_END { retcode = pam_close_session(pamh,0); \ + pam_end(pamh,retcode); } + +-#endif /* HAVE_PAM */ ++#endif /* WITH_PAM */ + + /* Signal handlers */ + RETSIGTYPE +@@ -246,7 +246,7 @@ + char queue; + char fmt[64]; + unsigned long jobno; +-#ifdef HAVE_PAM ++#ifdef WITH_PAM + int retcode; + #endif + +--- at-3.1.10/configure.in.havepam 2007-08-22 10:37:16.000000000 +0200 ++++ at-3.1.10/configure.in 2007-08-22 10:37:16.000000000 +0200 +@@ -80,7 +80,7 @@ + AC_FUNC_GETLOADAVG + AC_CHECK_FUNCS(getcwd mktime strftime setreuid setresuid sigaction waitpid) + AC_CHECK_HEADERS(security/pam_appl.h, [PAMLIB="-lpam" +- AC_DEFINE(HAVE_PAM)]) ++ AC_DEFINE(WITH_PAM)]) + + dnl Checking for programs + diff --git a/at.spec b/at.spec index 57ca93a..c7195ff 100644 --- a/at.spec +++ b/at.spec @@ -6,8 +6,8 @@ Summary: Job spooling tools Name: at Version: 3.1.10 -Release: 15%{?dist} -License: GPL +Release: 16%{?dist} +License: GPLv2+ Group: System Environment/Daemons URL: http://ftp.debian.org/debian/pool/main/a/at Source: http://ftp.debian.org/debian/pool/main/a/at/at_%{major_ver}.tar.gz @@ -27,6 +27,7 @@ Patch9: at-3.1.10-dont_fork.patch Patch10: at-3.1.10-perm.patch Patch11: at-3.1.10-opt_V.patch Patch12: at-3.1.10-session.patch +Patch13: at-3.1.10-havepam.patch BuildRequires: fileutils chkconfig /etc/init.d BuildRequires: flex bison autoconf @@ -73,6 +74,7 @@ cp %{SOURCE1} . %patch10 -p1 -b .perm %patch11 -p1 -b .opt_V %patch12 -p1 -b .session +%patch13 -p1 -b .havepam %build # patch10 touches configure.in @@ -175,6 +177,10 @@ fi %attr(4755,root,root) %{_bindir}/at %changelog +* Wed Aug 22 2007 Marcela Maslanova - 3.1.10-16 +- macro with_pam instead of have_pam +- license tag is gplv2+ because of license in source files + * Tue Jul 11 2007 Marcela Maslanova - 3.1.10-15 - rewrite init script - add own session - setsid