Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2013 15:12:12 GMT
From:      Andrei Lavreniyuk <andy.lavr@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/176509: [NEW PORT] www/dnssec-validator: DNSSEC Validator extension for Chromium/Firefox
Message-ID:  <201302281512.r1SFCCoJ059184@red.freebsd.org>
Resent-Message-ID: <201302281520.r1SFK11G088839@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176509
>Category:       ports
>Synopsis:       [NEW PORT] www/dnssec-validator: DNSSEC Validator extension for Chromium/Firefox
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 28 15:20:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Andrei Lavreniyuk
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
Technica-03,Inc.
>Environment:
FreeBSD 59.informalians.local 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r247144M(clang-r170710): Fri Feb 22 10:52:25 EET 2013     root@59.informalians.local:/usr/obj/usr/src/sys/Kernel  amd64
>Description:

 DNSSEC Validator extension for Chromium/Firefox adds a new functionality
to your browser.

This extension is able to check the DNSSEC status of the page
you are visiting and it will present the status of DNSSEC security
using color keys and information texts in the URL bar.

WWW: https://labs.nic.cz/page/990/rozsireni-dnssec-validator-pro-google-chrome/



>How-To-Repeat:

NOTE:

Please view:

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/176504
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/176505
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/176507
>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	dnssec-validator
#	dnssec-validator/files
#	dnssec-validator/files/patch-config.h
#	dnssec-validator/files/patch-CMakeLists.txt
#	dnssec-validator/files/patch-projectDef.cmake
#	dnssec-validator/pkg-message
#	dnssec-validator/Makefile
#	dnssec-validator/pkg-descr
#	dnssec-validator/Makefile.rev
#	dnssec-validator/distinfo
#
echo c - dnssec-validator
mkdir -p dnssec-validator > /dev/null 2>&1
echo c - dnssec-validator/files
mkdir -p dnssec-validator/files > /dev/null 2>&1
echo x - dnssec-validator/files/patch-config.h
sed 's/^X//' >dnssec-validator/files/patch-config.h << 'cd2fc9159e61f2065373d31e8aa76a2b'
X--- ../plugin/projects/DNSSECValidatorPlugin/ldns/config.h.orig	2013-02-25 12:20:17.015649745 +0200
X+++ ../plugin/projects/DNSSECValidatorPlugin/ldns/config.h	2013-02-21 17:09:57.000000000 +0200
X@@ -0,0 +1,571 @@
X+/* ldns/config.h.  Generated from config.h.in by configure.  */
X+/* ldns/config.h.in.  Generated from configure.ac by autoheader.  */
X+
X+/* Define if building universal (internal helper macro) */
X+/* #undef AC_APPLE_UNIVERSAL_BUILD */
X+
X+/* Define to 1 if you have the <arpa/inet.h> header file. */
X+#define HAVE_ARPA_INET_H 1
X+
X+/* Whether the C compiler accepts the "format" attribute */
X+#define HAVE_ATTR_FORMAT 1
X+
X+/* Whether the C compiler accepts the "unused" attribute */
X+#define HAVE_ATTR_UNUSED 1
X+
X+/* Define to 1 if you have the `b32_ntop' function. */
X+/* #undef HAVE_B32_NTOP */
X+
X+/* Define to 1 if you have the `b32_pton' function. */
X+/* #undef HAVE_B32_PTON */
X+
X+/* Define to 1 if you have the `b64_ntop' function. */
X+/* #undef HAVE_B64_NTOP */
X+
X+/* Define to 1 if you have the `b64_pton' function. */
X+/* #undef HAVE_B64_PTON */
X+
X+/* Define to 1 if you have the `bzero' function. */
X+#define HAVE_BZERO 1
X+
X+/* Define to 1 if you have the `calloc' function. */
X+#define HAVE_CALLOC 1
X+
X+/* Define to 1 if you have the `ctime_r' function. */
X+#define HAVE_CTIME_R 1
X+
X+/* Is a CAFILE given at configure time */
X+#define HAVE_DANE_CA_FILE 0
X+
X+/* Is a CAPATH given at configure time */
X+#define HAVE_DANE_CA_PATH 0
X+
X+/* Define to 1 if you have the declaration of `NID_secp384r1', and to 0 if you
X+   don't. */
X+#define HAVE_DECL_NID_SECP384R1 1
X+
X+/* Define to 1 if you have the declaration of `NID_X9_62_prime256v1', and to 0
X+   if you don't. */
X+#define HAVE_DECL_NID_X9_62_PRIME256V1 1
X+
X+/* Define to 1 if you have the <dlfcn.h> header file. */
X+#define HAVE_DLFCN_H 1
X+
X+/* Define to 1 if you have the `endprotoent' function. */
X+#define HAVE_ENDPROTOENT 1
X+
X+/* Define to 1 if you have the `endservent' function. */
X+#define HAVE_ENDSERVENT 1
X+
X+/* Define to 1 if you have the `EVP_sha256' function. */
X+#define HAVE_EVP_SHA256 1
X+
X+/* Define to 1 if you have the `fcntl' function. */
X+#define HAVE_FCNTL 1
X+
X+/* Define to 1 if you have the `fork' function. */
X+#define HAVE_FORK 1
X+
X+/* Whether getaddrinfo is available */
X+#define HAVE_GETADDRINFO 1
X+
X+/* Define to 1 if you have the <getopt.h> header file. */
X+#define HAVE_GETOPT_H 1
X+
X+/* Define to 1 if you have the `gmtime_r' function. */
X+#define HAVE_GMTIME_R 1
X+
X+/* If you have HMAC_CTX_init */
X+#define HAVE_HMAC_CTX_INIT 1
X+
X+/* Define to 1 if you have the `inet_aton' function. */
X+#define HAVE_INET_ATON 1
X+
X+/* Define to 1 if you have the `inet_ntop' function. */
X+#define HAVE_INET_NTOP 1
X+
X+/* Define to 1 if you have the `inet_pton' function. */
X+#define HAVE_INET_PTON 1
X+
X+/* Define to 1 if the system has the type `intptr_t'. */
X+#define HAVE_INTPTR_T 1
X+
X+/* define if you have inttypes.h */
X+#define HAVE_INTTYPES_H 1
X+
X+/* if the function 'ioctlsocket' is available */
X+/* #undef HAVE_IOCTLSOCKET */
X+
X+/* Define to 1 if you have the `isascii' function. */
X+#define HAVE_ISASCII 1
X+
X+/* Define to 1 if you have the `isblank' function. */
X+#define HAVE_ISBLANK 1
X+
X+/* Define to 1 if you have the `pcap' library (-lpcap). */
X+/* #undef HAVE_LIBPCAP */
X+
X+/* Define to 1 if you have the `localtime_r' function. */
X+#define HAVE_LOCALTIME_R 1
X+
X+/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
X+   to 0 otherwise. */
X+#define HAVE_MALLOC 1
X+
X+/* Define to 1 if you have the `memmove' function. */
X+#define HAVE_MEMMOVE 1
X+
X+/* Define to 1 if you have the <memory.h> header file. */
X+#define HAVE_MEMORY_H 1
X+
X+/* Define to 1 if you have the `memset' function. */
X+#define HAVE_MEMSET 1
X+
X+/* Define to 1 if you have the <netdb.h> header file. */
X+#define HAVE_NETDB_H 1
X+
X+/* Define to 1 if you have the <netinet/if_ether.h> header file. */
X+/* #undef HAVE_NETINET_IF_ETHER_H */
X+
X+/* Define to 1 if you have the <netinet/igmp.h> header file. */
X+/* #undef HAVE_NETINET_IGMP_H */
X+
X+/* Define to 1 if you have the <netinet/in.h> header file. */
X+#define HAVE_NETINET_IN_H 1
X+
X+/* Define to 1 if you have the <netinet/in_systm.h> header file. */
X+/* #undef HAVE_NETINET_IN_SYSTM_H */
X+
X+/* Define to 1 if you have the <netinet/ip6.h> header file. */
X+/* #undef HAVE_NETINET_IP6_H */
X+
X+/* Define to 1 if you have the <netinet/ip_compat.h> header file. */
X+/* #undef HAVE_NETINET_IP_COMPAT_H */
X+
X+/* Define to 1 if you have the <netinet/ip.h> header file. */
X+/* #undef HAVE_NETINET_IP_H */
X+
X+/* Define to 1 if you have the <netinet/udp.h> header file. */
X+/* #undef HAVE_NETINET_UDP_H */
X+
X+/* Define to 1 if you have the <net/ethernet.h> header file. */
X+/* #undef HAVE_NET_ETHERNET_H */
X+
X+/* Define to 1 if you have the <net/if.h> header file. */
X+/* #undef HAVE_NET_IF_H */
X+
X+/* Define to 1 if you have the <openssl/err.h> header file. */
X+#define HAVE_OPENSSL_ERR_H 1
X+
X+/* Define to 1 if you have the <openssl/rand.h> header file. */
X+#define HAVE_OPENSSL_RAND_H 1
X+
X+/* Define to 1 if you have the <openssl/ssl.h> header file. */
X+#define HAVE_OPENSSL_SSL_H 1
X+
X+/* Define to 1 if you have the <pcap.h> header file. */
X+/* #undef HAVE_PCAP_H */
X+
X+/* If available, contains the Python version number currently in use. */
X+/* #undef HAVE_PYTHON */
X+
X+/* Define to 1 if you have the `random' function. */
X+#define HAVE_RANDOM 1
X+
X+/* Define to 1 if your system has a GNU libc compatible `realloc' function,
X+   and to 0 otherwise. */
X+#define HAVE_REALLOC 1
X+
X+/* Define to 1 if you have the `sleep' function. */
X+#define HAVE_SLEEP 1
X+
X+/* Define to 1 if you have the `snprintf' function. */
X+#define HAVE_SNPRINTF 1
X+
X+/* Define if you have the SSL libraries installed. */
X+#define HAVE_SSL /**/
X+
X+/* Define to 1 if you have the <stdarg.h> header file. */
X+#define HAVE_STDARG_H 1
X+
X+/* Define to 1 if stdbool.h conforms to C99. */
X+#define HAVE_STDBOOL_H 1
X+
X+/* Define to 1 if you have the <stdint.h> header file. */
X+#define HAVE_STDINT_H 1
X+
X+/* Define to 1 if you have the <stdlib.h> header file. */
X+#define HAVE_STDLIB_H 1
X+
X+/* Define to 1 if you have the <strings.h> header file. */
X+#define HAVE_STRINGS_H 1
X+
X+/* Define to 1 if you have the <string.h> header file. */
X+#define HAVE_STRING_H 1
X+
X+/* Define to 1 if you have the `strlcpy' function. */
X+#define HAVE_STRLCPY 1
X+
X+/* Define to 1 if you have the `strtoul' function. */
X+#define HAVE_STRTOUL 1
X+
X+/* Define if you have SWIG libraries and header files. */
X+/* #undef HAVE_SWIG */
X+
X+/* Define to 1 if you have the <sys/mount.h> header file. */
X+#define HAVE_SYS_MOUNT_H 1
X+
X+/* Define to 1 if you have the <sys/param.h> header file. */
X+#define HAVE_SYS_PARAM_H 1
X+
X+/* define if you have sys/socket.h */
X+#define HAVE_SYS_SOCKET_H 1
X+
X+/* Define to 1 if you have the <sys/stat.h> header file. */
X+#define HAVE_SYS_STAT_H 1
X+
X+/* define if you have sys/types.h */
X+#define HAVE_SYS_TYPES_H 1
X+
X+/* Define to 1 if you have the `timegm' function. */
X+#define HAVE_TIMEGM 1
X+
X+/* Define to 1 if you have the <time.h> header file. */
X+#define HAVE_TIME_H 1
X+
X+/* define if you have unistd.h */
X+#define HAVE_UNISTD_H 1
X+
X+/* Define to 1 if you have the `vfork' function. */
X+#define HAVE_VFORK 1
X+
X+/* Define to 1 if you have the <vfork.h> header file. */
X+/* #undef HAVE_VFORK_H */
X+
X+/* Define to 1 if you have the <winsock2.h> header file. */
X+/* #undef HAVE_WINSOCK2_H */
X+
X+/* Define to 1 if `fork' works. */
X+#define HAVE_WORKING_FORK 1
X+
X+/* Define to 1 if `vfork' works. */
X+#define HAVE_WORKING_VFORK 1
X+
X+/* Define to 1 if you have the <ws2tcpip.h> header file. */
X+/* #undef HAVE_WS2TCPIP_H */
X+
X+/* Define to 1 if the system has the type `_Bool'. */
X+#define HAVE__BOOL 1
X+
X+/* Is a CAFILE given at configure time */
X+/* #undef LDNS_DANE_CA_FILE */
X+
X+/* Is a CAPATH given at configure time */
X+/* #undef LDNS_DANE_CA_PATH */
X+
X+/* Default trust anchor file */
X+#define LDNS_TRUST_ANCHOR_FILE "/usr/local/etc/unbound/root.key"
X+
X+/* Define to the sub-directory in which libtool stores uninstalled libraries.
X+   */
X+#define LT_OBJDIR ".libs/"
X+
X+/* Define to the address where bug reports for this package should be sent. */
X+#define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl"
X+
X+/* Define to the full name of this package. */
X+#define PACKAGE_NAME "ldns"
X+
X+/* Define to the full name and version of this package. */
X+#define PACKAGE_STRING "ldns 1.6.16"
X+
X+/* Define to the one symbol short name of this package. */
X+#define PACKAGE_TARNAME "libdns"
X+
X+/* Define to the home page for this package. */
X+#define PACKAGE_URL ""
X+
X+/* Define to the version of this package. */
X+#define PACKAGE_VERSION "1.6.16"
X+
X+/* The size of `time_t', as computed by sizeof. */
X+#define SIZEOF_TIME_T 8
X+
X+/* Define to 1 if you have the ANSI C header files. */
X+#define STDC_HEADERS 1
X+
X+/* System configuration dir */
X+#define SYSCONFDIR sysconfdir
X+
X+/* Define this to enable ECDSA support. */
X+#define USE_ECDSA 1
X+
X+/* Define this to enable GOST support. */
X+#define USE_GOST 1
X+
X+/* Define this to enable SHA256 and SHA512 support. */
X+#define USE_SHA2 1
X+
X+/* Enable extensions on AIX 3, Interix.  */
X+#ifndef _ALL_SOURCE
X+# define _ALL_SOURCE 1
X+#endif
X+/* Enable GNU extensions on systems that have them.  */
X+#ifndef _GNU_SOURCE
X+# define _GNU_SOURCE 1
X+#endif
X+/* Enable threading extensions on Solaris.  */
X+#ifndef _POSIX_PTHREAD_SEMANTICS
X+# define _POSIX_PTHREAD_SEMANTICS 1
X+#endif
X+/* Enable extensions on HP NonStop.  */
X+#ifndef _TANDEM_SOURCE
X+# define _TANDEM_SOURCE 1
X+#endif
X+/* Enable general extensions on Solaris.  */
X+#ifndef __EXTENSIONS__
X+# define __EXTENSIONS__ 1
X+#endif
X+
X+
X+/* Whether the windows socket API is used */
X+/* #undef USE_WINSOCK */
X+
X+/* the version of the windows API enabled */
X+#define WINVER 0x0502
X+
X+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
X+   significant byte first (like Motorola and SPARC, unlike Intel). */
X+#if defined AC_APPLE_UNIVERSAL_BUILD
X+# if defined __BIG_ENDIAN__
X+#  define WORDS_BIGENDIAN 1
X+# endif
X+#else
X+# ifndef WORDS_BIGENDIAN
X+/* #  undef WORDS_BIGENDIAN */
X+# endif
X+#endif
X+
X+/* Define to 1 if on MINIX. */
X+/* #undef _MINIX */
X+
X+/* Define to 2 if the system does not provide POSIX.1 features except with
X+   this defined. */
X+/* #undef _POSIX_1_SOURCE */
X+
X+/* Define to 1 if you need to in order for `stat' and other things to work. */
X+/* #undef _POSIX_SOURCE */
X+
X+/* Define to empty if `const' does not conform to ANSI C. */
X+/* #undef const */
X+
X+/* in_addr_t */
X+/* #undef in_addr_t */
X+
X+/* in_port_t */
X+/* #undef in_port_t */
X+
X+/* Define to `__inline__' or `__inline' if that's what the C compiler
X+   calls it, or to nothing if 'inline' is not supported under any name.  */
X+#ifndef __cplusplus
X+/* #undef inline */
X+#endif
X+
X+/* Define to `short' if <sys/types.h> does not define. */
X+/* #undef int16_t */
X+
X+/* Define to `int' if <sys/types.h> does not define. */
X+/* #undef int32_t */
X+
X+/* Define to `long long' if <sys/types.h> does not define. */
X+/* #undef int64_t */
X+
X+/* Define to `char' if <sys/types.h> does not define. */
X+/* #undef int8_t */
X+
X+/* Define to the type of a signed integer type wide enough to hold a pointer,
X+   if such a type exists, and if the system does not define it. */
X+/* #undef intptr_t */
X+
X+/* Define to rpl_malloc if the replacement function should be used. */
X+/* #undef malloc */
X+
X+/* Define to `int' if <sys/types.h> does not define. */
X+/* #undef pid_t */
X+
X+/* Define to rpl_realloc if the replacement function should be used. */
X+/* #undef realloc */
X+
X+/* Define to `unsigned int' if <sys/types.h> does not define. */
X+/* #undef size_t */
X+
X+/* Define to 'int' if not defined */
X+/* #undef socklen_t */
X+
X+/* Fallback member name for socket family in struct sockaddr_storage */
X+/* #undef ss_family */
X+
X+/* Define to `int' if <sys/types.h> does not define. */
X+/* #undef ssize_t */
X+
X+/* Define to `unsigned short' if <sys/types.h> does not define. */
X+/* #undef uint16_t */
X+
X+/* Define to `unsigned int' if <sys/types.h> does not define. */
X+/* #undef uint32_t */
X+
X+/* Define to `unsigned long long' if <sys/types.h> does not define. */
X+/* #undef uint64_t */
X+
X+/* Define to `unsigned char' if <sys/types.h> does not define. */
X+/* #undef uint8_t */
X+
X+/* Define as `fork' if `vfork' does not work. */
X+/* #undef vfork */
X+
X+
X+#include <stdio.h>
X+#include <string.h>
X+#include <unistd.h>
X+#include <assert.h>
X+
X+#ifndef LITTLE_ENDIAN
X+#define LITTLE_ENDIAN 1234
X+#endif
X+
X+#ifndef BIG_ENDIAN
X+#define BIG_ENDIAN 4321
X+#endif
X+
X+#ifndef BYTE_ORDER
X+#ifdef WORDS_BIGENDIAN
X+#define BYTE_ORDER BIG_ENDIAN
X+#else
X+#define BYTE_ORDER LITTLE_ENDIAN
X+#endif /* WORDS_BIGENDIAN */
X+#endif /* BYTE_ORDER */
X+
X+#if STDC_HEADERS
X+#include <stdlib.h>
X+#include <stddef.h>
X+#endif
X+
X+#ifdef HAVE_STDINT_H
X+#include <stdint.h>
X+#endif
X+
X+#ifdef HAVE_SYS_SOCKET_H
X+#include <sys/socket.h>
X+#endif
X+
X+#ifdef HAVE_NETINET_IN_H
X+#include <netinet/in.h>
X+#endif
X+
X+#ifdef HAVE_ARPA_INET_H
X+#include <arpa/inet.h>
X+#endif
X+
X+#ifdef HAVE_WINSOCK2_H
X+#include <winsock2.h>
X+#endif
X+
X+#ifdef HAVE_WS2TCPIP_H
X+#include <ws2tcpip.h>
X+#endif
X+
X+
X+/* detect if we need to cast to unsigned int for FD_SET to avoid warnings */
X+#ifdef HAVE_WINSOCK2_H
X+#define FD_SET_T (u_int)
X+#else
X+#define FD_SET_T 
X+#endif
X+
X+
X+
X+
X+#ifdef __cplusplus
X+extern "C" {
X+#endif
X+
X+#ifndef B64_PTON
X+int ldns_b64_ntop(uint8_t const *src, size_t srclength,
X+	 	  char *target, size_t targsize);
X+/**
X+ * calculates the size needed to store the result of b64_ntop
X+ */
X+/*@unused@*/
X+static inline size_t ldns_b64_ntop_calculate_size(size_t srcsize)
X+{
X+	return ((((srcsize + 2) / 3) * 4) + 1);
X+}
X+#endif /* !B64_PTON */
X+#ifndef B64_NTOP
X+int ldns_b64_pton(char const *src, uint8_t *target, size_t targsize);
X+/**
X+ * calculates the size needed to store the result of ldns_b64_pton
X+ */
X+/*@unused@*/
X+static inline size_t ldns_b64_pton_calculate_size(size_t srcsize)
X+{
X+	return (((((srcsize + 3) / 4) * 3)) + 1);
X+}
X+#endif /* !B64_NTOP */
X+
X+#ifndef HAVE_SLEEP
X+/* use windows sleep, in millisecs, instead */
X+#define sleep(x) Sleep((x)*1000)
X+#endif
X+
X+#ifndef HAVE_RANDOM
X+#define srandom(x) srand(x)
X+#define random(x) rand(x)
X+#endif
X+
X+#ifndef HAVE_TIMEGM
X+#include <time.h>
X+time_t timegm (struct tm *tm);
X+#endif /* !TIMEGM */
X+#ifndef HAVE_GMTIME_R
X+struct tm *gmtime_r(const time_t *timep, struct tm *result);
X+#endif
X+#ifndef HAVE_LOCALTIME_R
X+struct tm *localtime_r(const time_t *timep, struct tm *result);
X+#endif
X+#ifndef HAVE_ISBLANK
X+int isblank(int c);
X+#endif /* !HAVE_ISBLANK */
X+#ifndef HAVE_ISASCII
X+int isascii(int c);
X+#endif /* !HAVE_ISASCII */
X+#ifndef HAVE_SNPRINTF
X+#include <stdarg.h>
X+int snprintf (char *str, size_t count, const char *fmt, ...);
X+int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
X+#endif /* HAVE_SNPRINTF */
X+#ifndef HAVE_INET_PTON
X+int inet_pton(int af, const char* src, void* dst);
X+#endif /* HAVE_INET_PTON */
X+#ifndef HAVE_INET_NTOP
X+const char *inet_ntop(int af, const void *src, char *dst, size_t size);
X+#endif
X+#ifndef HAVE_INET_ATON
X+int inet_aton(const char *cp, struct in_addr *addr);
X+#endif
X+#ifndef HAVE_MEMMOVE
X+void *memmove(void *dest, const void *src, size_t n);
X+#endif
X+#ifndef HAVE_STRLCPY
X+size_t strlcpy(char *dst, const char *src, size_t siz);
X+#endif
X+#ifdef __cplusplus
X+}
X+#endif
X+#ifndef HAVE_GETADDRINFO
X+#include "compat/fake-rfc2553.h"
X+#endif
X+#ifndef HAVE_STRTOUL
X+#define strtoul (unsigned long)strtol
X+#endif
X+
cd2fc9159e61f2065373d31e8aa76a2b
echo x - dnssec-validator/files/patch-CMakeLists.txt
sed 's/^X//' >dnssec-validator/files/patch-CMakeLists.txt << 'e62778a2e7677e0302e05251d5099b2e'
X--- ../plugin/FireBreath/src/NpapiCore/CMakeLists.txt.orig	2013-02-22 15:33:18.000000000 +0200
X+++ ../plugin/FireBreath/src/NpapiCore/CMakeLists.txt	2013-02-22 16:53:43.023648754 +0200
X@@ -101,7 +101,7 @@
X 
X if (UNIX)
X     # Link with libdl on Mac and X11
X-    set(LIBDL_LIBRARIES dl)
X+    set(LIBDL_LIBRARIES c)
X endif()
X target_link_libraries(${PROJNAME}
X     ${Boost_LIBRARIES}
e62778a2e7677e0302e05251d5099b2e
echo x - dnssec-validator/files/patch-projectDef.cmake
sed 's/^X//' >dnssec-validator/files/patch-projectDef.cmake << '1858ff80bb538d4a437d10118341ec3e'
X--- ../plugin/projects/DNSSECValidatorPlugin/X11/projectDef.cmake.orig	2013-02-22 15:33:06.000000000 +0200
X+++ ../plugin/projects/DNSSECValidatorPlugin/X11/projectDef.cmake	2013-02-22 16:58:34.119649499 +0200
X@@ -50,7 +50,7 @@
X endif ()
X 
X # set appropriate arch for linking
X-if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
X+if (CMAKE_SYSTEM_NAME STREQUAL "Freebsd")
X   if (CMAKE_CXX_FLAGS MATCHES "-m64" OR
X       NOT CMAKE_CXX_FLAGS MATCHES "-m" AND UNIX_64_BIT)
X     message("Configuring for 64bit build...")
X@@ -64,22 +64,17 @@
X   endif ()
X endif ()
X 
X-# set header file directories
X-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../lib/linux/${BUILD_ARCH}
X-                    ${CMAKE_CURRENT_SOURCE_DIR}/../../lib/ldns
X-                    ${CMAKE_CURRENT_SOURCE_DIR}/../../lib/openssl/include)
X 
X-# set static library paths
X-add_library(ldns STATIC IMPORTED)
X-set_property(TARGET ldns PROPERTY IMPORTED_LOCATION
X-             ${CMAKE_CURRENT_SOURCE_DIR}/../../lib/linux/${BUILD_ARCH}/libldns.a)
X-add_library(crypto STATIC IMPORTED)
X-set_property(TARGET crypto PROPERTY IMPORTED_LOCATION
X-             ${CMAKE_CURRENT_SOURCE_DIR}/../../lib/linux/${BUILD_ARCH}/libcrypto.a)
X+# set header file directories
X+include_directories( /usr/local/include/ldns
X+                    /usr/include/openssl
X+                    /lib
X+                    /usr/lib
X+                    /usr/local/lib)
X 
X # add library dependencies here; leave ${PLUGIN_INTERNAL_DEPS} there unless you know what you're doing!
X target_link_libraries(${PROJNAME}
X     ${PLUGIN_INTERNAL_DEPS}
X-    ldns
X-    crypto
X+    /usr/local/lib/libldns.so
X+    /usr/lib/libcrypto.so
X     )
1858ff80bb538d4a437d10118341ec3e
echo x - dnssec-validator/pkg-message
sed 's/^X//' >dnssec-validator/pkg-message << '4053f91405611c019881433552414583'
XDNSSEC Validator extension for Mozilla Firefox and Chromium
XURL: <http://www.dnssec-validator.cz>;
X-------------------------------------------------------------------------------
X
XINSTALLATION
X---------------
X
XFirefox:
X
XInstall port www/xpi-dnssec and add extensions to your Firefox.
X
X1. Start Firefox and installing extensions DNSSEC Validator.
X
XChromium:
X
XInstall port www/crx-dnssec and add extensions to your Chromium.
X
X1. Open the Extensions page on the browser (chrome://extensions/)
X2. Locate the "validator-1.6.1.crx" extension file on your computer
X   ( ports/distfiles/validator-1.6.1.crx )- drag and drop the file
X   onto the Extensions page from step 1 and click Install.
4053f91405611c019881433552414583
echo x - dnssec-validator/Makefile
sed 's/^X//' >dnssec-validator/Makefile << 'ad1b0a9b6cc3ea7da92e2d2c29476191'
X# Created by: Andrei Lavreniyuk <andy.lavr@gmail.com>
X# $FreeBSD$
X
XPORTNAME=	dnssec-validator
XPORTVERSION=	1.1.6.${SNAPDATE}
XDISTVERSIONSUFFIX=.${SNAPREV}
XCATEGORIES=	www
XMASTER_SITES=	https://labs.nic.cz/page/990/rozsireni-dnssec-validator-pro-google-chrome/ \
X		https://chrome.google.com/webstore/detail/hpmbmjbcmglolhjdcbicfdhmgmcoeknm/
X
XMAINTAINER=	andy.lavr@gmail.com
XCOMMENT=	DNSSEC Validator extension for Chromium/Firefox
X
XEXTRACT_DEPENDS=	zip:${PORTSDIR}/archivers/zip
XLIB_DEPENDS=	ldns:${PORTSDIR}/dns/ldns
XFETCH_DEPENDS=	${LOCALBASE}/bin/git:${PORTSDIR}/devel/git
XBUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash cmake:${PORTSDIR}/devel/cmake
X
XONLY_FOR_ARCHS=	amd64
X
XLICENSE_PERMS_GPL3=	yes
XUSE_GCC=	4.2+
XUSE_GMAKE=	yes
XUSE_OPENSSL=	yes
XNO_PACKAGE=	Please view pkg-message
XNO_INSTALL_MANPAGES=	yes
XNOFETCHFILES=	dnssec-validator-1.1.6.20120725.558a4bd.tar.gz
XXPI_PORTVERSION=	1.1.6
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}.${SNAPREV}/firefox
XDATADIR=	${WRKDIR}/${PORTNAME}-${PORTVERSION}.${SNAPREV}
X
XPLIST_FILES=	${DISTDIR}/xpi/dnssec-${XPI_PORTVERSION}.xpi \
X		${DISTDIR}/${PORTNAME}-crx-${EXTENSION_VERSION}.tar.gz
X
X.include <bsd.port.options.mk>
X
X.if ${OSVERSION} < 900000
XIGNORE=	the port has not been tested with this version FreeBSD! Upgrade to FreeBSD 9.1 or higher
X.endif
X
X.if  ( ${OSVERSION} < 704000 || \
X(${OSVERSION} >= 800000 && ${OSVERSION} < 802000) || \
X(${OSVERSION} >= 900000 && ${OSVERSION} < 900027) )
XBUILD_DEPENDS+=	openssl>=1.0:${PORTSDIR}/security/openssl
XWITH_OPENSSL_PORT=	yes
X.endif
X
XGIT_WORK=	${WRKDIR}/${PORTNAME}.git-clone
XGIT_PLUGIN=${GIT_WORK}/plugin/FireBreath
XGIT_DATE=	$$(date -ur$$(git log --pretty=format:%ct -1 ) +%Y%m%d)
XGIT_REV=	$$(git log --pretty=format:%h -1)
XNEWDISTNAME=	${DISTNAME:S/${SNAPDATE}.${SNAPREV}$$//}${GIT_DATE}.${GIT_REV}
X
XEXTENSION_VERSION=	${PORTVERSION}.${SNAPREV}
XPLUGIN_ROOT=	${WRKSRC}/../plugin
XPLUGIN_TMP=	${WRKSRC}/../tmp_build
XPLUGIN_NAME=	DNSSECValidatorPlugin
X
X.if !exists(${DISTDIR}/${NOFETCHFILES})
Xdo-fetch:
X	git clone git://git.nic.cz/dnssec-validator \
X		${GIT_WORK}
X	git clone git://github.com/firebreath/FireBreath.git \
X		${GIT_PLUGIN}
X
X	( cd ${GIT_PLUGIN} && git checkout f21613137c4c0cfb24679197ea706b31effdd956 )
X
X	( cd ${GIT_WORK}; \
X	  git log --stat >ChangeLog; \
X	  ${TAR} cjf ${DISTDIR}/${DIST_SUBDIR}/${NEWDISTNAME}${EXTRACT_SUFX} \
X	  	--exclude '.git*' --exclude autogen.sh \
X		--exclude autom4te.cache \
X	  	-s "|${GIT_WORK}|${NEWDISTNAME}|" \
X	  	${GIT_WORK}; \
X	  ${ECHO_CMD} "SNAPDATE=	${GIT_DATE}" \
X		>${MASTERDIR}/Makefile.rev; \
X	  ${ECHO_CMD} "SNAPREV=	${GIT_REV}" \
X		>>${MASTERDIR}/Makefile.rev )
X
X	${RM} -rf ${WRKDIR}
X	@cd ${PORTSDIR}/www/dnssec-validator && ${MAKE} makesum
X.endif
X
Xpost-patch:
X	@cd ${WRKSRC} && ${RM} ./Makefile
X	@${RM} -rf plugins ${PLUGIN_ROOT}/build ${PLUGIN_TMP}
X
X	@${FIND} ${DATADIR} -name '*.sh' | ${XARGS} ${REINPLACE_CMD} \
X		-e 's|^#!/bin/bash|#!/usr/local/bin/bash|g'
X
X	@${FIND} ${DATADIR} -name '*.sh.in' | ${XARGS} ${REINPLACE_CMD} \
X		-e 's|^#!/bin/bash|#!/usr/local/bin/bash|g'
X
Xdo-configure:
X	@${PLUGIN_ROOT}/FireBreath/prepmake.sh ${PLUGIN_ROOT}/projects ${PLUGIN_ROOT}/build \
X	-DCMAKE_VERBOSE_MAKEFILE=1 \
X	-DCMAKE_C_FLAGS=-m64 -Wall -std=c99 \
X	-DCMAKE_CXX_FLAGS=-m64 -Wall \
X	-DCMAKE_BUILD_TYPE=MinSizeRel \
X	-DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc \
X	-DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++
X
Xdo-build:
X	@${MAKE} -C ${PLUGIN_ROOT}/build
X	@${MKDIR} ${WRKSRC}/plugins && ${CP} ${PLUGIN_ROOT}/build/bin/${PLUGIN_NAME}/np${PLUGIN_NAME}.so ${WRKSRC}/plugins/np${PLUGIN_NAME}_x86-64.so
X	@${SED} 's/<em:targetPlatform><\/em:targetPlatform>/<em:targetPlatform>FreeBSD<\/em:targetPlatform>/g' ${WRKSRC}/install.rdf.template > ${WRKSRC}/install.rdf
X	@cd ${WRKSRC} && ${LOCALBASE}/bin/bash build.sh
X
Xdo-install:
X	@${ECHO_MSG}
X	@${ECHO_MSG} "Installing firefox plugin distfiles"
X	@${ECHO_MSG}
X	@${LN} -sf ${WRKSRC}/dnssec.xpi ${WRKSRC}/dnssec-${XPI_PORTVERSION}.xpi
X	@${INSTALL} -m 644 ${WRKSRC}/dnssec-${XPI_PORTVERSION}.xpi ${DISTDIR}/xpi
X	@cd ${PORTSDIR}/www/xpi-dnssec && ${MAKE} makesum
X	@${ECHO_MSG}
X	@${ECHO_MSG} "Installing chromium plugin source"
X	@${ECHO_MSG}
X	@${CP} ${WRKSRC}/plugins/np${PLUGIN_NAME}_x86-64.so ${WRKSRC}/../chrome
X	@${MKDIR} ${WRKDIR}/tmp/dnssec-chromium-${XPI_PORTVERSION}/chrome
X	@${CP} -a ${WRKSRC}/../chrome/* ${WRKDIR}/tmp/dnssec-chromium-${XPI_PORTVERSION}/chrome
X	@${TAR} -C ${WRKDIR}/tmp -c -z -f ${DISTDIR}/dnssec-chromium-${XPI_PORTVERSION}.tar.gz - .
X	@cd ${PORTSDIR}/www/crx-dnssec && ${MAKE} makesum
X
Xpost-install:	.SILENT
X	${ECHO_MSG}
X	${CAT} ${PKGMESSAGE}
X	${ECHO_MSG}
X
X.include "Makefile.rev"
X.include <bsd.port.mk>
ad1b0a9b6cc3ea7da92e2d2c29476191
echo x - dnssec-validator/pkg-descr
sed 's/^X//' >dnssec-validator/pkg-descr << '714e5e4802309189c6617271876c060b'
X DNSSEC Validator extension for Chromium/Firefox adds a new functionality
Xto your browser.
X
XThis extension is able to check the DNSSEC status of the page
Xyou are visiting and it will present the status of DNSSEC security
Xusing color keys and information texts in the URL bar.
X
XWWW: https://labs.nic.cz/page/990/rozsireni-dnssec-validator-pro-google-chrome/
714e5e4802309189c6617271876c060b
echo x - dnssec-validator/Makefile.rev
sed 's/^X//' >dnssec-validator/Makefile.rev << '754596a275b3c89f9ea566d621279407'
XSNAPDATE=	20120725
XSNAPREV=	558a4bd
754596a275b3c89f9ea566d621279407
echo x - dnssec-validator/distinfo
sed 's/^X//' >dnssec-validator/distinfo << 'e07e0dd50b794e6b1cd7740d3f1f5775'
XSHA256 (dnssec-validator-1.1.6.20120725.558a4bd.tar.gz) = fcba6979c40b8ad051bd0a85d8a758bdb6ba32a3b0b8c892962e30307439bee1
XSIZE (dnssec-validator-1.1.6.20120725.558a4bd.tar.gz) = 4331300
e07e0dd50b794e6b1cd7740d3f1f5775
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302281512.r1SFCCoJ059184>