FreeBSD Bugzilla – Attachment 214452 Details for
Bug 246434
dns/powerdns: Wrong pidfile in rc script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix pkg-plist, pidfile in rc.d script and more
powerdns-4.3.0_1.diff (text/plain), 10.18 KB, created by
Ralf van der Enden
on 2020-05-13 14:08:35 UTC
(
hide
)
Description:
Fix pkg-plist, pidfile in rc.d script and more
Filename:
MIME Type:
Creator:
Ralf van der Enden
Created:
2020-05-13 14:08:35 UTC
Size:
10.18 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 535072) >+++ Makefile (working copy) >@@ -2,6 +2,7 @@ > > PORTNAME= powerdns > DISTVERSION= 4.3.0 >+PORTREVISION= 1 > CATEGORIES= dns > MASTER_SITES= https://downloads.powerdns.com/releases/ > DISTNAME= pdns-${DISTVERSION} >@@ -11,7 +12,7 @@ > > LICENSE= GPLv2 > >-BROKEN_sparc64= Does not compile: error: to_string is not a member of std >+BROKEN_sparc64= Does not compile: error: to_string is not a member of std > > LIB_DEPENDS= libboost_serialization.so:devel/boost-libs \ > libcurl.so:ftp/curl >@@ -36,8 +37,8 @@ > WRKDIRPREFIX="${WRKDIRPREFIX}" > SUB_FILES= pkg-message > >-OPTIONS_DEFINE= DOCS EXAMPLES GEOIP LMDB LUABACKEND LUAJIT \ >- MYSQL OPENLDAP PGSQL PROTOBUF REMOTE \ >+OPTIONS_DEFINE= DOCS EXAMPLES GEOIP IXFRDIST LMDB LUABACKEND \ >+ LUAJIT MYSQL OPENLDAP PGSQL PROTOBUF REMOTE \ > SQLITE3 TINYDNS TOOLS UNIXODBC > OPTIONS_DEFAULT= LMDB MYSQL PGSQL SQLITE3 > OPTIONS_GROUP= GEOIPOPT REMOTEOPT >@@ -47,6 +48,7 @@ > > GEOIPOPT_DESC= GeoIP DB options > GEOIP_DESC= GeoIP backend (GeoIP2 DB) >+IXFRDIST_DESC= Build ixfrdist > LMDB_DESC= LMDB backend > LUABACKEND_DESC= Lua2 backend > LUAJIT_DESC= Use LuaJIT instead of Lua >@@ -65,9 +67,11 @@ > libyaml-cpp.so:devel/yaml-cpp > GEOIP_VARS= MODULES+=geoip > >+IXFRDIST_CONFIGURE_ENABLE= ixfrdist >+ > LMDB_LIB_DEPENDS= liblmdb.so:databases/lmdb >+LMDB_CONFIGURE_ON= --with-lmdb=${LOCALBASE} > LMDB_CONFIGURE_OFF= --without-lmdb >-LMDB_CONFIGURE_ON= --with-lmdb=${LOCALBASE} > LMDB_VARS= MODULES+=lmdb > > LUABACKEND_VARS= MODULES+=lua2 >@@ -77,8 +81,8 @@ > LUAJIT_CONFIGURE_ON= --with-lua=luajit > > MYSQL_USES= mysql >+MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE} > MYSQL_CONFIGURE_OFF= --without-mysql >-MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE} > MYSQL_VARS= MODULES+=gmysql > > OPENLDAP_USE= OPENLDAP=YES >Index: files/patch-configure >=================================================================== >--- files/patch-configure (revision 535072) >+++ files/patch-configure (working copy) >@@ -1,6 +1,6 @@ >---- configure.orig 2020-02-18 21:26:30.000000000 -0500 >-+++ configure 2020-02-18 21:26:30.000000000 -0500 >-@@ -19774,8 +19774,10 @@ >+--- configure.orig 2020-04-06 12:51:03 UTC >++++ configure >+@@ -19774,8 +19774,10 @@ fi > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/crypto.h in $ssldir" >&5 > $as_echo_n "checking for openssl/crypto.h in $ssldir... " >&6; } > if test -f "$ssldir/include/openssl/crypto.h"; then >Index: files/patch-dns_random.cc >=================================================================== >--- files/patch-dns_random.cc (revision 535072) >+++ files/patch-dns_random.cc (nonexistent) >@@ -1,12 +0,0 @@ >---- pdns/dns_random.cc.orig 2018-11-29 12:53:42 UTC >-+++ pdns/dns_random.cc >-@@ -40,7 +40,9 @@ >- #include <openssl/rand.h> >- #endif >- #if defined(HAVE_GETRANDOM) >-+extern "C" { >- #include <sys/random.h> >-+} >- #endif >- >- static enum DNS_RNG { > >Property changes on: files/patch-dns_random.cc >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-ON >\ No newline at end of property >Index: files/pdns.in >=================================================================== >--- files/pdns.in (revision 535072) >+++ files/pdns.in (working copy) >@@ -28,7 +28,7 @@ > > required_files=${pdns_conf} > >-pidfile=/var/run/pdns/pdns_server.pid >+pidfile=/var/run/pdns/${name}.pid > > command=%%PREFIX%%/sbin/pdns_server > command_args="--daemon --guardian" >Index: files/pkg-message.in >=================================================================== >--- files/pkg-message.in (revision 535072) >+++ files/pkg-message.in (working copy) >@@ -1,32 +1,54 @@ > [ > { type: install > message: <<EOM >- Enable PowerDNS in /etc/rc.conf(.local) or in >- /etc/rc.conf.d/pdns with the following line: >+Enable PowerDNS in /etc/rc.conf(.local) or in /etc/rc.conf.d/pdns with the following line: > > pdns_enable="YES" > >- A configuration template is available in %%PREFIX%%/etc/pdns >- as pdns.conf-dist. >+A configuration template is available in %%PREFIX%%/etc/pdns as pdns.conf-dist. > >- A pdns.conf with all possible options is available in >- %%EXAMPLESDIR%% >+A pdns.conf with all possible options is available in %%EXAMPLESDIR%% >+ >+Initialization file(s) for your database backend(s) are available in %%DOCSDIR%% as "schema.X.sql" > EOM > } > { type: upgrade >- maximum_versio: 3.4 >+ maximum_version: "3.4.0" > message: <<EOM >- ----------------------------------------------- >- IMPORTANT: PowerDNS Authoritative Server 3.4.0+: >- ----------------------------------------------- >- This version needs a mandatory schema change for the gmsyql, >- gpgsql and gsqlite3 backends. SQL statements are available in >- %%DOCSDIR%% or http://Doc.PowerDNS.com >- ----------------------------------------------- >- IMPORTANT: PowerDNS Authoritative Server 4.3.0+: >- ----------------------------------------------- >- MyDNS and OpenDBX backends removed >- https://Blog.PowerDNS.com/2019/10/17/backend-removals-in-the-upcoming-authoritative-server-release/ >+This version needs a mandatory schema change for the gmsyql, gpgsql and gsqlite3 backends. SQL >+statements are available in %%DOCSDIR%% or https://doc.powerdns.com > EOM > } >+{ type: upgrade >+ maximum_version: "4.2.0" >+ mimimum_version: "4.0.0" >+ message: <<EOM >+Autoserial support has been removed. The change_date column has been removed from the records table >+in all gsql backends, but leaving it in is harmless. >+The Generic PostgreSQL backend schema has changed: the notified_serial column type in the domains >+table has been changed from INT DEFAULT NULL to BIGINT >+DEFAULT NULL: >+ALTER TABLE domains ALTER notified_serial TYPE bigint USING CASE WHEN notified_serial >= 0 THEN >+notified_serial::bigint END; >+ >+This version needs a mandatory schema change for the gmsyql, godbc (mssql), gpgsql and gsqlite3 >+backends. SQL statements are available in %%DOCSDIR%% or https://doc.powerdns.com >+EOM >+} >+{ type: upgrade >+ minimum_version: "4.2.0" >+ message: <<EOM >+MyDNS and OpenDBX backends removed >+https://Blog.PowerDNS.com/2019/10/17/backend-removals-in-the-upcoming-authoritative-server-release/ >+ >+The new âunpublished DNSSEC keysâ feature' comes with a mandatory schema change for all database >+backends (including BIND with a DNSSEC database). >+ >+This version needs a mandatory schema change for the gmsyql, godbc(mssql), gpgsql and gsqlite3 >+backends. SQL statements are available in %%DOCSDIR%% or https://doc.powerdns.com >+ >+For the LMDB backend, please review lmdb-schema-version >+(https://doc.powerdns.com/authoritative/backends/lmdb.html#setting-lmdb-schema-version) >+EOM >+} > ] >Index: pkg-install >=================================================================== >--- pkg-install (revision 535072) >+++ pkg-install (nonexistent) >@@ -1,42 +0,0 @@ >-#! /bin/sh >- >-# $FreeBSD$ >- >-PATH=/bin:/usr/bin:/usr/sbin >- >-securitywarning() { >-cat <<EOF >- >- === IMPORTANT FOR GPGSQL BACKEND USERS! === >- The following only impacts anyone using the >- gpgsql (PostgreSQL) backend: >- >- An issue has been found in PowerDNS >- Authoritative Server allowing an authorized >- user to cause the server to exit by >- inserting a crafted record in a MASTER type >- zone under their control. The issue is due >- to the fact that the Authoritative Server >- will exit when it tries to store the >- notified serial in the PostgreSQL database, >- if this serial cannot be represented in 31 >- bits. >- >- To fix the issue, run the following command >- against your PostgreSQL pdns database: >- >- ALTER TABLE domains ALTER notified_serial >- TYPE bigint USING CASE WHEN notified_serial >- >= 0 THEN notified_serial::bigint END; >- >- No software changes are required. >- =========================================== >-EOF >-} >- >-case $2 in >-PRE-INSTALL) >- securitywarning >- sleep 5 >- ;; >-esac > >Property changes on: pkg-install >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: pkg-plist >=================================================================== >--- pkg-plist (revision 535072) >+++ pkg-plist (working copy) >@@ -14,6 +14,7 @@ > %%TOOLS%%bin/dnstcpbench > %%TOOLS%%bin/dnswasher > %%TOOLS%%bin/dumresp >+%%IXFRDIST%%bin/ixfrdist > %%TOOLS%%bin/ixplore > %%TOOLS%%bin/nproxy > %%TOOLS%%bin/nsec3dig >@@ -40,6 +41,7 @@ > %%TOOLS%%man/man1/dnspcap2calidns.1.gz > %%TOOLS%%man/man1/dnsscan.1.gz > %%TOOLS%%man/man1/dumresp.1.gz >+%%IXFRDIST%%man/man1/ixfrdist.1.gz > %%TOOLS%%man/man1/ixplore.1.gz > %%TOOLS%%man/man1/nproxy.1.gz > %%TOOLS%%man/man1/nsec3dig.1.gz >@@ -57,6 +59,8 @@ > %%TOOLS%%man/man1/dnsreplay.1.gz > %%TOOLS%%man/man1/dnsscope.1.gz > %%TOOLS%%man/man1/dnswasher.1.gz >+%%IXFRDIST%%man/man5/ixfrdist.yml.5.gz >+%%IXFRDIST%%etc/pdns/ixfrdist.example.yml > @sample etc/pdns/pdns.conf-dist etc/pdns/pdns.conf > %%PORTEXAMPLES%%%%EXAMPLESDIR%%/pdns.conf > %%PORTEXAMPLES%%@dir %%EXAMPLESDIR%% >@@ -63,13 +67,18 @@ > %%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/3.4.0_to_4.1.0_schema.mysql.sql > %%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/3.4.0_to_4.1.0_schema.pgsql.sql > %%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/3.4.0_to_4.0.0_schema.sqlite3.sql >+%%UNIXODBC%%%%PORTDOCS%%%%DOCSDIR%%/4.0.0_to_4.2.0_schema.mssql.sql > %%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/4.0.0_to_4.2.0_schema.sqlite3.sql > %%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/4.1.0_to_4.2.0_schema.mysql.sql > %%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/4.1.0_to_4.2.0_schema.pgsql.sql >+%%UNIXODBC%%%%PORTDOCS%%%%DOCSDIR%%/4.2.0_to_4.3.0_schema.mssql.sql >+%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/4.2.0_to_4.3.0_schema.mysql.sql > %%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/4.2.0_to_4.3.0_schema.pgsql.sql >+%%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/4.2.0_to_4.3.0_schema.sqlite3.sql > %%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.mysql.sql > %%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.pgsql.sql > %%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/dnssec-3.x_to_3.4.0_schema.sqlite3.sql >+%%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/enable-foreign-keys.mysql.sql > %%MYSQL%%%%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.mysql.sql > %%PGSQL%%%%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.pgsql.sql > %%SQLITE3%%%%PORTDOCS%%%%DOCSDIR%%/nodnssec-3.x_to_3.4.0_schema.sqlite3.sql
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
tremere
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 246434
: 214452