code:
diff -up bind-9.5.0-P2/bin/dig/dighost.c.rh452060 bind-9.5.0-P2/bin/dig/dighost.c
--- bind-9.5.0-P2/bin/dig/dighost.c.rh452060	2008-12-01 22:30:01.000000000 +0100
+++ bind-9.5.0-P2/bin/dig/dighost.c	2008-12-01 22:30:07.000000000 +0100
@@ -1280,6 +1280,12 @@ clear_query(dig_query_t *query) {

 	debug("clear_query(%p)", query);

+	if (query->waiting_senddone) {
+		debug("send_done not yet called");
+		query->pending_free = ISC_TRUE;
+		return;
+	}
+
 	lookup = query->lookup;

 	if (lookup->current_query == query)
@@ -1301,10 +1307,7 @@ clear_query(dig_query_t *query) {
 	isc_mempool_put(commctx, query->recvspace);
 	isc_buffer_invalidate(&query->recvbuf);
 	isc_buffer_invalidate(&query->lengthbuf);
-	if (query->waiting_senddone)
-		query->pending_free = ISC_TRUE;
-	else
-		isc_mem_free(mctx, query);
+	isc_mem_free(mctx, query);
 }

 /*%
@@ -2175,9 +2178,9 @@ send_done(isc_task_t *_task, isc_event_t
 	isc_event_free(&event);

 	if (query->pending_free)
-		isc_mem_free(mctx, query);
+		clear_query(query);

-	check_if_done();
+	check_next_lookup(l);
 	UNLOCK_LOOKUP;
 }


code:
diff -up bind-9.6.0b1/configure.in.libtool2 bind-9.6.0b1/configure.in
--- bind-9.6.0b1/configure.in.libtool2	2008-11-24 13:05:37.000000000 +0100
+++ bind-9.6.0b1/configure.in	2008-11-24 13:05:56.000000000 +0100
@@ -27,6 +27,8 @@ AC_CONFIG_SUBDIRS(lib/bind)

 AC_CONFIG_HEADER(config.h)

+AC_CONFIG_MACRO_DIR([m4])
+
 AC_CANONICAL_HOST

 AC_PROG_MAKE_SET
diff -up bind-9.6.0b1/Makefile.in.libtool2 bind-9.6.0b1/Makefile.in

repo_name: ayhanyalcinsoy/main


code:
diff -up bind-9.7.0rc2/lib/bind9/Makefile.in.nonexec bind-9.7.0rc2/lib/bind9/Makefile.in
--- bind-9.7.0rc2/lib/bind9/Makefile.in.nonexec	2009-12-06 00:31:40.000000000 +0100
+++ bind-9.7.0rc2/lib/bind9/Makefile.in	2010-01-28 12:13:33.406696161 +0100
@@ -78,7 +78,7 @@ installdirs:
 	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}

 install:: timestamp installdirs
-	${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libbind9.@A@ ${DESTDIR}${libdir}
+	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} libbind9.@A@ ${DESTDIR}${libdir}

 clean distclean::
 	rm -f libbind9.@A@ timestamp
diff -up bind-9.7.0rc2/lib/dns/Makefile.in.nonexec bind-9.7.0rc2/lib/dns/Makefile.in
--- bind-9.7.0rc2/lib/dns/Makefile.in.nonexec	2009-12-06 00:31:40.000000000 +0100
+++ bind-9.7.0rc2/lib/dns/Makefile.in	2010-01-28 12:13:33.406696161 +0100
@@ -131,7 +131,7 @@ installdirs:
 	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}

 install:: timestamp installdirs
-	${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libdns.@A@ ${DESTDIR}${libdir}
+	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} libdns.@A@ ${DESTDIR}${libdir}

 clean distclean::
 	rm -f libdns.@A@ timestamp
diff -up bind-9.7.0rc2/lib/isccc/Makefile.in.nonexec bind-9.7.0rc2/lib/isccc/Makefile.in
--- bind-9.7.0rc2/lib/isccc/Makefile.in.nonexec	2009-12-06 00:31:41.000000000 +0100
+++ bind-9.7.0rc2/lib/isccc/Makefile.in	2010-01-28 12:13:33.406696161 +0100
@@ -80,7 +80,7 @@ installdirs:
 	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}

 install:: timestamp installdirs
-	${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libisccc.@A@ ${DESTDIR}${libdir}
+	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} libisccc.@A@ ${DESTDIR}${libdir}

 clean distclean::
 	rm -f libisccc.@A@ timestamp
diff -up bind-9.7.0rc2/lib/isccfg/Makefile.in.nonexec bind-9.7.0rc2/lib/isccfg/Makefile.in
--- bind-9.7.0rc2/lib/isccfg/Makefile.in.nonexec	2009-12-06 00:31:41.000000000 +0100
+++ bind-9.7.0rc2/lib/isccfg/Makefile.in	2010-01-28 12:13:33.406696161 +0100
@@ -77,7 +77,7 @@ installdirs:
 	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}

 install:: timestamp installdirs
-	${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libisccfg.@A@ ${DESTDIR}${libdir}
+	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} libisccfg.@A@ ${DESTDIR}${libdir}

 clean distclean::
 	rm -f libisccfg.@A@ timestamp
diff -up bind-9.7.0rc2/lib/isc/Makefile.in.nonexec bind-9.7.0rc2/lib/isc/Makefile.in
--- bind-9.7.0rc2/lib/isc/Makefile.in.nonexec	2009-12-18 05:09:55.000000000 +0100
+++ bind-9.7.0rc2/lib/isc/Makefile.in	2010-01-28 12:13:53.566696766 +0100
@@ -121,7 +121,7 @@ installdirs:
 	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}

 install:: timestamp installdirs
-	${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libisc.@A@ ${DESTDIR}${libdir}
+	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} libisc.@A@ ${DESTDIR}${libdir}

 clean distclean::
 	rm -f libisc.@A@ libisc-nosymtbl.@A@ libisc.la \
diff -up bind-9.7.0rc2/lib/lwres/Makefile.in.nonexec bind-9.7.0rc2/lib/lwres/Makefile.in
--- bind-9.7.0rc2/lib/lwres/Makefile.in.nonexec	2007-06-20 01:47:22.000000000 +0200
+++ bind-9.7.0rc2/lib/lwres/Makefile.in	2010-01-28 12:13:33.406696161 +0100
@@ -78,7 +78,7 @@ installdirs:
 	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}

 install:: timestamp installdirs
-	${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} liblwres.@A@ ${DESTDIR}${libdir}
+	${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} liblwres.@A@ ${DESTDIR}${libdir}

 clean distclean::
 	rm -f liblwres.@A@ liblwres.la timestamp


code:
? patch
? lib/isc/lex.c.rh490837
Index: lib/isc/lex.c
===================================================================
RCS file: /var/snap/bind9/lib/isc/lex.c,v
retrieving revision 1.86
diff -p -u -r1.86 lex.c
--- lib/isc/lex.c	17 Sep 2007 09:56:29 -0000	1.86
+++ lib/isc/lex.c	6 Apr 2009 13:24:15 -0000
@@ -425,17 +425,14 @@ isc_lex_gettoken(isc_lex_t *lex, unsigne
 			if (source->is_file) {
 				stream = source->input;

-#if defined(HAVE_FLOCKFILE) && defined(HAVE_GETCUNLOCKED)
-				c = getc_unlocked(stream);
-#else
-				c = getc(stream);
-#endif
-				if (c == EOF) {
-					if (ferror(stream)) {
-						source->result = ISC_R_IOERROR;
-						result = source->result;
+				result = isc_stdio_fgetc(stream, &c);
+
+				if (result != ISC_R_SUCCESS) {
+					if (result != ISC_R_EOF) {
+						source->result = result;
 						goto done;
 					}
+
 					source->at_eof = ISC_TRUE;
 				}
 			} else {
Index: lib/isc/include/isc/stdio.h
===================================================================
RCS file: /var/snap/bind9/lib/isc/include/isc/stdio.h,v
retrieving revision 1.13
diff -p -u -r1.13 stdio.h
--- lib/isc/include/isc/stdio.h	19 Jun 2007 23:47:18 -0000	1.13
+++ lib/isc/include/isc/stdio.h	6 Apr 2009 13:24:15 -0000
@@ -72,6 +72,9 @@ isc_stdio_sync(FILE *f);
  * direct counterpart in the stdio library.
  */

+isc_result_t
+isc_stdio_fgetc(FILE *f, int *ret);
+
 ISC_LANG_ENDDECLS

 #endif /* ISC_STDIO_H */
Index: lib/isc/unix/errno2result.c
===================================================================
RCS file: /var/snap/bind9/lib/isc/unix/errno2result.c,v
retrieving revision 1.17
diff -p -u -r1.17 errno2result.c
--- lib/isc/unix/errno2result.c	19 Jun 2007 23:47:18 -0000	1.17
+++ lib/isc/unix/errno2result.c	6 Apr 2009 13:24:15 -0000
@@ -43,6 +43,7 @@ isc__errno2result(int posixerrno) {
 	case EINVAL:		/* XXX sometimes this is not for files */
 	case ENAMETOOLONG:
 	case EBADF:
+	case EISDIR:
 		return (ISC_R_INVALIDFILE);
 	case ENOENT:
 		return (ISC_R_FILENOTFOUND);
Index: lib/isc/unix/stdio.c
===================================================================
RCS file: /var/snap/bind9/lib/isc/unix/stdio.c,v
retrieving revision 1.8
diff -p -u -r1.8 stdio.c
--- lib/isc/unix/stdio.c	19 Jun 2007 23:47:18 -0000	1.8
+++ lib/isc/unix/stdio.c	6 Apr 2009 13:24:15 -0000
@@ -115,3 +115,22 @@ isc_stdio_sync(FILE *f) {
 		return (isc__errno2result(errno));
 }

+isc_result_t
+isc_stdio_fgetc(FILE *f, int *ret) {
+	int r;
+	isc_result_t result = ISC_R_SUCCESS;
+
+#if defined(HAVE_FLOCKFILE) && defined(HAVE_GETCUNLOCKED)
+	r = fgetc_unlocked(f);
+#else
+	r = fgets(f);
+#endif
+
+	if (r == EOF)
+		result = ferror(f) ? isc__errno2result(errno) : ISC_R_EOF;
+
+	*ret = r;
+
+	return result;
+}
+


code:
diff -up bind-9.7.0/configure.in.rh478718 bind-9.7.0/configure.in
--- bind-9.7.0/configure.in.rh478718	2010-03-01 14:50:02.331207076 +0100
+++ bind-9.7.0/configure.in	2010-03-01 14:50:21.501207488 +0100
@@ -2540,6 +2540,10 @@ main() {
 	AC_MSG_RESULT($arch)
 fi

+if test ! "$arch" = "x86_64" -a "$have_xaddq" = "yes"; then
+	AC_MSG_ERROR([XADDQ present but disabled by Fedora patch!])
+fi
+
 if test "$have_atomic" = "yes"; then
 	AC_MSG_CHECKING([compiler support for inline assembly code])

diff -up bind-9.7.0/lib/isc/include/isc/platform.h.in.rh478718 bind-9.7.0/lib/isc/include/isc/platform.h.in
--- bind-9.7.0/lib/isc/include/isc/platform.h.in.rh478718	2010-03-01 14:50:31.421207522 +0100
+++ bind-9.7.0/lib/isc/include/isc/platform.h.in	2010-03-01 14:50:40.313707286 +0100
@@ -255,7 +255,11 @@
  * If the "xaddq" operation (64bit xadd) is available on this architecture,
  * ISC_PLATFORM_HAVEXADDQ will be defined.
  */
-@ISC_PLATFORM_HAVEXADDQ@
+#ifdef __x86_64__
+#define ISC_PLATFORM_HAVEXADDQ 1
+#else
+#undef ISC_PLATFORM_HAVEXADDQ
+#endif

 /*
  * If the "atomic swap" operation is available on this architecture,


code:
diff -up bind-9.7.2-P2/lib/dns/resolver.c.rh645544 bind-9.7.2-P2/lib/dns/resolver.c
--- bind-9.7.2-P2/lib/dns/resolver.c.rh645544	2010-11-08 14:32:12.254896255 +0100
+++ bind-9.7.2-P2/lib/dns/resolver.c	2010-11-08 14:33:18.674869633 +0100
@@ -1097,7 +1097,7 @@ log_edns(fetchctx_t *fctx) {

 	dns_name_format(&fctx->domain, domainbuf, sizeof(domainbuf));
 	isc_log_write(dns_lctx, DNS_LOGCATEGORY_EDNS_DISABLED,
-		      DNS_LOGMODULE_RESOLVER, ISC_LOG_INFO,
+		      DNS_LOGMODULE_RESOLVER, ISC_LOG_DEBUG(1),
 		      "success resolving '%s' (in '%s'?) after %s",
 		      fctx->info, domainbuf, fctx->reason);

@@ -3795,7 +3795,7 @@ log_lame(fetchctx_t *fctx, dns_adbaddrin
 	dns_name_format(&fctx->domain, domainbuf, sizeof(domainbuf));
 	isc_sockaddr_format(&addrinfo->sockaddr, addrbuf, sizeof(addrbuf));
 	isc_log_write(dns_lctx, DNS_LOGCATEGORY_LAME_SERVERS,
-		      DNS_LOGMODULE_RESOLVER, ISC_LOG_INFO,
+		      DNS_LOGMODULE_RESOLVER, ISC_LOG_DEBUG(1),
 		      "lame server resolving '%s' (in '%s'?): %s",
 		      namebuf, domainbuf, addrbuf);
 }
@@ -3822,7 +3822,7 @@ log_formerr(fetchctx_t *fctx, const char
 	}

 	isc_log_write(dns_lctx, DNS_LOGCATEGORY_RESOLVER,
-		      DNS_LOGMODULE_RESOLVER, ISC_LOG_NOTICE,
+		      DNS_LOGMODULE_RESOLVER, ISC_LOG_DEBUG(1),
 		      "DNS format error from %s resolving %s%s%s: %s",
 		      nsbuf, fctx->info, clmsg, clbuf, msgbuf);
 }


code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<title>bind.git - bind</title>
<meta name='generator' content='cgit v0.9.2'/>
<meta name='robots' content='index, nofollow'/>
<link rel='stylesheet' type='text/css' href='/cgit-data/cgit.css'/>
<link rel='alternate' title='Atom feed' href='http://pkgs.fedoraproject.org/cgit/bind.git/atom/bind97-rh693982.patch?h=master' type='application/atom+xml'/>

index : bind.git	<form method='get' action=''>
<select name='h' onchange='this.form.submit();'>
<option value='f10'>f10</option>
<option value='f11'>f11</option>
<option value='f12'>f12</option>
<option value='f13'>f13</option>
<option value='f14'>f14</option>
<option value='f15'>f15</option>
<option value='f16'>f16</option>
<option value='f17'>f17</option>
<option value='f18'>f18</option>
<option value='f19'>f19</option>
<option value='f20'>f20</option>
<option value='f7'>f7</option>
<option value='f8'>f8</option>
<option value='f9'>f9</option>
<option value='master' selected='selected'>master</option>
<option value='private-fleite-IT101669-branch'>private-fleite-IT101669-branch</option>
</select> <input type='submit' name='' value='switch'/></form>

bind	Jesse Keating

summaryrefslogtreecommitdiffstats	<form class='right' method='get' action='/cgit/bind.git/log/bind97-rh693982.patch'>
<select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='text' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>

path: root/bind97-rh693982.patch

blob: 57bf8122b0d96d08e6899bdf4cdd06f946a60b09 (plain)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

diff -up bind-9.7.3-P3/bin/named/server.c.rh693982 bind-9.7.3-P3/bin/named/server.c
--- bind-9.7.3-P3/bin/named/server.c.rh693982	2011-08-12 17:18:55.611978110 +0200
+++ bind-9.7.3-P3/bin/named/server.c	2011-08-12 17:19:36.009975303 +0200
@@ -4444,15 +4444,6 @@ load_configuration(const char *filename,
 		ns_os_changeuser();

 	/*
-	 * Check that the working directory is writable.
-	 */
-	if (access(".", W_OK) != 0) {
-		isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
-			      NS_LOGMODULE_SERVER, ISC_LOG_ERROR,
-			      "the working directory is not writable");
-	}
-
-	/*
 	 * Configure the logging system.
 	 *
 	 * Do this after changing UID to make sure that any log
@@ -4498,6 +4489,15 @@ load_configuration(const char *filename,
 	}

 	/*
+	 * Check that the working directory is writable.
+	 */
+	if (access(".", W_OK) != 0) {
+		isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
+			      NS_LOGMODULE_SERVER, ISC_LOG_DEBUG(1),
+			      "the working directory is not writable");
+	}
+
+	/*
 	 * Set the default value of the query logging flag depending
 	 * whether a "queries" category has been defined.  This is
 	 * a disgusting hack, but we need to do this for BIND 8

generated  by cgit v0.9.2 at 2013-11-16 11:15:04 (GMT)


code:
/*
 Sample named.conf BIND DNS server 'named' configuration file
 for the Red Hat BIND distribution.

 See the BIND Administrator's Reference Manual (ARM) for details, in:
   file:///usr/share/doc/bind-{version}/arm/Bv9ARM.html
 Also see the BIND Configuration GUI : /usr/bin/system-config-bind and
 its manual.
*/

options
{
	// Put files that named is allowed to write in the data/ directory:
	directory 		"/var/named";		// "Working" directory
	dump-file 		"data/cache_dump.db";
        statistics-file 	"data/named_stats.txt";
        memstatistics-file 	"data/named_mem_stats.txt";

	/*
	  Specify listenning interfaces. You can use list of addresses (';' is
	  delimiter) or keywords "any"/"none"
	*/
	//listen-on port 53	{ any; };
	listen-on port 53	{ 127.0.0.1; };

	//listen-on-v6 port 53	{ any; };
	listen-on-v6 port 53	{ ::1; };

	/*
	  Access restrictions

	  There are two important options:
	    allow-query { argument; };
	      - allow queries for authoritative data

	    allow-query-cache { argument; };
	      - allow queries for non-authoritative data (mostly cached data)

	  You can use address, network address or keywords "any"/"localhost"/"none" as argument
	  Examples:
	    allow-query { localhost; 10.0.0.1; 192.168.1.0/8; };
	    allow-query-cache { ::1; fe80::5c63:a8ff:fe2f:4526; 10.0.0.1; };
	*/

	allow-query		{ localhost; };
	allow-query-cache	{ localhost; };

	// Enable/disable recursion - recursion yes/no;
	recursion yes;

	/* DNSSEC related options. See information about keys ("Trusted keys", bellow) */

	/* Enable serving of DNSSEC related data - enable on both authoritative
 	   and recursive servers DNSSEC aware servers */
	dnssec-enable yes;

	/* Enable DNSSEC validation on recursive servers */
	dnssec-validation yes;

	/* Enable DLV by default, use built-in ISC DLV key. */
	dnssec-lookaside auto;
};

logging
{
/*      If you want to enable debugging, eg. using the 'rndc trace' command,
 *      named will try to write the 'named.run' file in the $directory (/var/named).
 *      By default, SELinux policy does not allow named to modify the /var/named directory,
 *      so put the default debug log file in data/ :
 */
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

/*
 Views let a name server answer a DNS query differently depending on who is asking.

 By default, if named.conf contains no "view" clauses, all zones are in the
 "default" view, which matches all clients.

 Views are processed sequentially. The first match is used so the last view should
 match "any" - it's fallback and the most restricted view.

 If named.conf contains any "view" clause, then all zones MUST be in a view.
*/

view "localhost_resolver"
{
/* This view sets up named to be a localhost resolver ( caching only nameserver ).
 * If all you want is a caching-only nameserver, then you need only define this view:
 */
	match-clients 		{ localhost; };
	recursion yes;

	# all views must contain the root hints zone:
	zone "." IN {
	        type hint;
	        file "/var/named/named.ca";
	};

        /* these are zones that contain definitions for all the localhost
         * names and addresses, as recommended in RFC1912 - these names should
	 * not leak to the other nameservers:
	 */
	include "/etc/named.rfc1912.zones";
};
view "internal"
{
/* This view will contain zones you want to serve only to "internal" clients
   that connect via your directly attached LAN interfaces - "localnets" .
 */
	match-clients		{ localnets; };
	recursion yes;

	zone "." IN {
	        type hint;
	        file "/var/named/named.ca";
	};

        /* these are zones that contain definitions for all the localhost
         * names and addresses, as recommended in RFC1912 - these names should
	 * not leak to the other nameservers:
	 */
	include "/etc/named.rfc1912.zones";

	// These are your "authoritative" internal zones, and would probably
	// also be included in the "localhost_resolver" view above :

	/*
	  NOTE for dynamic DNS zones and secondary zones:

	  DO NOT USE SAME FILES IN MULTIPLE VIEWS!

	  If you are using views and DDNS/secondary zones it is strongly
	  recommended to read FAQ on ISC site (www.isc.org), section
	  "Configuration and Setup Questions", questions
	  "How do I share a dynamic zone between multiple views?" and
	  "How can I make a server a slave for both an internal and an external
	   view at the same time?"
	*/

	zone "my.internal.zone" {
		type master;
		file "my.internal.zone.db";
	};
	zone "my.slave.internal.zone" {
		type slave;
		file "slaves/my.slave.internal.zone.db";
		masters { /* put master nameserver IPs here */ 127.0.0.1; } ;
		// put slave zones in the slaves/ directory so named can update them
	};
	zone "my.ddns.internal.zone" {
		type master;
		allow-update { key ddns_key; };
		file "dynamic/my.ddns.internal.zone.db";
		// put dynamically updateable zones in the slaves/ directory so named can update them
	};
};

key ddns_key
{
	algorithm hmac-md5;
	secret "use /usr/sbin/dnssec-keygen to generate TSIG keys";
};

view "external"
{
/* This view will contain zones you want to serve only to "external" clients
 * that have addresses that are not match any above view:
 */
	match-clients		{ any; };

	zone "." IN {
	        type hint;
	        file "/var/named/named.ca";
	};

	recursion no;
	// you'd probably want to deny recursion to external clients, so you don't
        // end up providing free DNS service to all takers

	// These are your "authoritative" external zones, and would probably
        // contain entries for just your web and mail servers:

	zone "my.external.zone" {
		type master;
		file "my.external.zone.db";
	};
};

/* Trusted keys

  This statement contains DNSSEC keys. If you want DNSSEC aware resolver you
  have to configure at least one trusted key.

  Note that no key written below is valid. Especially root key because root zone
  is not signed yet.
*/
/*
trusted-keys {
// Root Key
"." 257 3 3 "BNY4wrWM1nCfJ+CXd0rVXyYmobt7sEEfK3clRbGaTwSJxrGkxJWoZu6I7PzJu/
             E9gx4UC1zGAHlXKdE4zYIpRhaBKnvcC2U9mZhkdUpd1Vso/HAdjNe8LmMlnzY3
             zy2Xy4klWOADTPzSv9eamj8V18PHGjBLaVtYvk/ln5ZApjYghf+6fElrmLkdaz
             MQ2OCnACR817DF4BBa7UR/beDHyp5iWTXWSi6XmoJLbG9Scqc7l70KDqlvXR3M
             /lUUVRbkeg1IPJSidmK3ZyCllh4XSKbje/45SKucHgnwU5jefMtq66gKodQj+M
             iA21AfUVe7u99WzTLzY3qlxDhxYQQ20FQ97S+LKUTpQcq27R7AT3/V5hRQxScI
             Nqwcz4jYqZD2fQdgxbcDTClU0CRBdiieyLMNzXG3";

// Key for forward zone
example.com. 257 3 5 "AwEAAaxPMcR2x0HbQV4WeZB6oEDX+r0QM65KbhTjrW1ZaARmPhEZZe
                      3Y9ifgEuq7vZ/zGZUdEGNWy+JZzus0lUptwgjGwhUS1558Hb4JKUbb
                      OTcM8pwXlj0EiX3oDFVmjHO444gLkBO UKUf/mC7HvfwYH/Be22GnC
                      lrinKJp1Og4ywzO9WglMk7jbfW33gUKvirTHr25GL7STQUzBb5Usxt
                      8lgnyTUHs1t3JwCY5hKZ6CqFxmAVZP20igTixin/1LcrgX/KMEGd/b
                      iuvF4qJCyduieHukuY3H4XMAcR+xia2 nIUPvm/oyWR8BW/hWdzOvn
                      SCThlHf3xiYleDbt/o1OTQ09A0=";

// Key for reverse zone.
2.0.192.IN-ADDRPA.NET. 257 3 5 "AQOnS4xn/IgOUpBPJ3bogzwcxOdNax071L18QqZnQQQA
                                VVr+iLhGTnNGp3HoWQLUIzKrJVZ3zggy3WwNT6kZo6c0
                                tszYqbtvchmgQC8CzKojM/W16i6MG/ea fGU3siaOdS0
                                yOI6BgPsw+YZdzlYMaIJGf4M4dyoKIhzdZyQ2bYQrjyQ
                                4LB0lC7aOnsMyYKHHYeRv PxjIQXmdqgOJGq+vsevG06
                                zW+1xgYJh9rCIfnm1GX/KMgxLPG2vXTD/RnLX+D3T3UL
                                7HJYHJhAZD5L59VvjSPsZJHeDCUyWYrvPZesZDIRvhDD
                                52SKvbheeTJUm6EhkzytNN2SN96QRk8j/iI8ib";
};
*/


code:
/var/named/data/named.run {
    missingok
    create 0644 named named
    postrotate
        /bin/service bind reload  2> /dev/null > /dev/null || true
    endscript
}


code:
$ORIGIN 127.in-addr.arpa.
$TTL 1W
@			1D IN SOA	localhost. root.localhost. (
					2002081601	; serial
					3H		; refresh
					15M		; retry
					1W		; expiry
					1D )		; minimum

			1D IN NS	localhost.
*			1D IN PTR	localhost.


code:
$TTL 1W
@       IN      SOA     ns.localhost. root.localhost.  (
                                      2002081601 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      604800     ; Expire - 1 week
                                      86400 )    ; Minimum
		IN      NS      127.0.0.1
localhost.	IN	A	127.0.0.1


code:
;       This file holds the information on root name servers needed to
;       initialize cache of Internet domain name servers
;       (e.g. reference this file in the "cache  .  <file>"
;       configuration file of BIND domain name servers).
;
;       This file is made available by InterNIC
;       under anonymous FTP as
;           file                /domain/named.root
;           on server           FTP.INTERNIC.NET
;       -OR-                    RS.INTERNIC.NET
;
;       last update:    Dec 12, 2008
;       related version of root zone:   2008121200
;
; formerly NS.INTERNIC.NET
;
.                        3600000  IN  NS    A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET.      3600000      A     198.41.0.4
A.ROOT-SERVERS.NET.      3600000      AAAA  2001:503:BA3E::2:30
;
; FORMERLY NS1.ISI.EDU
;
.                        3600000      NS    B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET.      3600000      A     192.228.79.201
;
; FORMERLY C.PSI.NET
;
.                        3600000      NS    C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET.      3600000      A     192.33.4.12
;
; FORMERLY TERP.UMD.EDU
;
.                        3600000      NS    D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET.      3600000      A     128.8.10.90
;
; FORMERLY NS.NASA.GOV
;
.                        3600000      NS    E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET.      3600000      A     192.203.230.10
;
; FORMERLY NS.ISC.ORG
;
.                        3600000      NS    F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET.      3600000      A     192.5.5.241
F.ROOT-SERVERS.NET.      3600000      AAAA  2001:500:2F::F
;
; FORMERLY NS.NIC.DDN.MIL
;
.                        3600000      NS    G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET.      3600000      A     192.112.36.4
;
; FORMERLY AOS.ARL.ARMY.MIL
;
.                        3600000      NS    H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET.      3600000      A     128.63.2.53
H.ROOT-SERVERS.NET.      3600000      AAAA  2001:500:1::803F:235
;
; FORMERLY NIC.NORDU.NET
;
.                        3600000      NS    I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET.      3600000      A     192.36.148.17
;
; OPERATED BY VERISIGN, INC.
;
.                        3600000      NS    J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET.      3600000      A     192.58.128.30
J.ROOT-SERVERS.NET.      3600000      AAAA  2001:503:C27::2:30
;
; OPERATED BY RIPE NCC
;
.                        3600000      NS    K.ROOT-SERVERS.NET.
K.ROOT-SERVERS.NET.      3600000      A     193.0.14.129
K.ROOT-SERVERS.NET.      3600000      AAAA  2001:7FD::1
;
; OPERATED BY ICANN
;
.                        3600000      NS    L.ROOT-SERVERS.NET.
L.ROOT-SERVERS.NET.      3600000      A     199.7.83.42
L.ROOT-SERVERS.NET.      3600000      AAAA  2001:500:3::42
;
; OPERATED BY WIDE
;
.                        3600000      NS    M.ROOT-SERVERS.NET.
M.ROOT-SERVERS.NET.      3600000      A     202.12.27.33
M.ROOT-SERVERS.NET.      3600000      AAAA  2001:DC3::35
; End of File


code:
options {
    directory "/var/named";

    // uncomment the following lines to turn on DNS forwarding,
    // and change the forwarding ip address(es) :
    //forward first;
    //forwarders {
    //  123.123.123.123;
    //  123.123.123.123;
    //};

    listen-on-v6 { none; };
    listen-on { 127.0.0.1; };

    // to allow only specific hosts to use the DNS server:
    //allow-query {
    //  127.0.0.1;
    //};

    // if you have problems and are behind a firewall:
    //query-source address * port 53;
    pid-file "/run/named/named.pid";

    // Enable recursion , this is a potential security problem, see http://www.us-cert.gov/reading_room/DNS-recursion033006.pdf
    // recursion yes;
    // allow-recursion { localnets; localhost; };
    // allow-query-cache { localnets; localhost; };
};

// Briefly, a zone which has been declared delegation-only will be effectively
// limited to containing NS RRs for subdomains, but no actual data beyond its
// own apex (for example, its SOA RR and apex NS RRset). This can be used to
// filter out "wildcard" or "synthesized" data from NAT boxes or from
// authoritative name servers whose undelegated (in-zone) data is of no
// interest.
// See http://www.isc.org/products/BIND/delegation-only.html for more info

//zone "COM" { type delegation-only; };
//zone "NET" { type delegation-only; };

zone "." IN {
    type hint;
    file "named.ca";
};

zone "localhost" IN {
    type master;
    file "pri/localhost.zone";
    allow-update { none; };
    notify no;
};

zone "127.in-addr.arpa" IN {
    type master;
    file "pri/127.zone";
    allow-update { none; };
    notify no;
};


code:
# Set various named options here.
#
OPTIONS=""

# Set this to the number of processors you have.
#
CPU="1"


code:
diff -ur bind-9.2.3-orig//bin/dig/nslookup.8 bind-9.2.3/bin/dig/nslookup.8
--- bind-9.2.3-orig/bin/dig/nslookup.8	2005-09-30 23:11:23.000000000 +0300
+++ bind-9.2.3/bin/dig/nslookup.8	2005-09-30 23:10:36.000000000 +0300
@@ -0,0 +1,534 @@
+.\"
+.\" ++Copyright++ 1985, 1989
+.\" -
+.\" Copyright (c) 1985, 1989
+.\"    The Regents of the University of California.  All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\" 	This product includes software developed by the University of
+.\" 	California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\" -
+.\" Portions Copyright (c) 1993 by Digital Equipment Corporation.
+.\"
+.\" Permission to use, copy, modify, and distribute this software for any
+.\" purpose with or without fee is hereby granted, provided that the above
+.\" copyright notice and this permission notice appear in all copies, and that
+.\" the name of Digital Equipment Corporation not be used in advertising or
+.\" publicity pertaining to distribution of the document or software without
+.\" specific, written prior permission.
+.\"
+.\" THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
+.\" WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
+.\" OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL DIGITAL EQUIPMENT
+.\" CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
+.\" DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
+.\" PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+.\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+.\" SOFTWARE.
+.\" -
+.\" --Copyright--
+.\"
+.\"	@(#)nslookup.8	5.3 (Berkeley) 6/24/90
+.\"
+.Dd June 24, 1990
+.Dt NSLOOKUP 8
+.Os BSD 4
+.Sh NAME
+.Nm nslookup
+.Nd query Internet name servers interactively
+.Sh SYNOPSIS
+.Nm nslookup
+.Op Fl option Ar ...
+.Op Ar host-to-find | Fl Op Ar server
+.Sh DESCRIPTION
+.Ic Nslookup
+is a program to query Internet domain name servers.
+.Ic Nslookup
+has two modes: interactive and non-interactive.
+Interactive mode allows the user to query name servers for
+information about various hosts and domains or to print a list of hosts
+in a domain.
+Non-interactive mode is used to print just the name and requested information
+for a host or domain.
+.Sh ARGUMENTS
+Interactive mode is entered in the following cases:
+.Bl -tag -width "a)  "
+.It a)
+when no arguments are given (the default name server will be used),
+.It b)
+when the first argument is a hyphen (-) and the second argument
+is the host name or Internet address of a name server.
+.El
+.Pp
+Non-interactive mode is used when the name or Internet address
+of the host to be looked up
+is given as the first argument. The optional second argument specifies
+the host name or address of a name server.
+.Pp
+The options listed under the
+.Dq Li set
+command below can be specified in
+the
+.Pa .nslookuprc
+file in the user's home directory if they are listed
+one per line.  Options can also be specified
+on the command line if they precede the arguments and are prefixed with
+a hyphen.  For example, to change the default query type to host information,
+and the initial timeout to 10 seconds, type:
+.Bd -literal -offset indent
+	nslookup -query=hinfo  -timeout=10
+.Ed
+.Sh INTERACTIVE COMMANDS
+Commands may be interrupted at any time by typing a control-C.
+To exit, type a control-D
+.Pq Dv EOF
+or type
+.Li exit .
+The command line length must be less than 256 characters.
+To treat a built-in command as a host name,
+precede it with an escape character
+.Pq .&\\ .
+.Sy N.B.:  An unrecognized command will be interpreted as a host name.
+.Bl -tag -width "lserver"
+.It Ar host Op Ar server
+Look up information for
+.Ar host
+using the current default server or using
+.Ar server ,
+if specified.
+If
+.Ar host
+is an Internet address and the query type is
+.Dv A
+or
+.Dv PTR ,
+the name of the host is returned.
+If
+.Ar host
+is a name and does not have a trailing period, the default
+domain name is appended to the name.  (This behavior depends on the state of the
+.Ic set
+options
+.Ic domain , srchlist , defname ,
+and
+.Ic search . )
+.Pp
+To look up a host not in the current domain, append a period to
+the name.
+.It Ic server Ar domain
+.It Ic lserver Ar domain
+Change the default server to
+.Ar domain ;
+.Ic lserver
+uses the initial server to look up information about
+.Ar domain ,
+while
+.Ic server
+uses the current default server.
+If an authoritative answer can't be found, the names of servers
+that might have the answer are returned.
+.It Ic root
+Changes the default server to the server for the root of the domain name space.
+Currently, the host
+.Li ns.internic.net
+is used.
+(This command is a synonym for
+.Dq Ic lserver ns.internic.net . )
+The name of the root server can be changed with the
+.Dq Ic set root
+command.
+.It Xo Ic finger Op Ar name
+.Op Ic > Ar filename
+.Xc
+.It Xo Ic finger Op Ar name
+.Op Ic >> Ar filename
+.Xc
+Connects with the finger server on the current host.
+The current host is defined when a previous lookup for a host
+was successful and returned address information (see the
+.Dq Ic set querytype=A
+command).
+The
+.Ar name
+is optional.
+.Ic >
+and
+.Ic >>
+can be used to redirect output in the usual manner.
+.It Xo Ic ls Op Ar option
+.Ar domain Op Ic > Ar filename
+.Xc
+.It Xo Ic ls Op Ar option
+.Ar domain Op Ic >> Ar filename
+.Xc
+List the information available for
+.Ar domain ,
+optionally creating or appending to
+.Ar filename .
+The default output contains host names and their Internet addresses.
+.Ar Option
+can be one of the following:
+.Bl -tag -width "-a  "
+.It Fl t Ar querytype
+lists all records of the specified type (see
+.Ar querytype
+below).
+.It Fl a
+lists aliases of hosts in the domain;
+synonym for
+.Dq Fl t Dv CNAME .
+.It Fl d
+lists all records for the domain;
+synonym for
+.Dq Fl t Dv ANY .
+.It Fl h
+lists CPU and operating system information for the domain;
+synonym for
+.Dq Fl t Dv HINFO .
+.It Fl s
+lists well-known services of hosts in the domain;
+synonym for
+.Dq Fl t Dv WKS .
+.El
+.Pp
+When output is directed to a file, hash marks are printed for every
+50 records received from the server.
+.It Ic view Ar filename
+Sorts and lists the output of previous
+.Ic ls
+command(s) with
+.Xr more 1 .
+.It Ic help
+.It Ic ?
+Prints a brief summary of commands.
+.It Ic exit
+Exits the program.
+.It Xo Ic set Ar keyword
+.Ns Op = Ns Ar value
+.Xc
+This command is used to change state information that affects the lookups.
+Valid keywords are:
+.Bl -tag -width "class=v"
+.It Ic all
+Prints the current values of the frequently-used options to
+.Ic set .
+Information about the  current default server and host is also printed.
+.It Ic class= Ns Ar value
+Change the query class to one of:
+.Bl -tag -width "HESIOD  "
+.It Dv IN
+the Internet class
+.It Dv CHAOS
+the Chaos class
+.It Dv HESIOD
+the MIT Athena Hesiod class
+.It Dv ANY
+wildcard (any of the above)
+.El
+.Pp
+The class specifies the protocol group of the information.
+.Pp
+(Default =
+.Dv IN ;
+abbreviation =
+.Ic cl )
+.It Xo Op Ic no
+.Ns Ic debug
+.Xc
+Turn debugging mode on.  A lot more information is printed about the
+packet sent to the server and the resulting answer.
+.Pp
+(Default =
+.Ic nodebug ;
+abbreviation =
+.Xo Op Ic no
+.Ns Ic deb )
+.Xc
+.It Xo Op Ic no
+.Ns Ic d2
+.Xc
+Turn exhaustive debugging mode on.
+Essentially all fields of every packet are printed.
+.Pp
+(Default =
+.Ic nod2 )
+.It Ic domain= Ns Ar name
+Change the default domain name to
+.Ar name .
+The default domain name is appended to a lookup request depending on the
+state of the
+.Ic defname
+and
+.Ic search
+options.
+The domain search list contains the parents of the default domain if it has
+at least two components in its name.
+For example, if the default domain
+is CC.Berkeley.EDU, the search list is CC.Berkeley.EDU and Berkeley.EDU.
+Use the
+.Dq Ic set srchlist
+command to specify a different list.
+Use the
+.Dq Ic set all
+command to display the list.
+.Pp
+(Default = value from
+.Xr hostname 1 ,
+.Pa /etc/resolv.conf ,
+or
+.Ev LOCALDOMAIN;
+abbreviation =
+.Ic do )
+.It Ic srchlist= Ns Ar name1/name2/...
+Change the default domain name to
+.Ar name1
+and the domain search list
+to
+.Ar name1 , name2 ,
+etc.  A maximum of 6 names separated by slashes (/)
+can be specified.
+For example,
+.Bd -literal -offset indent
+set srchlist=lcs.MIT.EDU/ai.MIT.EDU/MIT.EDU
+.Ed
+.Pp
+sets the domain to lcs.MIT.EDU and the search list to the three names.
+This command overrides the
+default domain name and search list of the
+.Dq Ic set domain
+command.
+Use the
+.Dq Ic set all
+command to display the list.
+.Pp
+(Default = value based on
+.Xr hostname 1 ,
+.Pa /etc/resolv.conf ,
+or
+.Ev LOCALDOMAIN;
+abbreviation =
+.Ic srchl )
+.It Xo Op Ic no
+.Ns Ic defname
+.Xc
+If set, append the default domain name to a single-component lookup request
+(i.e., one that does not contain a period).
+.Pp
+(Default =
+.Ic defname ;
+abbreviation =
+.Xo Op Ic no
+.Ns Ic defname )
+.Xc
+.It Xo Op Ic no
+.Ns Ic search
+.Xc
+If the lookup request contains at least one period but
+.Em doesn't
+end with a trailing period, append the domain names in the domain search list
+to the request until an answer is received.
+.Pp
+(Default =
+.Ic search ;
+abbreviation =
+.Xo Op Ic no
+.Ns Ic sea )
+.Xc
+.It Ic port= Ns Ar value
+Change the default TCP/UDP name server port to
+.Ar value .
+.Pp
+(Default = 53;
+abbreviation =
+.Ic \&po )
+.It Ic querytype= Ns Ar value
+.It Ic type= Ns Ar value
+Change the type of information query to one of:
+.Bl -tag -width "HINFO   "
+.It Dv A
+the host's Internet address.
+.It Dv CNAME
+the canonical name for an alias.
+.It Dv HINFO
+the host CPU and operating system type.
+.It Dv MINFO
+the mailbox or mail list information.
+.It Dv MX
+the mail exchanger.
+.It Dv NS
+the name server for the named zone.
+.It Dv PTR
+the host name if the query is an Internet address;
+otherwise, the pointer to other information.
+.It Dv SOA
+the domain's
+.Dq start-of-authority
+information.
+.It Dv TXT
+the text information.
+.It Dv UINFO
+the user information.
+.It Dv WKS
+the supported well-known services.
+.El
+.Pp
+Other types
+.Pq Dv ANY, AXFR, MB, MD, MF, NULL
+are described in the RFC-1035 document.
+.Pp
+(Default =
+.Dv A ;
+abbreviations =
+.Ic q , ty )
+.It Xo Op Ic no
+.Ns Ic recurse
+.Xc
+Tell the name server to query other servers if it does not have the
+information.
+.Pp
+(Default =
+.Ic recurse ;
+abbreviation =
+.Xo Op Ic no
+.Ns Ic rec )
+.Xc
+.It Ic retry= Ns Ar number
+Set the number of retries to
+.Ar number .
+When a reply to a request is not received within a certain
+amount of time (changed with
+.Dq Ic set timeout ) ,
+the timeout period is doubled and the request is resent.
+The retry value controls how many times a request is resent before giving up.
+.Pp
+(Default = 4, abbreviation =
+.Ic ret )
+.It Ic root= Ns Ar host
+Change the name of the root server to
+.Ar host .
+This affects the
+.Dq Ic root
+command.
+.Pp
+(Default =
+.Ic ns.internic.net. ;
+abbreviation =
+.Ic ro )
+.It Ic timeout= Ns Ar number
+Change the initial timeout interval for waiting for a reply to
+.Ar number
+seconds. Each retry doubles the timeout period.
+.Pp
+(Default = 5 seconds; abbreviation =
+.Ic ti )
+.It Xo Op Ic no
+.Ns Ic vc
+.Xc
+Always use a virtual circuit when sending requests to the server.
+.Pp
+(Default =
+.Ic novc ;
+abbreviation =
+.Xo Op Ic no
+.Ns Ic v )
+.Xc
+.It Xo Op Ic no
+.Ns Ic ignoretc
+.Xc
+Ignore packet truncation errors.
+.Pp
+(Default =
+.Ic noignoretc ;
+abbreviation =
+.Xo Op Ic no
+.Ns Ic ig )
+.Xc
+.El
+.El
+.Sh DIAGNOSTICS
+If the lookup request was not successful, an error message is printed.
+Possible errors are:
+.Bl -tag -width "Timed"
+.It Li Timed out
+The server did not respond to a request after a certain amount of
+time (changed with
+.Dq Ic set timeout= Ns Ar value )
+and a certain number of retries (changed with
+.Dq Ic set retry= Ns Ar value ) .
+.It Li \&No response from server
+No name server is running on the server machine.
+.It Li \&No records
+The server does not have resource records of the current query type for the
+host, although the host name is valid.
+The query type is specified with the
+.Dq Ic set querytype
+command.
+.It Li Non-existent domain
+The host or domain name does not exist.
+.It Li Connection refused
+.It Li Network is unreachable
+The connection to the name or finger server could not be made
+at the current time.
+This error commonly occurs with
+.Ic ls
+and
+.Ic finger
+requests.
+.It Li Server failure
+The name server found an internal inconsistency in its database
+and could not return a valid answer.
+.It Li Refused
+The name server refused to service the request.
+.It Li Format error
+The name server found that the request packet was not in the proper format.
+It may indicate an error in
+.Nm nslookup .
+.El
+.Sh FILES
+.Bl -tag -width "/usr/share/misc/nslookup.helpXXX" -compact
+.It Pa /etc/resolv.conf
+initial domain name and name server addresses
+.It Pa $HOME/.nslookuprc
+user's initial options
+.It Pa /usr/share/misc/nslookup.help
+summary of commands
+.Sh ENVIRONMENT
+.Bl -tag -width "HOSTALIASESXXXX" -compact
+.It Ev HOSTALIASES
+file containing host aliases
+.It Ev LOCALDOMAIN
+overrides default domain
+.Sh SEE ALSO
+.Xr named 8 ,
+.Xr resolver 3 ,
+.Xr resolver 5 ;
+RFC-1034,
+.Dq Domain Names - Concepts and Facilities ;
+RFC-1035,
+.Dq Domain Names - Implementation and Specification .
+.Sh AUTHOR
+Andrew Cherenson


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>bind</Name>
        <Homepage>http://www.isc.org/products/BIND/bind9.html</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>service</IsA>
        The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) server
        <Description>bind is an implementation of the DNS protocols, bind includes a DNS server (named), a resolver library and tools for verifying that the DNS server is operating properly.</Description>
        <Archive sha1sum="4ddb2670976c06af7e86352616383958d82c51ce" type="targz">ftp://ftp.isc.org/isc/bind9/9.10.2/bind-9.10.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>openssl-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>libcap-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>e2fsprogs-devel</Dependency>
            <Dependency>readline-devel</Dependency>
            <Dependency>geoip-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">nslookup-pisilinux.patch</Patch>
            <Patch level="1">fedora/bind-9.5-PIE.patch</Patch>
            <Patch level="1">fedora/bind-9.5-parallel-build.patch</Patch>
            <Patch level="1">fedora/bind-96-libtool2.patch</Patch>
            <Patch level="1">fedora/bind-95-rh452060.patch</Patch>
            <Patch level="0">fedora/bind93-rh490837.patch</Patch>
            <Patch level="1">fedora/bind97-rh478718.patch</Patch>
            <Patch level="1">fedora/bind97-rh645544.patch</Patch>
            <Patch level="1">fedora/bind97-rh693982.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>bind-libs</Name>
        <IsA>library</IsA>
        <PartOf>server.library</PartOf>
        bind-libs contains the libraries used by both the bind server package and the tools package
        <RuntimeDependencies>
            <Dependency>openssl</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>mit-kerberos</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
        </Files>
    </Package>

    <Package>
        <Name>bind-devel</Name>
        <IsA>library</IsA>
        <PartOf>server.library</PartOf>
        bind header and development files
        <RuntimeDependencies>
            <Dependency release="current">bind-libs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="executable">/usr/bin/isc-config.sh</Path>
            <Path fileType="man">/usr/share/man/man1/isc-config*</Path>
            <Path fileType="man">/usr/share/man/man3/lwres*</Path>
        </Files>
    </Package>

    <Package>
        <Name>bind-tools</Name>
        <IsA>app:console</IsA>
        <PartOf>network.analyzer</PartOf>
        Utilities for querying DNS name servers
        <RuntimeDependencies>
            <Dependency release="current">bind-libs</Dependency>
            <Dependency>readline</Dependency>
            <Dependency>mit-kerberos</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="man">/usr/share/man/man1</Path>
        </Files>
    </Package>

    <Package>
        <Name>bind-chroot</Name>
        <IsA>service</IsA>
        A chroot runtime environment for the ISC BIND DNS server 'named'
        <RuntimeDependencies>
            <Dependency release="current">bind</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc/rsyslog.d/bind_chroot.conf</Path>
            <Path fileType="config">/var/named/chroot/etc</Path>
            <Path fileType="data">/var/named/chroot</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/etc/rsyslog.d/bind_chroot.conf" owner="root" group="root" permission="0644">chroot.rsyslog</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="chroot_package.py">System.Package</COMAR>
            <COMAR script="chroot_service.py">System.Service</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>bind</Name>
        <IsA>service</IsA>
        <RuntimeDependencies>
            <Dependency release="current">bind-libs</Dependency>
            <Dependency>libcap</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>openssl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="data">/var</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
            <Path fileType="man">/usr/share/man/man5</Path>
            <Path fileType="man">/usr/share/man/man8</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/bind/named.conf">named.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/named">named.confd</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/var/named/named.ca">gentoo/named.ca</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/var/named/pri/127.zone">gentoo/127.zone</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/var/named/pri/localhost.zone">gentoo/localhost.zone</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/logrotate.d/named">fedora/named.logrotate</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
            <COMAR script="bind_package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-05-09</Date>
            <Version>9.10.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>9.10.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-05-08</Date>
            <Version>9.10.2</Version>
            <Comment>First release</Comment>
            <Name>Vedat Demir</Name>
            <Email>vedat@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>bind</Name>
        Berkeley İnternet İsim Alanı (BIND) DNS (Alan Adı Sistemi) sunucusu
        <Description xml:lang="tr">bind, DNS protokollerinin gerçeklenimidir. DNS sunucu (named) ve bu sunucunun düzgün çalışması ve doğrulamasını yapılması için gerekli çözümleyici kitaplık ve araçları içerir.</Description>
    </Source>

    <Package>
        <Name>bind-tools</Name>
        DNS isim çözümleme araçları
    </Package>

    <Package>
        <Name>bind-chroot</Name>
        bind sunucusunu chroot içinde çalıştırmak için gerekli dizin ve dosyalar
    </Package>

    <Package>
        <Name>bind-libs</Name>
        bind kitaplık dosyaları
    </Package>

    <Package>
        <Name>bind-devel</Name>
        bind geliştirme başlıkları ve araçları
    </Package>
