diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-07-28 22:37:50 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-07-28 22:37:50 +0000 |
commit | 3b1a46df55b34326a4542c2d15a61c545f1921f5 (patch) | |
tree | 7c22e6179f61f070708f7671a199513c12463ff4 /dns/powerdns/files | |
parent | 8345b2f46718934abdc99bbe1806d7c9f78acef1 (diff) | |
download | ports-3b1a46df55b34326a4542c2d15a61c545f1921f5.tar.gz ports-3b1a46df55b34326a4542c2d15a61c545f1921f5.zip |
Notes
Diffstat (limited to 'dns/powerdns/files')
-rw-r--r-- | dns/powerdns/files/configure.powerdns | 8 | ||||
-rw-r--r-- | dns/powerdns/files/patch-modules_ldapbackend_utils_hh | 42 |
2 files changed, 46 insertions, 4 deletions
diff --git a/dns/powerdns/files/configure.powerdns b/dns/powerdns/files/configure.powerdns index add922f57538..0bf780f4fba6 100644 --- a/dns/powerdns/files/configure.powerdns +++ b/dns/powerdns/files/configure.powerdns @@ -16,8 +16,8 @@ PostgreSQL "PostgreSQL driver" ON \ MySQL323 "MySQL 3.23 driver" OFF \ MySQL40 "MySQL 4.0 driver" OFF \ MySQL41 "MySQL 4.1 driver" OFF \ -OpenLDAP21 "OpenLDAP 2.1 backend" OFF \ OpenLDAP22 "OpenLDAP 2.2 backend" OFF \ +OpenLDAP23 "OpenLDAP 2.3 backend" OFF \ SQLite "SQLite backend" OFF \ Recursor "Build Recursor" OFF \ 2> /tmp/checklist.tmp.$$ @@ -58,12 +58,12 @@ while [ "$1" ]; do echo WITH_MYSQL_DRIVER=YES echo WITH_MYSQL_VER?=41 ;; - \"OpenLDAP21\") + \"OpenLDAP22\") echo WITH_LDAP=YES ;; - \"OpenLDAP22\") + \"OpenLDAP23\") echo WITH_LDAP=YES - echo WANT_OPENLDAP_VER?=22 + echo WANT_OPENLDAP_VER?=23 ;; \"SQLite\") echo WITH_SQLITE=YES diff --git a/dns/powerdns/files/patch-modules_ldapbackend_utils_hh b/dns/powerdns/files/patch-modules_ldapbackend_utils_hh new file mode 100644 index 000000000000..6be2a52534e2 --- /dev/null +++ b/dns/powerdns/files/patch-modules_ldapbackend_utils_hh @@ -0,0 +1,42 @@ +--- modules/ldapbackend/utils.hh.orig Sat Apr 23 23:40:15 2005 ++++ modules/ldapbackend/utils.hh Thu Jul 28 09:03:14 2005 +@@ -73,7 +73,7 @@ + } + + +-inline string ip2ptr4( string ip ) ++inline string ip2ptr4( const string& ip ) + { + string ptr; + vector<string> parts; +@@ -89,7 +89,7 @@ + } + + +-inline string ip2ptr6( string ip ) ++inline string ip2ptr6( const string& ip ) + { + string ptr, part, defstr; + vector<string> parts; +@@ -114,6 +114,21 @@ + } + + return ptr + "ip6.arpa"; ++} ++ ++ ++inline string strbind( const string& search, const string& replace, string subject ) ++{ ++ size_t pos = 0; ++ ++ ++ while( ( pos = subject.find( search, pos ) ) != string::npos ) ++ { ++ subject.replace( pos, search.size(), replace ); ++ pos += replace.size(); ++ } ++ ++ return subject; + } + + #endif |