svn commit: r436723 - in head/sysutils/anacron: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Wed Mar 22 19:50:09 UTC 2017
Author: amdmi3
Date: Wed Mar 22 19:50:07 2017
New Revision: 436723
URL: https://svnweb.freebsd.org/changeset/ports/436723
Log:
- Add LICENSE
- Remove unneeded condition
- Regenerate patches
Approved by: portmgr blanket
Modified:
head/sysutils/anacron/Makefile
head/sysutils/anacron/files/patch-gregor.c
head/sysutils/anacron/files/patch-matchrx.c
head/sysutils/anacron/files/patch-readtab.c
head/sysutils/anacron/files/patch-runjob.c
Modified: head/sysutils/anacron/Makefile
==============================================================================
--- head/sysutils/anacron/Makefile Wed Mar 22 19:30:12 2017 (r436722)
+++ head/sysutils/anacron/Makefile Wed Mar 22 19:50:07 2017 (r436723)
@@ -10,6 +10,9 @@ MASTER_SITES= SF
MAINTAINER= dz at 426.ch
COMMENT= Schedules periodic jobs on systems that are not permanently up
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
USES= gmake
USE_RC_SUBR= anacron
SUB_FILES= pkg-message
@@ -25,6 +28,6 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/anacron.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/anacrontab.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
${INSTALL_DATA} ${FILESDIR}/anacrontab.sample ${STAGEDIR}${PREFIX}/etc
- [ -d ${STAGEDIR}/var/spool/anacron ] || ${MKDIR} ${STAGEDIR}/var/spool/anacron
+ @${MKDIR} ${STAGEDIR}/var/spool/anacron
.include <bsd.port.mk>
Modified: head/sysutils/anacron/files/patch-gregor.c
==============================================================================
--- head/sysutils/anacron/files/patch-gregor.c Wed Mar 22 19:30:12 2017 (r436722)
+++ head/sysutils/anacron/files/patch-gregor.c Wed Mar 22 19:50:07 2017 (r436723)
@@ -1,6 +1,6 @@
---- gregor.c.orig Fri Jun 23 00:50:40 2000
-+++ gregor.c Thu Jun 16 17:38:02 2005
-@@ -65,7 +65,7 @@
+--- gregor.c.orig 2000-06-22 22:50:40 UTC
++++ gregor.c
+@@ -65,7 +65,7 @@ day_num(int year, int month, int day)
{
int dn;
int i;
Modified: head/sysutils/anacron/files/patch-matchrx.c
==============================================================================
--- head/sysutils/anacron/files/patch-matchrx.c Wed Mar 22 19:30:12 2017 (r436722)
+++ head/sysutils/anacron/files/patch-matchrx.c Wed Mar 22 19:50:07 2017 (r436723)
@@ -1,5 +1,5 @@
---- matchrx.c.orig Wed Jun 21 01:12:18 2000
-+++ matchrx.c Thu Jun 16 17:31:09 2005
+--- matchrx.c.orig 2000-06-20 23:12:18 UTC
++++ matchrx.c
@@ -23,6 +23,7 @@
Modified: head/sysutils/anacron/files/patch-readtab.c
==============================================================================
--- head/sysutils/anacron/files/patch-readtab.c Wed Mar 22 19:30:12 2017 (r436722)
+++ head/sysutils/anacron/files/patch-readtab.c Wed Mar 22 19:50:07 2017 (r436723)
@@ -1,5 +1,5 @@
---- readtab.c.orig Fri Jun 23 00:13:12 2000
-+++ readtab.c Thu Jun 16 17:35:07 2005
+--- readtab.c.orig 2000-06-22 22:13:12 UTC
++++ readtab.c
@@ -19,6 +19,11 @@
The GNU General Public License can also be found in the file
@@ -29,7 +29,7 @@
static FILE *tab;
job_rec **job_array;
int njobs; /* number of jobs to run */
-@@ -47,9 +49,7 @@
+@@ -47,9 +49,7 @@ static int line_num; /* curr
static job_rec *last_job_rec; /* last job stored in memory, at the moment */
static env_rec *last_env_rec; /* last environment assignment stored */
@@ -40,7 +40,7 @@
static void *
xmalloc (size_t size)
-@@ -63,6 +63,18 @@
+@@ -63,6 +63,18 @@ xmalloc (size_t size)
return ptr;
}
@@ -59,7 +59,7 @@
static int
conv2int(const char *s)
/* Return the int or -1 on over/under-flow
-@@ -78,19 +90,20 @@
+@@ -78,19 +90,20 @@ conv2int(const char *s)
}
static char *
@@ -85,7 +85,7 @@
}
static int
-@@ -119,8 +132,8 @@
+@@ -119,8 +132,8 @@ register_env(const char *env_var, const
var_len = strlen(env_var);
val_len = strlen(value);
@@ -96,7 +96,7 @@
strcpy(er->assign, env_var);
er->assign[var_len] = '=';
strcpy(er->assign + var_len + 1, value);
-@@ -151,14 +164,14 @@
+@@ -151,14 +164,14 @@ register_job(const char *periods, const
anacrontab, line_num);
return;
}
@@ -114,7 +114,7 @@
strcpy(jr->command, command);
jr->job_pid = jr->mailer_pid = 0;
if (last_job_rec != NULL) last_job_rec->next = jr;
-@@ -222,7 +235,7 @@
+@@ -222,7 +235,7 @@ void
read_tab()
/* Read the anacrontab file into memory */
{
@@ -123,7 +123,7 @@
first_job_rec = last_job_rec = NULL;
first_env_rec = last_env_rec = NULL;
-@@ -231,14 +244,10 @@
+@@ -231,14 +244,10 @@ read_tab()
/* Open the anacrontab file */
tab = fopen(anacrontab, "r");
if (tab == NULL) die_e("Error opening %s", anacrontab);
@@ -139,7 +139,7 @@
}
if (fclose(tab)) die_e("Error closing %s", anacrontab);
}
-@@ -269,16 +278,17 @@
+@@ -269,16 +278,17 @@ arrange_jobs()
j = first_job_rec;
njobs = 0;
Modified: head/sysutils/anacron/files/patch-runjob.c
==============================================================================
--- head/sysutils/anacron/files/patch-runjob.c Wed Mar 22 19:30:12 2017 (r436722)
+++ head/sysutils/anacron/files/patch-runjob.c Wed Mar 22 19:50:07 2017 (r436723)
@@ -1,6 +1,6 @@
---- runjob.c.orig Thu Jun 16 17:04:19 2005
-+++ runjob.c Thu Jun 16 17:10:48 2005
-@@ -39,26 +39,14 @@
+--- runjob.c.orig 2000-06-20 23:12:18 UTC
++++ runjob.c
+@@ -39,26 +39,14 @@ static int
temp_file()
/* Open a temporary file and return its file descriptor */
{
More information about the svn-ports-all
mailing list