</PISI>


code:
<PISI>
    <Name>server</Name>
</PISI>


code:
<PISI>
    <Name>server.database</Name>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

import os
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir="Firebird-%s-0" % get.srcVERSION()

def setup():
    shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS())
    #shelltools.export("CXXFLAGS", "%s -std=gnu++98 -fno-lifetime-dse" % get.CXXFLAGS())
    shelltools.export("CXXFLAGS", "%s -fno-lifetime-dse" % get.CXXFLAGS())
    pisitools.dosed("src/isql/isql.epp", '"isql\s', '"fbsql ')
    pisitools.dosed("src/msgs/history2.sql", 'isql\s', 'fbsql ')
    pisitools.dosed("src/msgs/messages2.sql", 'isql\s', 'fbsql ')
    pisitools.dosed("src/msgs/messages2.sql", 'ISQL\s', 'FBSQL ')
    shelltools.system("find ./ -name \*.sh -print0 | xargs -0 chmod +x")
    for d in ("btyacc", "editline", "icu"):
        shelltools.unlinkDir("extern/%s" % d)
    autotools.autoreconf("-fi")
    autotools.configure("--prefix=/opt/firebird \
                         --disable-static \
                         --enable-superserver \
                         --with-editline \
                         --with-gnu-ld \
                         --with-system-editline \
                         --with-system-icu \
                         ")

