Changeset 83835 for trunk/dports/comms


Ignore:
Timestamp:
Sep 11, 2011, 4:11:15 PM (8 years ago)
Author:
ryandesign@…
Message:

kermit:

  • update to 9.0.302
  • indicate license (now standard BSD)
  • respect build_arch
  • build universal when universal variant is selected
  • fix livecheck

See #31168

Location:
trunk/dports/comms/kermit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/comms/kermit/Portfile

    r57375 r83835  
    33PortSystem 1.0
    44name                    kermit
    5 version                 8.0.211
     5version                 9.0.302
    66categories              comms
    77maintainers             nomaintainer
    88distname                cku[lindex [split ${version} .] end]
    99platforms               darwin freebsd
     10license                 BSD
     11
     12homepage                http://www.columbia.edu/kermit/ckermit.html
     13
    1014master_sites            ftp://kermit.columbia.edu/kermit/archives/ \
     15                        http://kermit.columbia.edu/ftp/archives/ \
    1116                        ftp://ftp.icm.edu.pl/pub/kermit/archives/
    12 checksums               md5 5767ec5e6ff0857cbfe2d3ec1ee0e2bc \
    13                                 sha1 cd5e0524d27fea0275a0938da2a5fc115e0978b8
    14 homepage                http://www.kermit-project.org/
     17
    1518description             Serial and network communications package.
    1619long_description        C-Kermit is a combined serial and network \
     
    2326                        automation of communication tasks.
    2427
     28checksums               rmd160  ef3a71b5a42868c80408ac09662d00b71da0b0c8 \
     29                        sha256  0d5f2cd12bdab9401b4c836854ebbf241675051875557783c332a6a40dac0711
     30
    2531extract.mkdir   yes
    2632build.target
     
    2834
    2935platform darwin {
    30         build.target            macosx103
     36        build.target            macosx
    3137}
    3238
     
    3945configure {
    4046        reinplace "s|@@prefix@@|${prefix}|g"    ${worksrcpath}/ckuus5.c ${worksrcpath}/makefile
    41         reinplace "s|CC= cc|CC= ${configure.cc}|g"      ${worksrcpath}/makefile
    42         reinplace "s|CC2= cc|CC2= ${configure.cc}|g"    ${worksrcpath}/makefile
     47        reinplace {s| CC=$(CC) | CC="$(CC)" |g} ${worksrcpath}/makefile
     48        reinplace {s| CC2=$(CC2) | CC2="$(CC2)" |g} ${worksrcpath}/makefile
     49        reinplace "s|CC= cc|CC= ${configure.cc} [get_canonical_archflags]|g" ${worksrcpath}/makefile
     50        reinplace "s|CC2= cc|CC2= ${configure.cc} [get_canonical_archflags]|g" ${worksrcpath}/makefile
    4351}
    4452
    4553pre-destroot {
    46         file mkdir ${destroot}${prefix}/bin
    4754        file mkdir ${destroot}${prefix}/share/doc/kermit
    4855}
    4956
    5057livecheck.type  regexm
    51 livecheck.url   http://www.columbia.edu/kermit/ck80.html
    52 livecheck.regex {<td><b>Version:</b></td>\n<td><b>([0-9\.]+)</b></td>}
     58livecheck.regex {<td><b>Version:</b></td>\n<td>([0-9\.]+)</td>}
  • trunk/dports/comms/kermit/files/patch-ckuus5.c

    r45455 r83835  
    1 --- ckuus5.c.orig       Fri Nov 14 10:20:20 2003
    2 +++ ckuus5.c    Fri Nov 14 16:06:56 2003
    3 @@ -814,6 +814,7 @@
     1--- ckuus5.c.orig       2011-09-08 08:32:20.000000000 -0500
     2+++ ckuus5.c    2011-09-08 08:33:05.000000000 -0500
     3@@ -840,6 +840,7 @@
    44 char * k_info_dir = NULL;               /* Where to find text files */
    55 #ifdef UNIX
    66 static char * txtdir[] = {
    7 +    "@@prefix@@/share/kermit"          /* Mac OS X MacPorts*/
     7+    "@@prefix@@/share/kermit"           /* Mac OS X MacPorts */
    88     "/usr/local/doc/",                  /* Linux, SunOS, ... */
    99     "/usr/share/lib/",                  /* HP-UX 10.xx... */
  • trunk/dports/comms/kermit/files/patch-makefile

    r43428 r83835  
    1 --- makefile.orig       2004-04-18 04:52:00.000000000 +1000
    2 +++ makefile    2008-12-11 09:04:33.000000000 +1100
    3 @@ -734,10 +734,10 @@
    4  # . defining the values on the command line
    5  # . defining the values in the environment and use the -e option
     1--- makefile.orig       2011-08-21 10:12:07.000000000 -0500
     2+++ makefile    2011-09-11 11:01:11.000000000 -0500
     3@@ -817,10 +817,10 @@
    64 #
     5 # The following symbols are used to specify library and header file locations:
     6 #
    77-prefix  = /usr/local
    88+prefix  = @@prefix@@
     
    1414 K4LIB=-L/usr/kerberos/lib
    1515 K4INC=-I/usr/kerberos/include
    16 @@ -905,7 +905,7 @@
     16@@ -971,7 +971,7 @@
    1717 MANDIR = $(manroot)/man/man1
    1818 MANEXT = 1
     
    2323 
    2424 TEXTFILES = COPYING.TXT ckcbwr.txt ckubwr.txt ckuins.txt ckccfg.txt \
    25 @@ -991,48 +991,27 @@
    26         rm -f $(DESTDIR)$(BINDIR)/kermit;\
     25@@ -1073,7 +1073,7 @@
    2726        cp $(BINARY) $(DESTDIR)$(BINDIR)/kermit || exit 1;\
    2827        chmod 755    $(DESTDIR)$(BINDIR)/kermit || exit 1;\
    29 -       rm -f        $(DESTDIR)$(BINDIR)/kermit-sshsub;\
     28        rm -f        $(DESTDIR)$(BINDIR)/kermit-sshsub;\
    3029-       ln -s        $(DESTDIR)$(BINDIR)/kermit\
    31 -                    $(DESTDIR)$(BINDIR)/kermit-sshsub || exit 1;\
    32 -       echo 'set flag=f\nPrC Removing binaries' >&3;\
    33 -       echo "RmF $(DESTDIR)$(BINDIR)/kermit-sshsub" >&3;\
    34 -       echo "RmF $(DESTDIR)$(BINDIR)/kermit" >&3;\
    35 -       if test -f ckermit.ini; then\
    36 -               echo "#!$(DESTDIR)$(BINDIR)/kermit" >\
    37 -                       $(DESTDIR)$(BINDIR)/_tmp.ini;\
    38 -               cat ckermit.ini >> $(DESTDIR)$(BINDIR)/_tmp.ini;\
    39 -               mv $(DESTDIR)$(BINDIR)/_tmp.ini\
    40 -                  $(DESTDIR)$(BINDIR)/ckermit.ini;\
    41 -               chmod 755 $(DESTDIR)$(BINDIR)/ckermit.ini;\
    42 -               echo "RmF $(DESTDIR)$(BINDIR)/ckermit.ini" >&3;\
    43 -       fi;\
    44 -       echo;\
    45 -       echo 'EfM' >&3;\
    46 -       echo "Kermit binary installed:";\
    47 -       ls -l $(DESTDIR)$(BINDIR)/kermit\
    48 -             $(DESTDIR)$(BINDIR)/kermit-sshsub\
    49 -             $(DESTDIR)$(BINDIR)/ckermit.ini;\
    50         echo;\
    51         echo " WARNING: If C-Kermit is to be used for dialing out,";\
    52         echo " you must change its owner and group and permissions";\
    53         echo " to match the 'cu' program.  See the ckuins.txt file";\
    54         echo " for details.";\
    55         echo;\
    56 -       echo MANDIR=$(MANDIR);\
    57 -       if test -n "$(MANDIR)"; then\
    58 -               if test -d $(MANDIR); then\
    59 -                       echo  "$(MANDIR) exists...";\
    60 +       echo MANDIR=$(DESTDIR)$(MANDIR);\
    61 +       if test -n "$(DESTDIR)$(MANDIR)"; then\
    62 +               if test -d $(DESTDIR)$(MANDIR); then\
    63 +                       echo  "$(DESTDIR)$(MANDIR) exists...";\
    64                 else\
    65 -                       echo "Creating $(MANDIR)...";\
    66 -                       mkdir $(MANDIR) || exit 1;\
    67 -                       chmod 755 $(MANDIR) || exit 1;\
    68 +                       echo "Creating $(DESTDIR)$(MANDIR)...";\
    69 +                       mkdir $(DESTDIR)$(MANDIR) || exit 1;\
    70 +                       chmod 755 $(DESTDIR)$(MANDIR) || exit 1;\
    71                 fi;\
    72                 echo "Installing man page...";\
    73 -               rm -f $(MANDIR)/kermit.$(MANEXT);\
    74 -               cp    ckuker.nr $(MANDIR)/kermit.$(MANEXT) || exit 1;\
    75 -               chmod 644       $(MANDIR)/kermit.$(MANEXT) || exit 1;\
    76 +               rm -f $(DESTDIR)$(MANDIR)/kermit.$(MANEXT);\
    77 +               cp    ckuker.nr $(DESTDIR)$(MANDIR)/kermit.$(MANEXT) || exit 1;\
    78 +               chmod 644       $(DESTDIR)$(MANDIR)/kermit.$(MANEXT) || exit 1;\
    79                 echo 'set flag=f\nPrC Removing man pages' >&3;\
    80 -               echo "RmF $(MANDIR)/kermit.$(MANEXT)" >&3;\
    81 +               echo "RmF $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)" >&3;\
    82                 echo 'EfM' >&3;\
    83                 echo;\
    84         else\
    85 @@ -1930,8 +1909,8 @@
    86  macosx102nc:
    87         @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
    88         $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
    89 -       "CFLAGS= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR -O \
    90 -       $(KFLAGS) " "LIBS= -lncurses $(LIBS)"
    91 +       "CFLAGS+= -DMACOSX10 -DCK_NCURSES -DTCPSOCKET -DUSE_STRERROR -O \
    92 +       -DLOCK_DIR=\\\"/tmp\\\" $(KFLAGS) " "LIBS= -lncurses $(LIBS)"
    93  
    94  #The problem here is that if curses.h also exists, it conflicts with
    95  #ncurses.h and and we have fatal errors.  If this happens to you, then
    96 @@ -1949,9 +1928,9 @@
    97  macosx103:
    98         @echo Making C-Kermit $(CKVER) for `uname -s` + ncurses...
    99         $(MAKE) CC=$(CC) CC2=$(CC2) xermit KTARGET=$${KTARGET:-$(@)} \
    100 -       "CFLAGS= -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET \
    101 +       "CFLAGS+= -DMACOSX10 -DMACOSX103 -DCK_NCURSES -DTCPSOCKET \
    102         -DUSE_STRERROR -DUSE_NAMESER_COMPAT -O \
    103 -       $(KFLAGS) " "LIBS= -lncurses -lresolv $(LIBS)"
    104 +       -DLOCK_DIR=\\\"/tmp\\\" $(KFLAGS) " "LIBS= -lncurses -lresolv $(LIBS)"
    105  
    106  macosx103nc:
    107         $(MAKE) MAKE=$(MAKE) CC=$(CC) CC2=$(CC2) macosx103
     30+       ln -s        kermit\
     31                     $(DESTDIR)$(BINDIR)/kermit-sshsub || exit 1;\
     32        echo 'set flag=f\nPrC Removing binaries' >&3;\
     33        echo "RmF $(DESTDIR)$(BINDIR)/kermit-sshsub" >&3;\
Note: See TracChangeset for help on using the changeset viewer.