Ticket #38045: cfengine3-upgrade.diff

File cfengine3-upgrade.diff, 10.4 KB (added by eric.anlu.dong@…, 11 years ago)

Upgrade to 3.4.2, relative to r103053

  • dports/sysutils/cfengine3/files/patch-configure.diff

     
     1--- configure.orig      2013-02-12 09:40:18.000000000 -0800
     2+++ configure   2013-02-12 10:41:47.000000000 -0800
     3@@ -10497,7 +10497,7 @@
     4         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     5       else
     6        if test "$host_cpu" = ia64; then
     7-         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
     8+         hardcode_libdir_flag_spec='${wl}-rpath $libdir:/usr/lib:/lib'
     9          allow_undefined_flag="-z nodefs"
     10          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
     11        else
     12@@ -10695,7 +10695,7 @@
     13     # extra space).
     14     freebsd2.2*)
     15       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
     16-      hardcode_libdir_flag_spec='-R$libdir'
     17+      hardcode_libdir_flag_spec='-rpath $libdir'
     18       hardcode_direct=yes
     19       hardcode_shlibpath_var=no
     20       ;;
     21@@ -10711,7 +10711,7 @@
     22     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
     23     freebsd* | dragonfly*)
     24       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     25-      hardcode_libdir_flag_spec='-R$libdir'
     26+      hardcode_libdir_flag_spec='-rpath $libdir'
     27       hardcode_direct=yes
     28       hardcode_shlibpath_var=no
     29       ;;
     30@@ -10887,7 +10887,7 @@
     31       else
     32        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
     33       fi
     34-      hardcode_libdir_flag_spec='-R$libdir'
     35+      hardcode_libdir_flag_spec='-rpath $libdir'
     36       hardcode_direct=yes
     37       hardcode_shlibpath_var=no
     38       ;;
     39@@ -10917,7 +10917,7 @@
     40          case $host_os in
     41           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
     42             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     43-            hardcode_libdir_flag_spec='-R$libdir'
     44+            hardcode_libdir_flag_spec='-rpath $libdir'
     45             ;;
     46           *)
     47             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     48@@ -10992,7 +10992,7 @@
     49          ;;
     50        esac
     51       fi
     52-      hardcode_libdir_flag_spec='-R$libdir'
     53+      hardcode_libdir_flag_spec='-rpath $libdir'
     54       hardcode_shlibpath_var=no
     55       case $host_os in
     56       solaris2.[0-5] | solaris2.[0-5].*) ;;
     57@@ -11089,7 +11089,7 @@
     58       allow_undefined_flag='${wl}-z,nodefs'
     59       archive_cmds_need_lc=no
     60       hardcode_shlibpath_var=no
     61-      hardcode_libdir_flag_spec='${wl}-R,$libdir'
     62+      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     63       hardcode_libdir_separator=':'
     64       link_all_deplibs=yes
     65       export_dynamic_flag_spec='${wl}-Bexport'
     66@@ -13868,7 +13868,7 @@
     67   #
     68   if test "x$with_postgresql" != xyes && test "x$with_postgresql" != xcheck; then
     69     if test "x$with_postgresql" != x/usr && test "x$with_postgresql" != x/; then
     70-      POSTGRESQL_LDFLAGS="$POSTGRESQL_LDFLAGS -Wl,-R$with_postgresql/lib"
     71+      POSTGRESQL_LDFLAGS="$POSTGRESQL_LDFLAGS -Wl,-rpath,$with_postgresql/lib"
     72     fi
     73   fi
     74 
     75@@ -14055,7 +14055,7 @@
     76   #
     77   if test "x$with_mysql" != xyes && test "x$with_mysql" != xcheck; then
     78     if test "x$with_mysql" != x/usr && test "x$with_mysql" != x/; then
     79-      MYSQL_LDFLAGS="$MYSQL_LDFLAGS -Wl,-R$with_mysql/lib"
     80+      MYSQL_LDFLAGS="$MYSQL_LDFLAGS -Wl,-rpath,$with_mysql/lib"
     81     fi
     82   fi
     83 
     84@@ -14214,7 +14214,7 @@
     85   #
     86   if test "x$with_qdbm" != xyes && test "x$with_qdbm" != xcheck; then
     87     if test "x$with_qdbm" != x/usr && test "x$with_qdbm" != x/; then
     88-      QDBM_LDFLAGS="$QDBM_LDFLAGS -Wl,-R$with_qdbm/lib"
     89+      QDBM_LDFLAGS="$QDBM_LDFLAGS -Wl,-rpath,$with_qdbm/lib"
     90     fi
     91   fi
     92 
     93@@ -14367,7 +14367,7 @@
     94   #
     95   if test "x$with_tokyocabinet" != xyes && test "x$with_tokyocabinet" != xcheck; then
     96     if test "x$with_tokyocabinet" != x/usr && test "x$with_tokyocabinet" != x/; then
     97-      TOKYOCABINET_LDFLAGS="$TOKYOCABINET_LDFLAGS -Wl,-R$with_tokyocabinet/lib"
     98+      TOKYOCABINET_LDFLAGS="$TOKYOCABINET_LDFLAGS -Wl,-rpath,$with_tokyocabinet/lib"
     99     fi
     100   fi
     101 
     102@@ -14527,7 +14527,7 @@
     103   #
     104   if test "x$with_openssl" != xyes && test "x$with_openssl" != xcheck; then
     105     if test "x$with_openssl" != x/usr && test "x$with_openssl" != x/; then
     106-      OPENSSL_LDFLAGS="$OPENSSL_LDFLAGS -Wl,-R$with_openssl/lib"
     107+      OPENSSL_LDFLAGS="$OPENSSL_LDFLAGS -Wl,-rpath,$with_openssl/lib"
     108     fi
     109   fi
     110 
     111@@ -14674,7 +14674,7 @@
     112   #
     113   if test "x$with_pcre" != xyes && test "x$with_pcre" != xcheck; then
     114     if test "x$with_pcre" != x/usr && test "x$with_pcre" != x/; then
     115-      PCRE_LDFLAGS="$PCRE_LDFLAGS -Wl,-R$with_pcre/lib"
     116+      PCRE_LDFLAGS="$PCRE_LDFLAGS -Wl,-rpath,$with_pcre/lib"
     117     fi
     118   fi
     119 
     120@@ -14805,7 +14805,7 @@
     121   #
     122   if test "x$with_libvirt" != xyes && test "x$with_libvirt" != xcheck; then
     123     if test "x$with_libvirt" != x/usr && test "x$with_libvirt" != x/; then
     124-      LIBVIRT_LDFLAGS="$LIBVIRT_LDFLAGS -Wl,-R$with_libvirt/lib"
     125+      LIBVIRT_LDFLAGS="$LIBVIRT_LDFLAGS -Wl,-rpath,$with_libvirt/lib"
     126     fi
     127   fi
     128 
     129@@ -14938,7 +14938,7 @@
     130   #
     131   if test "x$with_libacl" != xyes && test "x$with_libacl" != xcheck; then
     132     if test "x$with_libacl" != x/usr && test "x$with_libacl" != x/; then
     133-      LIBACL_LDFLAGS="$LIBACL_LDFLAGS -Wl,-R$with_libacl/lib"
     134+      LIBACL_LDFLAGS="$LIBACL_LDFLAGS -Wl,-rpath,$with_libacl/lib"
     135     fi
     136   fi
     137 
     138@@ -15084,7 +15084,7 @@
     139   #
     140   if test "x$with_libxml2" != xyes && test "x$with_libxml2" != xcheck; then
     141     if test "x$with_libxml2" != x/usr && test "x$with_libxml2" != x/; then
     142-      LIBXML2_LDFLAGS="$LIBXML2_LDFLAGS -Wl,-R$with_libxml2/lib"
     143+      LIBXML2_LDFLAGS="$LIBXML2_LDFLAGS -Wl,-rpath,$with_libxml2/lib"
     144     fi
     145   fi
     146 
  • dports/sysutils/cfengine3/files/patch-src-files_operators.c.diff

     
    1 --- src/files_operators.c.orig  2010-06-06 09:31:47.000000000 -0700
    2 +++ src/files_operators.c       2010-06-30 15:01:45.000000000 -0700
    3 @@ -588,7 +588,7 @@
    4  
    5  Debug("VerifyFinderType of %s for %s\n", file,a.perms.findertype);
    6  
    7 -if (strncmp(a.perms.findertype,"*",CF_BUFSIZE) == 0 || strncmp(a.perms.findertype,"",CF_BUFSIZE) == 0)
    8 +if (!a.perms.findertype || strncmp(a.perms.findertype,"*",CF_BUFSIZE) == 0 || strncmp(a.perms.findertype,"",CF_BUFSIZE) == 0)
    9     {
    10     return 0;
    11     }
  • dports/sysutils/cfengine3/Portfile

     
    1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    22# $Id$
    33
    4 PortSystem 1.0
     4PortSystem          1.0
    55
    6 name                            cfengine3
    7 conflicts                       cfengine
    8 version                         3.1.2
    9 revision                        7
    10 categories                      sysutils
    11 maintainers                     nomaintainer
    12 description                     network configuration-management tool
    13 long_description        a suite of programs for integrated autonomic \
    14                                         management of either individual or networked \
    15                                         computers. Cfengine 3 is a significant rewrite \
    16                                         of underlying cfengine technology which \
    17                                         preserves the core principles and methodology \
    18                                         of cfengine2’s approach.
    19 homepage                        http://cfengine.com/
    20 distname                        cfengine-${version}
    21 master_sites            ${homepage}source-code/download?file=${distfiles}&dummy=
    22 checksums           md5     497c05e59118332e34dbf8965217613b \
    23                     sha1    70b6fa569ba4fb0c314ab6256c11596d8c138321 \
    24                     rmd160  5df871993ea77107bfc617ec8dc2e183d76ed7b5
    25 platforms                       darwin
     6name                cfengine3
     7conflicts           cfengine
     8version             3.4.2
     9categories          sysutils
     10platforms           darwin
     11license             GPL-3
     12maintainers         nomaintainer
     13description         network configuration-management tool
     14long_description    a suite of programs for integrated autonomic \
     15                    management of either individual or networked \
     16                    computers. Cfengine 3 is a significant rewrite \
     17                    of underlying cfengine technology which \
     18                    preserves the core principles and methodology \
     19                    of cfengine2’s approach.
     20homepage            http://cfengine.com/
     21distname            cfengine-${version}
     22master_sites        ${homepage}source-code/download?file=${distfiles}&dummy=
     23checksums           md5     37221270db925e6073bbade5db643a49 \
     24                    sha1    83d6eb3e8c8ed16bf6364a41d216cf96499749c6 \
     25                    rmd160  b1c2bfa74c517efd9d26445ff148b8a93cb173b8
    2626                   
    27 depends_lib                     port:db46 \
    28                                         port:openssl \
    29                                         port:pcre
     27depends_lib         port:tokyocabinet \
     28                    port:openssl \
     29                    port:pcre
    3030
    31 patchfiles          patch-src-files_operators.c.diff
     31patchfiles          patch-configure.diff
    3232
    33 post-patch {
    34         foreach manfile [glob ${worksrcpath}/docs/*.8] {
    35                 reinplace "s|/usr/local|${prefix}|g" $manfile
    36                 reinplace "s|/var/cfengine|${prefix}&|g" $manfile
    37         }
    38 }
     33configure.args      --enable-fhs \
     34                    --with-tokyocabinet=${prefix} \
     35                    --with-openssl=${prefix} \
     36                    --with-pcre=${prefix}
    3937
    40 set cfworkdir           ${prefix}/var/cfengine
    41 
    42 configure.cflags        -I${prefix}/include/db46 -I${prefix}/include
    43 configure.ldflags       -L${prefix}/lib/db46 -L${prefix}/lib
    44 configure.args          --mandir='\${prefix}/share/man' \
    45                                         --infodir='\${prefix}/share/info' \
    46                                         --with-workdir="${cfworkdir}" \
    47                                         --with-berkeleydb=default \
    48                                         --with-openssl=${prefix} \
    49                                         --with-pcre=${prefix} \
    50                                         --without-gd
    51 
    52 # vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
     38livecheck.type      regex
     39livecheck.url       ${homepage}source-code
     40livecheck.regex     "cfengine-(\\d+(?:\\.\\d+)*).tar.gz"