def build():
    #Parallel build is broken
    #shelltools.export("CXXFLAGS", "%s -std=gnu++98 -fno-lifetime-dse" % get.CXXFLAGS())
    shelltools.export("CXXFLAGS", "%s -fno-lifetime-dse" % get.CXXFLAGS())
    autotools.make("-j1")
    shelltools.cd("gen")
    pisitools.dosed("install/makeInstallImage.sh", "exit 1", "# exit 1")
    pisitools.dosed("install/makeInstallImage.sh", "chown", 'echo ""# chown')
    pisitools.dosed("install/makeInstallImage.sh", "chmod", 'echo ""# chmod')
    autotools.make("-f Makefile.install buildRoot")

def install():
    # Copy to install directory
    shelltools.copytree("gen/buildroot/", get.installDIR())

    # Move headers
    pisitools.remove("/usr/include/*")
    pisitools.domove("/opt/firebird/include", "/usr/include", "firebird")

    # Fix client libraries symlinks
    pisitools.removeDir("/usr/lib*")
    for libs in os.listdir("%s/opt/firebird/lib" % get.installDIR()):
        pisitools.dosym("/opt/firebird/lib/%s" % libs, "/usr/lib/%s" % libs)
    pisitools.dosym("/opt/firebird/plugins/libfbtrace.so", "/usr/lib/libfbtrace.so")

    # Add support for old client's
    pisitools.dosym("libfbclient.so", "/usr/lib/libgds.so")
    pisitools.dosym("libfbclient.so", "/usr/lib/libgds.so.0")
    pisitools.dosym("libfbclient.so", "/opt/firebird/lib/libgds.so")
    pisitools.dosym("libfbclient.so", "/opt/firebird/lib/libgds.so.0")

    # Move configuration files and security DB to /etc/firebird for painless upgrade
    pisitools.domove("/opt/firebird/aliases.conf", "/etc/firebird")
    pisitools.domove("/opt/firebird/firebird.conf", "/etc/firebird")
    pisitools.domove("/opt/firebird/security2.fdb", "/etc/firebird")
    pisitools.dosym("/etc/firebird/aliases.conf", "/opt/firebird/aliases.conf")
    pisitools.dosym("/etc/firebird/firebird.conf", "/opt/firebird/firebird.conf")
    pisitools.dosym("/etc/firebird/security2.fdb", "/opt/firebird/security2.fdb")

    # Set PID directory
    shelltools.makedirs("%s/run/firebird" % get.installDIR())
    #pisitools.dodir("/opt/firebird/run")

    # Set permissions
    shelltools.chmod("%s/etc/firebird/security2.fdb" % get.installDIR(), 0600)
    shelltools.chmod("%s/run/firebird" % get.installDIR(), 0755)
    #shelltools.chmod("%s/opt/firebird/run" % get.installDIR(), 0755)

    pisitools.dosym("/var/log/firebird.log", "/opt/firebird/firebird.log")

    # Useless init.d stuff
    pisitools.removeDir("/opt/firebird/misc/")

    # Prevent to conflict isql with UnixODBC's
    pisitools.domove("/opt/firebird/bin/isql", "/opt/firebird/bin", "fb_isql")


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-

