OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   14-Apr-2008 14:00:24
  Branch: HEAD                             Handle: 2008041413002101

  Modified files:
    openpkg-src/dcron       dcron.patch dcron.spec

  Log:
    fix editor usage (like Gentoo) and use my_ names for own functions

  Summary:
    Revision    Changes     Path
    1.6         +26 -2      openpkg-src/dcron/dcron.patch
    1.57        +1  -1      openpkg-src/dcron/dcron.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/dcron/dcron.patch
  ============================================================================
  $ cvs diff -u -r1.5 -r1.6 dcron.patch
  --- openpkg-src/dcron/dcron.patch     24 Oct 2006 07:16:34 -0000      1.5
  +++ openpkg-src/dcron/dcron.patch     14 Apr 2008 12:00:21 -0000      1.6
  @@ -1,3 +1,27 @@
  +Index: crontab.1
  +--- crontab.1.orig   1999-02-10 07:22:37 +0100
  ++++ crontab.1        2008-04-14 13:57:33 +0200
  +@@ -26,7 +26,7 @@
  + manipulates the crontab for a particular user.  Only the superuser may 
  + specify a different user and/or crontab directory.  Generally the -e
  + option is used to edit your crontab.  crontab will use /usr/bin/vi or
  +-the editor specified by your VISUAL environment variable to edit the
  ++the editor specified by your EDITOR environment variable to edit the
  + crontab.
  + .PP
  + Unlike other crond/crontabs, this crontab does not try to do everything
  +Index: crontab.c
  +--- crontab.c.orig   2006-04-27 19:29:56 +0200
  ++++ crontab.c        2008-04-14 13:57:23 +0200
  +@@ -302,7 +302,7 @@
  + 
  +     if (ChangeUser(user, 1) < 0)
  +         exit(0);
  +-    if ((ptr = getenv("VISUAL")) == NULL || strlen(ptr) > 256)
  ++    if ((ptr = getenv("EDITOR")) == NULL || strlen(ptr) > 256)
  +         ptr = PATH_VI;
  + 
  +     snprintf(visual, sizeof(visual), "%s %s", ptr, file);
   Index: database.c
   --- database.c.orig  2006-05-16 18:20:01.000000000 +0200
   +++ database.c       2006-10-24 09:04:26.497144006 +0200
  @@ -103,7 +127,7 @@
    
    #endif
   +
  -+void errx(int eval, const char *fmt, ...)
  ++void my_errx(int eval, const char *fmt, ...)
   +{
   +    va_list ap;
   +
  @@ -113,7 +137,7 @@
   +    exit(eval);
   +}
   +
  -+int asprintf(char **ret, const char *fmt, ...)
  ++int my_asprintf(char **ret, const char *fmt, ...)
   +{
   +    va_list ap;
   +    int l;
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/dcron/dcron.spec
  ============================================================================
  $ cvs diff -u -r1.56 -r1.57 dcron.spec
  --- openpkg-src/dcron/dcron.spec      10 Apr 2008 18:21:11 -0000      1.56
  +++ openpkg-src/dcron/dcron.spec      14 Apr 2008 12:00:22 -0000      1.57
  @@ -36,7 +36,7 @@
   Group:        System
   License:      GPL
   Version:      %{V_major}.%{V_minor}
  -Release:      20080410
  +Release:      20080414
   
   #   list of sources
   Source0:      
http://apollo.backplane.com/FreeSrc/dcron%{V_major}%{V_minor}.tgz
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to