import os, pwd, socket

pid_dir = "/run/firebird"
log_file = "/var/log/firebird.log"

uid = pwd.getpwnam("firebird")[2]
hostname = socket.gethostname()

def touch(filename):
    try:
        f = open(filename, "w")
        f.close()
    except IOError:
        fail("Failed to create %s file" % filename)

def postInstall(fromVersion, fromRelease, toVersion, toRelease):
#    # Configure PID directory
    os.chown(pid_dir, uid, -1)

    # Create log file
    touch(log_file)
    os.chown(log_file, uid, -1)
    os.chmod(log_file, 0644)

    # Configure security2.fdb file
    os.chown("/opt/firebird/security2.fdb", uid, -1)

    # Create lock files
    for lock_filename in ("isc_guard1", "isc_init1", "isc_lock1"):
        lock_filename = "/opt/firebird/%s.%s" % (lock_filename, hostname)
        touch(lock_filename)
        os.chown(lock_filename, uid, -1)
        os.chmod(lock_filename, 0644)

def preRemove():
    # Remove lock files
    for lock_filename in ("isc_guard1", "isc_init1", "isc_lock1"):
        lock_filename = "/opt/firebird/%s.%s" % (lock_filename, hostname)
        if os.path.exists(lock_filename):
            os.remove(lock_filename)


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-

serviceType="server"
serviceDesc = _({"en": "Firebird Database Server",
                 "tr": "Firebird Veritabanı Sunucusu"})

from comar.service import *

pid_file = "/run/firebird/firebird.pid"

@synchronized
def start():
    startService(command="/opt/firebird/bin/fbguard",
                 args="-pidfile %s -start -forever -daemon" % pid_file,
                 pidfile="/run/firebird/firebird.pid",
                 donotify=True)
#                 chuid="firebird",

@synchronized
def stop():
    stopService(pidfile=pid_file,
                donotify=True)

def status():
    return isServiceRunning(pid_file)


code: ROOTPATH="/opt/firebird/bin"


code:
# Author: Adriano dos Santos Fernandes
#Index: src/common/classes/alloc.h
#===================================================================
#RCS file: /cvsroot/firebird/firebird2/src/common/classes/alloc.h,v
#retrieving revision 1.71
diff -u -p -r1.71 alloc.h
--- Firebird-2.5.6.27020-0/src/common/classes/alloc.h.orig	26 Sep 2007 17:48:20 -0000	1.71
+++ Firebird-2.5.6.27020-0/src/common/classes/alloc.h	20 May 2009 02:20:08 -0000
@@ -48,6 +48,7 @@
 #include <stdlib.h> /* XPG: prototypes for malloc/free have to be in
                        stdlib.h (EKU) */
 #endif
+#include <new>

 // MSVC does not support exception specification, so it's unknown if that will be correct or not
 // from its POV. For now, use it and disable the C4290 warning.


code:
From: asfernandes <asfernandes@users.sourceforge.net>
Date: Sat, 5 Mar 2016 03:39:36 +0000
Subject: Make the generated code compatible with gcc 6 in C++-14 mode.
 (cherry picked from commit 3618aa2171674babf79ef935aa049c40a3db1321)
Patch-mainline:
Git-commit: 3618aa2171674babf79ef935aa049c40a3db1321
References: bsc#964466 CORE-5099

---
 src/gpre/c_cxx.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gpre/c_cxx.cpp b/src/gpre/c_cxx.cpp
index df175dca9465..bafce8f282bf 100644
--- a/src/gpre/c_cxx.cpp
+++ b/src/gpre/c_cxx.cpp
@@ -2820,7 +2820,7 @@ static void gen_request(const gpre_req* request)
 		printa(0, "static %sshort\n   isc_%dl = %d;",
 			   (request->req_flags & REQ_extend_dpb) ? "" : CONST_STR,
 			   request->req_ident, request->req_length);
-		printa(0, "static %schar\n   isc_%d [] = {", CONST_STR, request->req_ident);
+		printa(0, "static %sunsigned char\n   isc_%d [] = {", CONST_STR, request->req_ident);

 		const TEXT* string_type = "blr";
 		if (gpreGlob.sw_raw)
--
2.8.2


code:
From: Michal Kubecek <mkubecek@suse.cz>
Date: Mon, 25 Apr 2016 08:55:36 +0200
Subject: Provide sized global delete operators when compiled in C++14 mode
Patch-mainline: submitted
Git-commit: 038f9fbf559e56032e4cb49eb7ce4c3ead23fda9
References: bsc#964466 CORE-5099

---
 src/common/classes/alloc.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/common/classes/alloc.h b/src/common/classes/alloc.h
index b1026ce2aac4..fda5bfebb0cc 100644
--- a/src/common/classes/alloc.h
+++ b/src/common/classes/alloc.h
@@ -331,6 +331,16 @@ inline void operator delete[](void* mem, Firebird::MemoryPool& pool ALLOC_PARAMS
 	MemoryPool::globalFree(mem);
 }

+#if __cplusplus >= 201402L
+inline void operator delete(void* mem, std::size_t s ALLOC_PARAMS) throw()
+{
+	MemoryPool::globalFree(mem);
+}
+inline void operator delete[](void* mem, std::size_t s ALLOC_PARAMS) throw()
+{
+	MemoryPool::globalFree(mem);
+}
+#endif
 #ifdef DEBUG_GDS_ALLOC

 #ifdef __clang__
--
2.8.2


code:
diff -Nuar Firebird-2.1.0.17798-0.orig/extern/editline/src/makelist Firebird-2.1.0.17798-0/extern/editline/src/makelist
--- Firebird-2.1.0.17798-0.orig/extern/editline/src/makelist	2007-04-09 15:57:41.000000000 +0300
+++ Firebird-2.1.0.17798-0/extern/editline/src/makelist	2008-07-12 14:02:29.000000000 +0300
@@ -140,7 +140,7 @@
 #
 -fh)
     cat $FILES | $AWK '/el_action_t/ { print $3 }' | \
-    sort | tr '[:lower:]' '[:upper:]' | $AWK '
+    sort | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | $AWK '
 	BEGIN {
 	    printf("/* Automatically generated file, do not edit */\n");
 	    printf("#ifndef _h_fcns_c\n#define _h_fcns_c\n");


code:
diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/Makefile.in.firebird Firebird-2.5.0.26074-0_deps-flags/builds/posix/Makefile.in.firebird
--- Firebird-2.5.0.26074-0_orig/builds/posix/Makefile.in.firebird	2010-11-09 12:42:45.000000000 -0500
+++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/Makefile.in.firebird	2011-03-28 15:10:09.814370706 -0400
@@ -158,7 +158,7 @@
 # some complications particularly for super in needing to start the server
 # that you are currently building. MOD 28-July-2002

-firebird_basic: btyacc_binary external_libraries firebird_boot basic_targets
+firebird_basic: firebird_boot basic_targets

 firebird_boot: updateBuildNum boot_phase1 boot_phase2

diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/make.defaults Firebird-2.5.0.26074-0_deps-flags/builds/posix/make.defaults
--- Firebird-2.5.0.26074-0_orig/builds/posix/make.defaults	2010-11-09 12:42:45.000000000 -0500
+++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/make.defaults	2011-03-28 15:21:26.904370708 -0400
@@ -138,7 +138,7 @@
 AR=			ar @AR_OPTIONS@ crsu
 LN=			@LN_S@
 RANLIB=			@RANLIB@
-BTYACC=$(ROOT)/extern/btyacc/btyacc
+BTYACC=/usr/bin/btyacc

 CC =	@CC@
 CXX =	@CXX@
diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux
--- Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux	2010-11-09 12:42:45.000000000 -0500
+++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux	2011-03-25 21:38:29.031037374 -0400
@@ -18,11 +18,10 @@
 #
 # 2 Oct 2002, Nickolay Samofatov - Major cleanup

-COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -pipe -MMD -fPIC -fmessage-length=0
-OPTIMIZE_FLAGS=-O3 -march=i586 -mtune=i686 -fno-omit-frame-pointer
+COMMON_FLAGS=-DLINUX -MMD -fPIC -fmessage-length=0
 WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable

-PROD_FLAGS=-DNDEBUG $(COMMON_FLAGS) $(OPTIMIZE_FLAGS)
+PROD_FLAGS=$(COMMON_FLAGS)
 #DEV_FLAGS=-DUSE_VALGRIND -p $(COMMON_FLAGS) $(WARN_FLAGS)
 DEV_FLAGS=-p $(COMMON_FLAGS) $(WARN_FLAGS)

diff -Naur Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux_amd64 Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux_amd64
--- Firebird-2.5.0.26074-0_orig/builds/posix/prefix.linux_amd64	2010-11-09 12:42:45.000000000 -0500
+++ Firebird-2.5.0.26074-0_deps-flags/builds/posix/prefix.linux_amd64	2011-03-25 21:39:15.134370707 -0400
@@ -18,12 +18,11 @@
 #
 # 2 Oct 2002, Nickolay Samofatov - Major cleanup

-COMMON_FLAGS=-ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DAMD64 -pipe -MMD -fPIC -fmessage-length=0
-OPTIMIZE_FLAGS=-O3 -fno-omit-frame-pointer
+COMMON_FLAGS=-DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0
 WARN_FLAGS=-Wall -Wno-switch -Wno-parentheses -Wno-unknown-pragmas -Wno-unused-variable
 CXXFLAGS:= $(CXXFLAGS) -fno-rtti

-PROD_FLAGS=-DNDEBUG $(COMMON_FLAGS) $(OPTIMIZE_FLAGS)
+PROD_FLAGS=$(COMMON_FLAGS)
 #DEV_FLAGS=-DUSE_VALGRIND $(COMMON_FLAGS) $(WARN_FLAGS)
 DEV_FLAGS=$(COMMON_FLAGS) $(WARN_FLAGS)


code:
diff -Nuar a/src/common/classes/alloc.cpp b/src/common/classes/alloc.cpp
--- a/src/common/classes/alloc.cpp	2017-02-14 12:17:16.000000000 +0300
+++ b/src/common/classes/alloc.cpp	2018-01-30 20:53:56.618391768 +0300
@@ -2141,3 +2141,11 @@
 {
 	Firebird::MemoryPool::globalFree(mem);
 }
+void operator delete(void* mem, size_t) throw()
+{
+	Firebird::MemoryPool::globalFree(mem);
+}
+void operator delete[](void* mem, size_t) throw()
+{
+	Firebird::MemoryPool::globalFree(mem);
+}
diff -Nuar a/src/common/classes/alloc.h b/src/common/classes/alloc.h
--- a/src/common/classes/alloc.h	2017-02-14 12:17:16.000000000 +0300
+++ b/src/common/classes/alloc.h	2018-01-30 20:55:04.555386866 +0300
@@ -498,13 +498,6 @@

 inline static MemoryPool* getDefaultMemoryPool() { return Firebird::MemoryPool::processMemoryPool; }

-// Global versions of operators new and delete
-void* operator new(size_t s) THROW_BAD_ALLOC;
-void* operator new[](size_t s) THROW_BAD_ALLOC;
-
-void operator delete(void* mem) throw();
-void operator delete[](void* mem) throw();
-
 #ifdef DEBUG_GDS_ALLOC
 inline void* operator new(size_t s, Firebird::MemoryPool& pool, const char* file, int line)
 {


code:
# Insert host names here to allow connect to Firebird
localhost.localdomain
localhost


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>firebird</Name>
        <Homepage>http://www.firebirdsql.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>IPL-1</License>
        <License>IDPL-1</License>
        <License>LGPLv2.1</License>
        <IsA>service</IsA>
        <IsA>library</IsA>
        A relational database offering many ANSI SQL-99 features
        <Description>Firebird is an open source relational database management system offering many ANSI SQL-99 features.</Description>
        <Archive sha1sum="39ed55321ea1a18c525e3100301ac57a53c59423" type="tarbz2">http://sourceforge.net/projects/firebird/files/firebird/2.5.7-Release/Firebird-2.5.7.27050-0.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>icu4c-devel</Dependency>
            <Dependency>btyacc</Dependency>
            <Dependency>libedit-devel</Dependency>
        </BuildDependencies>
        <Patches>

            <Patch level="1">editline-dumb-tr.patch</Patch>
            <Patch level="1">firebird-2.5.1.26351.0-deps-flags.patch</Patch>
            <Patch level="1">Provide-sized-global-delete-operators-when-compiled.patch</Patch>
            <Patch level="1">Make-the-generated-code-compatible-with-gcc-6-in-C-1.patch</Patch>
            <Patch level="1">Firebird-gcc-icu.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>firebird-client</Name>
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        Firebird database client library
        <Description>Firebird relational database client library.</Description>
        <Files>
            <Path fileType="library">/usr/lib/libfbclient.*</Path>
            <Path fileType="library">/usr/lib/libgds.*</Path>
            <Path fileType="library">/usr/lib/libib_util.*</Path>
            <Path fileType="library">/usr/lib/libfbtrace.so</Path>
            <Path fileType="library">/opt/firebird/lib/libfbclient.*</Path>
            <Path fileType="library">/opt/firebird/lib/libgds.*</Path>
            <Path fileType="library">/opt/firebird/lib/libib_util.*</Path>
            <Path fileType="library">/opt/firebird/plugins/libfbtrace.so</Path>
        </Files>
    </Package>

    <Package>
        <Name>firebird-superserver</Name>
        <RuntimeDependencies>
            <Dependency>firebird-client</Dependency>
            <Dependency>icu4c</Dependency>
            <Dependency>libedit</Dependency>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        Firebird super server
        <Files>
            <Path fileType="config">/etc/firebird</Path>
            <Path fileType="config">/etc/env.d/50firebird</Path>
            <Path fileType="config">/opt/firebird/*.conf</Path>
            <Path fileType="localedata">/opt/firebird/*.msg</Path>
            <Path fileType="data">/opt/firebird/security2.fdb</Path>
            <Path fileType="doc">/opt/firebird/README</Path>
            <Path fileType="doc">/opt/firebird/WhatsNew</Path>
            <Path fileType="library">/opt/firebird/UDF</Path>
            <Path fileType="executable">/opt/firebird/bin</Path>
            <Path fileType="doc">/opt/firebird/doc</Path>
            <Path fileType="doc">/opt/firebird/examples</Path>
            <Path fileType="data">/opt/firebird/help</Path>
            <Path fileType="data">/opt/firebird/intl</Path>
            <Path fileType="library">/opt/firebird/lib/libicu*</Path>
            <Path fileType="doc">/opt/firebird/upgrade</Path>
            <Path fileType="data">/opt/firebird/firebird.log</Path>
            <Path fileType="data">/opt/firebird</Path>
            <Path fileType="data">/run/firebird</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/firebird/hosts.equiv">hosts.equiv</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/env.d/50firebird">50firebird</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
            <COMAR script="package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>firebird-devel</Name>
        Development files for firebird
        <RuntimeDependencies>
            <Dependency release="current">firebird-client</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/firebird</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-29</Date>
            <Version>2.5.7.27050</Version>
            <Comment>Version Bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2017-02-18</Date>
            <Version>2.5.6.27020</Version>
            <Comment>Version Bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>2.5.4.26856</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
         <Update release="1">
            <Date>2015-07-03</Date>
            <Version>2.5.4.26856</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>firebird</Name>
        Birçok ANSI SQL-99 özelliği sunan ilişkisel bir veritabanı
        <Description xml:lang="tr">Birçok ANSI SQL-99 özelliği sunan, küçük, hızlı ve çok kararlı bir veritabanı sunucu.</Description>
    </Source>

    <Package>
        <Name>firebird-client</Name>
        Firebird veritabanı istemci kütüphanesi
        <Description xml:lang="tr">Firebird sunucuya bağlantı için kullanılan istemci kütüphanesi</Description>
    </Package>

    <Package>
        <Name>firebird-superserver</Name>
        Firebird veritabanı sunucusu
        <Description xml:lang="tr">Firebird veritabanı için super sunucu. Klasik sunucu mimarisine göre, SMP performansı daha fazladır.</Description>
    </Package>

    <Package>
        <Name>firebird-devel</Name>
        Firebird için geliştirme dosyaları
    </Package>

</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

shelltools.export("JOBS", get.makeJOBS().replace("-j", ""))

def setup():
    autotools.configure("\
                         --builtin-libraries=replace \
                         --bundled-libraries=NONE \
                         --disable-rpath \
                        ")

def build():
    shelltools.system("make")

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("docs/README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libtdb</Name>
        <Homepage>http://tdb.samba.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv3+</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        Trivial database library
        <Description>libtdb contains C library and Python bindings to access to a trivial database. TDB is very much like GDBM and BSDDB except that it allows multiple simultaneous writers and uses locking internally to keep writers from trampling on each other.</Description>
        <Archive sha1sum="86fec2b5e698ef15da07be4a26672773575e37cd" type="targz">https://www.samba.org/ftp/tdb/tdb-1.3.12.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libxslt</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>docbook-xsl</Dependency>
            <Dependency>libbsd-devel</Dependency>
        </BuildDependencies>
        <Patches>
        </Patches>
    </Source>

    <Package>
        <Name>libtdb</Name>
        <RuntimeDependencies>
            <Dependency>python</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libtdb-devel</Name>
        Development files for libtdb
        <RuntimeDependencies>
            <Dependency release="current">libtdb</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-09</Date>
            <Version>1.3.12</Version>
            <Comment>Release bump.</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-07-24</Date>
            <Version>1.3.8</Version>
            <Comment>Version Bump</Comment>
            <Name>Ergün Salman</Name>
            <Email>poyraz76@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>1.3.7</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-07-30</Date>
            <Version>1.3.7</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libtdb</Name>
        TDB veritabanına erişim için gerekli kitaplıklar
        <Description xml:lang="tr">libtdb basit bir veritabanı olan TDB ile iletişime geçmek için gerekli C ve Python kitaplıklarını içerir.</Description>
    </Source>

    <Package>
        <Name>libtdb-devel</Name>
        libtdb için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

def build():
    shelltools.cd("libraries/liblmdb")
    autotools.make("prefix=/usr")

def install():
    shelltools.cd("libraries/liblmdb")

    pisitools.dodir("/usr/bin")
    pisitools.dodir("/usr/lib")
    pisitools.dodir("/usr/man/man1")
    pisitools.dodir("/usr/share")
    pisitools.dodir("/usr/include")

    autotools.rawInstall("DESTDIR=%s prefix=/usr" % get.installDIR())

    pisitools.domove("/usr/man", "/usr/share")
    pisitools.dodoc("LICENSE", "CHANGES", "COPYRIGHT")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>lmdb</Name>
        <Homepage>http://symas.com/mdb/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>OpenLDAP</License>
        <License>custom</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        Symas Lightning Memory-Mapped Database
        <Description>An ultra-fast, ultra-compact key-value embedded data store.</Description>
        <Archive sha1sum="5f236169298e277241467b0058b1b36a60d087d6" type="targz">https://github.com/LMDB/lmdb/archive/LMDB_0.9.19.tar.gz</Archive>
    </Source>

    <Package>
        <Name>lmdb</Name>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>lmdb-devel</Name>
        Development files for lmdb
        <RuntimeDependencies>
            <Dependency release="current">lmdb</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-09</Date>
            <Version>0.9.19</Version>
            <Comment>Release bump.</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>0.9.16</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-08-28</Date>
            <Version>0.9.16</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import cmaketools

#pisitools.flags.add("-fno-strict-aliasing -DBIG_JOINS=1")
#pisitools.cflags.add("-fomit-frame-pointer")
#pisitools.cxxflags.add("-felide-constructors -fno-rtti -fno-delete-null-pointer-checks")

def setup():
    #pisitools.dosed("storage/tokudb/ft-index/ft/ft-ops.cc", "LEAFENTRY leaf_entry;", "LEAFENTRY leaf_entry = 0;")
    shelltools.export("CFLAGS", get.CFLAGS())
    shelltools.export("CXXFLAGS", get.CXXFLAGS())
    cmaketools.configure("-DBUILD_CONFIG=mysql_release \
                          -DCMAKE_INSTALL_PREFIX=/usr \
                          -DSYSCONFDIR=/etc/mysql \
                          -DMYSQL_DATADIR=/var/lib/mysql \
                          -DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock \
                          -DDEFAULT_CHARSET=utf8 \
                          -DDEFAULT_COLLATION=utf8_general_ci \
                          -DENABLED_LOCAL_INFILE=ON \
                          -DINSTALL_INFODIR=share/mysql/docs \
                          -DINSTALL_MANDIR=share/man \
                          -DINSTALL_PLUGINDIR=lib/mysql/plugin \
                          -DINSTALL_SCRIPTDIR=bin \
                          -DINSTALL_INCLUDEDIR=include/mysql \
                          -DINSTALL_DOCREADMEDIR=share/mysql \
                          -DINSTALL_SUPPORTFILESDIR=share/mysql \
                          -DINSTALL_MYSQLSHAREDIR=share/mysql \
                          -DINSTALL_DOCDIR=share/mysql/docs \
                          -DINSTALL_SHAREDIR=share/mysql \
                          -DWITH_READLINE=ON \
                          -DWITH_ZLIB=system \
                          -DWITH_SSL=system \
                          -DWITH_PCRE=system \
                          -DWITH_LIBWRAP=OFF \
                          -DWITH_JEMALLOC=ON \
                          -DWITH_EXTRA_CHARSETS=complex \
                          -DWITH_EMBEDDED_SERVER=ON \
                          -DWITH_ARCHIVE_STORAGE_ENGINE=1 \
                          -DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
                          -DWITH_INNOBASE_STORAGE_ENGINE=1 \
                          -DWITH_PARTITION_STORAGE_ENGINE=1 \
                          -DWITHOUT_TOKUDB_STORAGE_ENGINE=1 \
                          -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
                          -DWITHOUT_FEDERATED_STORAGE_ENGINE=1 \
                          -DWITHOUT_PBXT_STORAGE_ENGINE=1 \
                          -DCMAKE_C_FLAGS='-fPIC %s -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer -fno-delete-null-pointer-checks' \
                          -DCMAKE_CXX_FLAGS='-fPIC %s -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-rtti -fno-delete-null-pointer-checks' \
                          -DWITH_MYSQLD_LDFLAGS='-pie %s,-z,now'" % (get.CFLAGS(), get.CXXFLAGS(), get.LDFLAGS()))
#-DCMAKE_EXE_LINKER_FLAGS='-ljemalloc' \
def build():
    cmaketools.make()

def install():
    cmaketools.install("DESTDIR=%s benchdir_root=\"/usr/share/mysql\"" % get.installDIR())

    # Config
    pisitools.insinto("/etc/mysql", "%s/usr/share/mysql/my-medium.cnf" % get.installDIR(), "my.cnf")
    pisitools.insinto("/etc/mysql", "%s/%s/scripts/mysqlaccess.conf" % (get.workDIR(), get.srcDIR()))
    pisitools.insinto("/usr/bin", "%s/%s/scripts/mysql_config" % (get.workDIR(), get.srcDIR()))
    # Data dir
    pisitools.dodir("/var/lib/mysql")

    # Documents
    pisitools.dodoc("%s/%s/support-files/my-*.cnf" % (get.workDIR(), get.srcDIR()))
    pisitools.dodoc("COPYING", "INSTALL-SOURCE", "README", "VERSION")

    # Remove not needed files
    pisitools.removeDir("/usr/data")
    pisitools.removeDir("/usr/mysql-test")
    pisitools.removeDir("/usr/sql-bench")
    pisitools.remove("/usr/share/man/man1/mysql-test-run.pl.1")

    # Remove -lprobes_mysql
    #pisitools.dosed("%s/usr/bin/mysql_config" % get.installDIR(), "-lprobes_mysql")


code:
#!/usr/bin/python

import os, re
import shutil

OUR_ID = 794
OUR_NAME = "mysql"
OUR_DESC = "mysql"

DATADIR = "/var/lib/mysql"
DATADIRMODE = 0755

def postInstall(fromVersion, fromRelease, toVersion, toRelease):
    try:
        os.system ("groupadd -g %d %s" % (OUR_ID, OUR_NAME))
        os.system ("useradd -m -d /var/lib/mysql -r -s /bin/false -u %d -g %d %s -c %s" % (OUR_ID, OUR_ID, OUR_NAME, OUR_DESC))
    except:
        pass

    os.system("/sbin/mudur_tmpfiles.py /usr/lib/tmpfiles.d/mariadb.conf")

        # Create the database
    os.system("/bin/chown -R mysql:mysql %s" % DATADIR)
    os.system("/bin/chown -R mysql:mysql /var/log/mysqld.log")
    os.system("/usr/bin/mysql_install_db --user=mysql --datadir=/var/lib/mysql --basedir=/usr --force")
    os.system("/usr/bin/mysql_upgrade --force")

    # On first install...
    if not os.path.exists(DATADIR):
        os.makedirs(DATADIR, DATADIRMODE)

def postRemove():
    try:
        os.system ("userdel %s" % OUR_NAME)
        os.system ("groupdel %s" % OUR_NAME)
    except:
        pass


code:
# -*- coding: utf-8 -*-
from comar.service import *
import os

serviceType="server"
serviceDesc=_({"en": "MariaDB Database Server",
               "tr": "MariaDB Veritabanı Sunucusu"})

PIDFILE="/run/mysqld/mysqld.pid"
DAEMON="/usr/bin/mysqld"

@synchronized
def start():
    startService(command=DAEMON,
                 pidfile=PIDFILE,
                 detach=True,
                 donotify=True)
    #os.system("pidof mariadb_server + /usr/bin/mysqld > /run/mysqld/mysqld.pid")

@synchronized
def stop():
    stopService(pidfile=PIDFILE,
                donotify=True)

    try:
        os.unlink(PIDFILE)
    except OSError:
        pass

def status():
    return isServiceRunning(PIDFILE)


code:
# The following options will be passed to all MySQL clients
[client]
#password= your_password
port= 3306
socket= /run/mysqld/mysqld.sock

[mysql]
character-sets-dir=/usr/share/mysql/charsets
default-character-set=utf8

[mysqladmin]
character-sets-dir=/usr/share/mysql/charsets
default-character-set=utf8

[mysqlcheck]
character-sets-dir=/usr/share/mysql/charsets
default-character-set=utf8

[mysqldump]
character-sets-dir=/usr/share/mysql/charsets
default-character-set=utf8

[mysqlimport]
character-sets-dir=/usr/share/mysql/charsets
default-character-set=utf8

[mysqlshow]
character-sets-dir=/usr/share/mysql/charsets
default-character-set=utf8

[myisamchk]
character-sets-dir=/usr/share/mysql/charsets

[myisampack]
character-sets-dir=/usr/share/mysql/charsets

# use [safe_mysqld] with mysql-3
[mysqld_safe]
err-log= /var/log/mysql/mysql.err

# add a section [mysqld-4.1] or [mysqld-5.0] for specific configurations
[mysqld]
character-set-server= utf8
user = mysql
port = 3306
socket = /run/mysqld/mysqld.sock
pid-file = /run/mysqld/mysqld.pid
log-error = /var/log/mysql/mysqld.err
basedir 			= /usr
datadir 			= /var/lib/mysql
skip-external-locking
key_buffer 			= 16M
max_allowed_packet 		= 4M
table_open_cache 		= 400
sort_buffer_size 		= 512K
net_buffer_length 		= 16K
read_buffer_size 		= 256K
read_rnd_buffer_size 		= 512K
myisam_sort_buffer_size 	= 8M
lc_messages_dir			= /usr/share/mysql
#Set this to your desired error message language
lc_messages			= en_US

# security:
# using "localhost" in connects uses sockets by default
# skip-networking
bind-address			= 127.0.0.1
log-bin
#log-bin 			= mysqld-bin
server-id 			= 1

# point the following paths to different dedicated disks
tmpdir 				= /tmp/
#log-update 			= /path-to-dedicated-directory/hostname

# you need the debug USE flag enabled to use the following directives,
# if needed, uncomment them, start the server and issue
# #tail -f /tmp/mysqld.sql /tmp/mysqld.trace
# this will show you *exactly* what's happening in your server ;)

#log				= /tmp/mysqld.sql
#gdb
#debug				= d:t:i:o,/tmp/mysqld.trace
#one-thread

# uncomment the following directives if you are using BDB tables
#bdb_cache_size			= 4M
#bdb_max_lock			= 10000

# the following is the InnoDB configuration
# if you wish to disable innodb instead
# uncomment just the next line
#skip-innodb
#
# the rest of the innodb config follows:
# don't eat too much memory, we're trying to be safe on 64Mb boxes
# you might want to bump this up a bit on boxes with more RAM
innodb_buffer_pool_size = 128M
#
# i'd like to use /var/lib/mysql/innodb, but that is seen as a database :-(
# and upstream wants things to be under /var/lib/mysql/, so that's the route
# we have to take for the moment
#innodb_data_home_dir		= /var/lib/mysql/
#innodb_log_arch_dir		= /var/lib/mysql/
#innodb_log_group_home_dir	= /var/lib/mysql/
# you may wish to change this size to be more suitable for your system
# the max is there to avoid run-away growth on your machine
innodb_data_file_path = ibdata1:10M:autoextend:max:128M
# we keep this at around 25% of of innodb_buffer_pool_size
# sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size)
innodb_log_file_size = 48M
# this is the default, increase it if you have very large transactions going on
innodb_log_buffer_size = 8M
# this is the default and won't hurt you
# you shouldn't need to tweak it
innodb_log_files_in_group=2
# see the innodb config docs, the other options are not always safe
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
innodb_file_per_table

# Uncomment this to get FEDERATED engine support
#plugin-load=federated=ha_federated.so
loose-federated

[mysqldump]
quick
max_allowed_packet 		= 16M

[mysql]
# uncomment the next directive if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer 			= 20M
sort_buffer_size 		= 20M
read_buffer 			= 2M
write_buffer 			= 2M

[myisamchk]
key_buffer 			= 20M
sort_buffer_size 		= 20M
read_buffer 			= 2M
write_buffer 			= 2M

[mysqlhotcopy]
interactive-timeout

[mariadb]


code: d /run/mysqld 0755 mysql mysql -


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>mariadb</Name>
        <Homepage>https://mariadb.org</Homepage>
        <Packager>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        MariaDB is a drop-in replacement for MySQL
        <Description>MariaDB strives to be the logical choice for database professionals looking for a robust, scalable, and reliable SQL server.</Description>
        <Archive sha1sum="f9ccaa9881b98eeef68f4dbcf5ab9653c903819f" type="targz">http://mirrors.syringanetworks.net/mariadb/mariadb-10.1.21/source/mariadb-10.1.21.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>readline-devel</Dependency>
            <Dependency>libevent-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>libpcre-devel</Dependency>
            <Dependency>libaio-devel</Dependency>
            <Dependency>unixODBC-devel</Dependency>
            <Dependency>cmake</Dependency>
        </BuildDependencies>
        <Patches>
        </Patches>
    </Source>

    <Package>
        <Name>mariadb-lib</Name>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        The shared libraries required for MariaDB clients
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>bzip2</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpcre</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>libaio</Dependency>
            <Dependency>unixODBC</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>mysql-lib</Package>
        </Replaces>
        <Files>
            <Path fileType="executable">/usr/bin/mysql_config</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/libmysqlclient.so</Path>
            <Path fileType="library">/usr/lib/libmysqlclient.so.18</Path>
            <Path fileType="library">/usr/lib/libmysqlclient.so.18.0.0</Path>
            <Path fileType="library">/usr/lib/libmysqlclient_r.so</Path>
            <Path fileType="library">/usr/lib/libmysqlclient_r.so.18</Path>
            <Path fileType="library">/usr/lib/libmysqlclient_r.so.18.0.0</Path>
            <Path fileType="library">/usr/lib/libmysqld.a</Path>
            <Path fileType="library">/usr/lib/libmysqlclient_r.a</Path>
            <Path fileType="library">/usr/lib/libmysqlclient.a</Path>
            <Path fileType="library">/usr/lib/libmysqld.so</Path>
            <Path fileType="library">/usr/lib/libmysqld.so.18</Path>
            <Path fileType="library">/usr/lib/libmysqlservices.a</Path>
            <Path fileType="library">/usr/bin/mysqld_safe_helper</Path>
        </Files>
    </Package>

    <Package>
        <Name>mariadb-client</Name>
        <IsA>app:console</IsA>
        MariaDB client programs
        <RuntimeDependencies>
            <Dependency version="current">mariadb-lib</Dependency>
            <Dependency>libaio</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpcre</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>openssl</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>mysql-client</Package>
        </Replaces>
        <Files>
            <Path fileType="executable">/usr/bin/mysql</Path>
            <Path fileType="executable">/usr/bin/mysqladmin</Path>
            <Path fileType="executable">/usr/bin/mysqlcheck</Path>
            <Path fileType="executable">/usr/bin/mysqldump</Path>
            <Path fileType="executable">/usr/bin/mysqlimport</Path>
            <Path fileType="executable">/usr/bin/mysqlshow</Path>
            <Path fileType="executable">/usr/bin/mysqlslap</Path>
        </Files>
    </Package>

    <Package>
        <Name>mariadb-server</Name>
        <IsA>service</IsA>
        The MariaDB server and related files
        <RuntimeDependencies>
            <Dependency version="current">mariadb-lib</Dependency>
            <Dependency version="current">mariadb-client</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>unixODBC</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>mysql-server</Package>
        </Replaces>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin/aria_chk</Path>
            <Path fileType="executable">/usr/bin/aria_dump_log</Path>
            <Path fileType="executable">/usr/bin/aria_ftdump</Path>
            <Path fileType="executable">/usr/bin/aria_pack</Path>
            <Path fileType="executable">/usr/bin/aria_read_log</Path>
            <Path fileType="executable">/usr/bin/innochecksum</Path>
            <Path fileType="executable">/usr/bin/msql2mysql</Path>
            <Path fileType="executable">/usr/bin/my_print_defaults</Path>
            <Path fileType="executable">/usr/bin/myisam_ftdump</Path>
            <Path fileType="executable">/usr/bin/myisamchk</Path>
            <Path fileType="executable">/usr/bin/myisamlog</Path>
            <Path fileType="executable">/usr/bin/myisampack</Path>
            <Path fileType="executable">/usr/bin/mysql_client_test</Path>
            <Path fileType="executable">/usr/bin/mysql_convert_table_format</Path>
            <Path fileType="executable">/usr/bin/mysql_embedded</Path>
            <Path fileType="executable">/usr/bin/mysql_client_test_embedded</Path>
            <Path fileType="executable">/usr/bin/mysqltest_embedded</Path>
            <Path fileType="executable">/usr/bin/mysql_find_rows</Path>
            <Path fileType="executable">/usr/bin/mysql_fix_extensions</Path>
            <Path fileType="executable">/usr/bin/mysql_install_db</Path>
            <Path fileType="executable">/usr/bin/mysql_plugin</Path>
            <Path fileType="executable">/usr/bin/mysql_secure_installation</Path>
            <Path fileType="executable">/usr/bin/mysql_setpermission</Path>
            <Path fileType="executable">/usr/bin/mysql_tzinfo_to_sql</Path>
            <Path fileType="executable">/usr/bin/mysql_upgrade</Path>
            <Path fileType="executable">/usr/bin/mysql_waitpid</Path>
            <Path fileType="executable">/usr/bin/mysql_zap</Path>
            <Path fileType="executable">/usr/bin/mysqlaccess</Path>
            <Path fileType="executable">/usr/bin/mysqlbinlog</Path>
            <Path fileType="executable">/usr/bin/mysqlbug</Path>
            <Path fileType="executable">/usr/bin/mysqld</Path>
            <Path fileType="executable">/usr/bin/mysqld-post</Path>
            <Path fileType="executable">/usr/bin/mysqld_multi</Path>
            <Path fileType="executable">/usr/bin/mysqld_safe</Path>
            <Path fileType="executable">/usr/bin/mysqldumpslow</Path>
            <Path fileType="executable">/usr/bin/mysqlhotcopy</Path>
            <Path fileType="executable">/usr/bin/mysqltest</Path>
            <Path fileType="executable">/usr/bin/perror</Path>
            <Path fileType="executable">/usr/bin/replace</Path>
            <Path fileType="executable">/usr/bin/resolve_stack_dump</Path>
            <Path fileType="executable">/usr/bin/resolveip</Path>
            <Path fileType="executable">/usr/bin/tokuft_logprint</Path>
            <Path fileType="executable">/usr/bin/tokuftdump</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_common</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_mysqldump</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_rsync</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_xtrabackup</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_xtrabackup-v2</Path>
            <Path fileType="executable">/usr/bin/mytop</Path>
            <Path fileType="library">/usr/lib/mysql/plugin</Path>
            <Path fileType="data">/usr/share/mysql</Path>
            <Path fileType="data">/var</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="config">/usr/lib/tmpfiles.d/mariadb.conf</Path>
            <Path fileType="data">/run/mysqld</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/mysql/my.cnf">my.cnf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/mariadb.conf">tmpfiles.conf</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
            <COMAR script="package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>mariadb-man-pages</Name>
        <IsA>data</IsA>
        Man pages for MariaDB server and client
        <Replaces>
            <Package>mysql-man-pages</Package>
        </Replaces>
        <Files>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-09</Date>
            <Version>10.1.21</Version>
            <Comment>Release bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>10.1.10</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-24</Date>
            <Version>10.1.10</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>mariadb</Name>
        Hızlı, çok kullanıcılı ve çok görevli SQL veritabanı sunucusu
        <Description xml:lang="tr">MySQL, çoklu iş parçacıklı (multi-threaded), çok kullanıcılı (multi-user), hızlı ve sağlam (robust) bir Veritabanı yönetim sistemidir. Özelllikle basit web uygulamaları için LAMP sistemi içinde sıkça tercih edilmektedir.</Description>
    </Source>

    <Package>
        <Name>mariadb-lib</Name>
        MariaDB client tools
        MySQL istemcileri tarafından gereken paylaşımlı kitaplıklar
    </Package>

    <Package>
        <Name>mariadb-client</Name>
        MariaDB client libraries
        MariaDB istemci uygulamaları
    </Package>
    <Package>
        <Name>mariadb-server</Name>
        MariaDB server and releated files
        MariaDB sunucusu ve ilgili dosyalar
    </Package>
    <Package>
        <Name>mariadb-man-pages</Name>
        MariaDB server and client man pages
        MariaDB sunucu ve istemci uygulamarına ait kılavuz sayfaları
    </Package>
</PISI>