Compare commits
83 Commits
163ad31fce
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| d790b9ed33 | |||
| f8dbaa22a0 | |||
| fb9bdce10a | |||
| ba38a2457f | |||
| afc6047814 | |||
| 7acb408e7d | |||
| 52d3f86b37 | |||
| 45d4e085cc | |||
| 0cf431dc97 | |||
| 7bc33a4aa5 | |||
| bc51ad4da5 | |||
| f8c2133b44 | |||
| f014c8afd9 | |||
| 71e43c341a | |||
| 7cde189318 | |||
| d7e134245c | |||
| fbf86c8f34 | |||
| 93f2480ef0 | |||
| afb8ac49b7 | |||
| 8befa9b010 | |||
| cff784a9d4 | |||
| 73d6aff554 | |||
| f1eb64b7f5 | |||
| abd4351249 | |||
| ec7155349f | |||
| fd4655d957 | |||
| 6dab8b2f18 | |||
| ee90a418d6 | |||
| 66b22f147f | |||
| a181190b3f | |||
| a2e43778b8 | |||
| 88e7ad955a | |||
| e23dca4a8c | |||
| b76a177d9f | |||
| 6ee87e0e92 | |||
| 384e9cd3fc | |||
| f75d65c04c | |||
| f0d8f5a3f2 | |||
| d1739433ef | |||
| 3b54995a82 | |||
| a97e82ec24 | |||
| 7e00fb2426 | |||
| 722d8098dd | |||
| 8b359169a1 | |||
| 001885d256 | |||
| 4f4c03701f | |||
| 7c2a94c399 | |||
| aa92ca9f89 | |||
| 11ade4f850 | |||
| 412201b193 | |||
| 733f329e12 | |||
| 1a69951521 | |||
| 705b4240eb | |||
| c5b8b6ec7c | |||
| 8810970ff7 | |||
| 5b4804de0e | |||
| 51d45e9bae | |||
| 1aad1427a9 | |||
| 58e703a9d8 | |||
| 666b94afea | |||
| 466ed70f74 | |||
| 72a4e6ac76 | |||
| cf12c13935 | |||
| b2505c34e4 | |||
| c22f73c04d | |||
| f15e5e297f | |||
| eeb1275958 | |||
| 7fc6c41cc5 | |||
| 8eb6b8f05f | |||
| 446f718b13 | |||
| acbaa67d26 | |||
| 44b23bafc3 | |||
| 617ee90998 | |||
| db7dae0a62 | |||
| 0dd1bf2e9c | |||
| 8cc1cef1fd | |||
| e2e1446597 | |||
| ce038c3bd9 | |||
| 1b6da007e3 | |||
| 023a0772a8 | |||
| 0094500a45 | |||
| 223ecbfc0f | |||
| 773c992991 |
@ -1,146 +0,0 @@
|
|||||||
PORTNAME= ldb
|
|
||||||
PORTVERSION= 2.9.2
|
|
||||||
CATEGORIES= databases
|
|
||||||
MASTER_SITES= SAMBA
|
|
||||||
PKGNAMESUFFIX?= ${PORTVERSION:C/([[:digit:]]+)[.]([[:digit:]]+).*/\1\2/}
|
|
||||||
|
|
||||||
MAINTAINER= samba@FreeBSD.org
|
|
||||||
COMMENT= LDAP-like embedded database
|
|
||||||
WWW= https://ldb.samba.org/
|
|
||||||
|
|
||||||
LICENSE= GPLv3+
|
|
||||||
|
|
||||||
IGNORE_NONTHREAD_PYTHON= needs port lang/python${PYTHON_SUFFIX} to be \
|
|
||||||
build with THREADS support
|
|
||||||
|
|
||||||
BUILD_DEPENDS= ${_LDB_DEPENDS} \
|
|
||||||
cmocka>=1.1.3:sysutils/cmocka
|
|
||||||
RUN_DEPENDS= ${_LDB_DEPENDS}
|
|
||||||
TEST_DEPENDS= ${_LDB_DEPENDS} \
|
|
||||||
cmocka>=1.1.3:sysutils/cmocka
|
|
||||||
|
|
||||||
USES= compiler ldap localbase:ldflags pkgconfig
|
|
||||||
USE_LDCONFIG= yes
|
|
||||||
|
|
||||||
HAS_CONFIGURE= yes
|
|
||||||
CONFIGURE_LOG= ${BUILD_WRKSRC}/bin/config.log
|
|
||||||
PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
|
|
||||||
CONFIGURE_ARGS+= --bundled-libraries=!talloc,!tevent,!tdb,!popt,!cmocka \
|
|
||||||
--disable-rpath \
|
|
||||||
--with-modulesdir=${PREFIX}/lib/shared-modules \
|
|
||||||
--with-openldap=${LOCALBASE} \
|
|
||||||
--with-privatelibdir=${PREFIX}/lib/ldb \
|
|
||||||
--without-gettext
|
|
||||||
CONFIGURE_ENV+= NOCOLOR=yes
|
|
||||||
MAKE_ENV+= NOCOLOR=yes
|
|
||||||
CFLAGS+= ${_CFLAGS_${COMPILER_TYPE}}
|
|
||||||
DEBUG_FLAGS= -g -ggdb3 -O0
|
|
||||||
# Some symbols in ldb's linker version scripts are not defined, but since the
|
|
||||||
# scripts are generated dynamically, suppress errors with lld >= 17 due to these
|
|
||||||
# undefined symbols.
|
|
||||||
LDFLAGS+= -Wl,--undefined-version
|
|
||||||
|
|
||||||
CONFLICTS_INSTALL= ldb[0-9][0-9] # include/ldb.h
|
|
||||||
|
|
||||||
BINARY_ALIAS= python3=${PYTHON_CMD}
|
|
||||||
|
|
||||||
PLIST_FILES= ${_LDB_BINS} \
|
|
||||||
${_LDB_LIBS_64} \
|
|
||||||
${_LDB_LIBS} \
|
|
||||||
${_LDB_MAN1} \
|
|
||||||
${_LDB_MAN3} \
|
|
||||||
${PKGCONFIGDIR}/ldb.pc \
|
|
||||||
include/ldb.h \
|
|
||||||
include/ldb_errors.h \
|
|
||||||
include/ldb_handlers.h \
|
|
||||||
include/ldb_module.h \
|
|
||||||
include/ldb_version.h
|
|
||||||
|
|
||||||
PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR:S;${PREFIX}/;;}
|
|
||||||
|
|
||||||
OPTIONS_DEFINE= MANPAGES PYTHON3
|
|
||||||
OPTIONS_DEFAULT= PYTHON3
|
|
||||||
MANPAGES_DESC= Build and install manpages (requires textproc/docbook-xsl)
|
|
||||||
|
|
||||||
MANPAGES_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \
|
|
||||||
xsltproc:textproc/libxslt
|
|
||||||
MANPAGES_CONFIGURE_ENV_OFF= XSLTPROC="true"
|
|
||||||
|
|
||||||
PYTHON3_USES= gettext-runtime python
|
|
||||||
PYTHON3_USES_OFF= python:build,test
|
|
||||||
PYTHON3_CONFIGURE_OFF= --disable-python
|
|
||||||
PYTHON3_PLIST_FILES= ${PKGCONFIGDIR}/pyldb-util${PYTHON_EXT_SUFFIX}.pc \
|
|
||||||
${PYTHON_SITELIBDIR}/_ldb_text.py \
|
|
||||||
${PYTHON_SITELIBDIR}/ldb${PYTHON_EXT_SUFFIX}.so \
|
|
||||||
include/pyldb.h \
|
|
||||||
lib/libpyldb-util${PYTHON_EXT_SUFFIX}.so \
|
|
||||||
lib/libpyldb-util${PYTHON_EXT_SUFFIX}.so.2
|
|
||||||
|
|
||||||
# No fancy color error messages
|
|
||||||
_CFLAGS_clang= -fno-color-diagnostics
|
|
||||||
|
|
||||||
_LDB_DEPENDS= talloc>=2.4.2:devel/talloc242 tevent>=0.16.0:devel/tevent016 \
|
|
||||||
tdb>=1.4.10:databases/tdb1410 lmdb>=0.9.23:databases/lmdb \
|
|
||||||
popt>=0:devel/popt
|
|
||||||
_LDB_BINS= bin/ldbedit bin/ldbmodify bin/ldbadd bin/ldbdel bin/ldbsearch \
|
|
||||||
bin/ldbrename
|
|
||||||
_LDB_LIBS= lib/libldb.so lib/libldb.so.2 lib/ldb/libldb-tdb-int.so \
|
|
||||||
lib/ldb/libldb-tdb-err-map.so lib/ldb/libldb-key-value.so \
|
|
||||||
lib/ldb/libldb-cmdline.so lib/shared-modules/ldb/skel.so \
|
|
||||||
lib/shared-modules/ldb/server_sort.so \
|
|
||||||
lib/shared-modules/ldb/sample.so \
|
|
||||||
lib/shared-modules/ldb/rdn_name.so \
|
|
||||||
lib/shared-modules/ldb/paged_searches.so \
|
|
||||||
lib/shared-modules/ldb/ldb.so lib/shared-modules/ldb/ldap.so \
|
|
||||||
lib/shared-modules/ldb/asq.so lib/shared-modules/ldb/tdb.so
|
|
||||||
_LDB_MAN1= share/man/man1/ldbadd.1.gz share/man/man1/ldbdel.1.gz \
|
|
||||||
share/man/man1/ldbedit.1.gz share/man/man1/ldbmodify.1.gz \
|
|
||||||
share/man/man1/ldbrename.1.gz share/man/man1/ldbsearch.1.gz
|
|
||||||
_LDB_MAN3= share/man/man3/ldb.3.gz
|
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
|
||||||
|
|
||||||
.if defined(WITH_DEBUG)
|
|
||||||
CONFIGURE_ARGS+= --enable-debug \
|
|
||||||
--verbose
|
|
||||||
.endif
|
|
||||||
|
|
||||||
# Only for 64-bit architectures
|
|
||||||
.if ${ARCH} != armv6 && ${ARCH} != armv7 && ${ARCH} != i386 && ${ARCH} != mips && \
|
|
||||||
${ARCH} != powerpc && ${ARCH} != powerpcspe
|
|
||||||
_LDB_LIBS_64= lib/ldb/libldb-mdb-int.so lib/shared-modules/ldb/mdb.so
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if defined(NO_PYTHON)
|
|
||||||
WARNING+= "${PKGNAME} does not support NO_PYTHON anymore; use option PYTHON3 instead"
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-patch:
|
|
||||||
@${REINPLACE_CMD} -e 's|%%PKGCONFIGDIR%%|${PKGCONFIGDIR}|g' \
|
|
||||||
${BUILD_WRKSRC}/wscript
|
|
||||||
|
|
||||||
# Use threading (or multiprocessing) but not thread (renamed in python 3+).
|
|
||||||
pre-configure:
|
|
||||||
@if ! ${PYTHON_CMD} -c "import multiprocessing;" 2>/dev/null; then \
|
|
||||||
${ECHO_CMD}; \
|
|
||||||
${ECHO_MSG} "===> ${PKGNAME} "${IGNORE_NONTHREAD_PYTHON:Q}.; \
|
|
||||||
${ECHO_CMD}; \
|
|
||||||
${FALSE}; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
pre-build-MANPAGES-off:
|
|
||||||
${MKDIR} ${BUILD_WRKSRC}/bin/default/man
|
|
||||||
.for man in ${_LDB_MAN1} ${_LDB_MAN3}
|
|
||||||
${INSTALL_MAN} ${FILESDIR}/man/`basename ${man} .gz` ${BUILD_WRKSRC}/bin/default/man
|
|
||||||
.endfor
|
|
||||||
|
|
||||||
post-install:
|
|
||||||
.for lib in ${_LDB_BINS} ${_LDB_LIBS} ${_LDB_LIBS_64}
|
|
||||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${lib}
|
|
||||||
.endfor
|
|
||||||
|
|
||||||
post-install-PYTHON3-on:
|
|
||||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpyldb-util${PYTHON_EXT_SUFFIX}.so
|
|
||||||
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/ldb${PYTHON_EXT_SUFFIX}.so
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
TIMESTAMP = 1737642955
|
|
||||||
SHA256 (ldb-2.9.2.tar.gz) = d155884002c79dbb1c3d8642f8b1013f2e520b3aeefd6e96412adec5b8d6cbc0
|
|
||||||
SIZE (ldb-2.9.2.tar.gz) = 1752608
|
|
||||||
@ -1,427 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.\" Title: ldb
|
|
||||||
.\" Author: [see the "Author" section]
|
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
|
||||||
.\" Date: 09/23/2020
|
|
||||||
.\" Manual: System Administration tools
|
|
||||||
.\" Source: LDB 1.1
|
|
||||||
.\" Language: English
|
|
||||||
.\"
|
|
||||||
.TH "LDB" "3" "09/23/2020" "LDB 1\&.1" "System Administration tools"
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * Define some portability stuff
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.\" http://bugs.debian.org/507673
|
|
||||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.ie \n(.g .ds Aq \(aq
|
|
||||||
.el .ds Aq '
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * set default formatting
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" disable hyphenation
|
|
||||||
.nh
|
|
||||||
.\" disable justification (adjust text to left margin only)
|
|
||||||
.ad l
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * MAIN CONTENT STARTS HERE *
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.SH "NAME"
|
|
||||||
ldb \- A light\-weight database library
|
|
||||||
.SH "SYNOPSIS"
|
|
||||||
.sp
|
|
||||||
.nf
|
|
||||||
#include <ldb\&.h>
|
|
||||||
.fi
|
|
||||||
.SH "DESCRIPTION"
|
|
||||||
.PP
|
|
||||||
ldb is a light weight embedded database library and API\&. With a programming interface that is very similar to LDAP, ldb can store its data either in a tdb(3) database or in a real LDAP database\&.
|
|
||||||
.PP
|
|
||||||
When used with the tdb backend ldb does not require any database daemon\&. Instead, ldb function calls are processed immediately by the ldb library, which does IO directly on the database, while allowing multiple readers/writers using operating system byte range locks\&. This leads to an API with very low overheads, often resulting in speeds of more than 10x what can be achieved with a more traditional LDAP architecture\&.
|
|
||||||
.PP
|
|
||||||
In a taxonomy of databases ldb would sit half way between key/value pair databases (such as berkley db or tdb) and a full LDAP database\&. With a structured attribute oriented API like LDAP and good indexing capabilities, ldb can be used for quite sophisticated applications that need a light weight database, without the administrative overhead of a full LDAP installation\&.
|
|
||||||
.PP
|
|
||||||
Included with ldb are a number of useful command line tools for manipulating a ldb database\&. These tools are similar in style to the equivalent ldap command line tools\&.
|
|
||||||
.PP
|
|
||||||
In its default mode of operation with a tdb backend, ldb can also be seen as a "schema\-less LDAP"\&. By default ldb does not require a schema, which greatly reduces the complexity of getting started with ldb databases\&. As the complexity of you application grows you can take advantage of some of the optional schema\-like attributes that ldb offers, or you can migrate to using the full LDAP api while keeping your exiting ldb code\&.
|
|
||||||
.PP
|
|
||||||
If you are new to ldb, then I suggest starting with the manual pages for ldbsearch(1) and ldbedit(1), and experimenting with a local database\&. Then I suggest you look at the ldb_connect(3) and ldb_search(3) manual pages\&.
|
|
||||||
.SH "TOOLS"
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
ldbsearch(1)
|
|
||||||
\- command line ldb search utility
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
ldbedit(1)
|
|
||||||
\- edit all or part of a ldb database using your favourite editor
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
ldbadd(1)
|
|
||||||
\- add records to a ldb database using LDIF formatted input
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
ldbdel(1)
|
|
||||||
\- delete records from a ldb database
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
ldbmodify(1)
|
|
||||||
\- modify records in a ldb database using LDIF formatted input
|
|
||||||
.RE
|
|
||||||
.SH "FUNCTIONS"
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_connect(3)\fR
|
|
||||||
\- connect to a ldb backend
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_search(3)\fR
|
|
||||||
\- perform a database search
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_add(3)\fR
|
|
||||||
\- add a record to the database
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_delete(3)\fR
|
|
||||||
\- delete a record from the database
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_modify(3)\fR
|
|
||||||
\- modify a record in the database
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_errstring(3)\fR
|
|
||||||
\- retrieve extended error information from the last operation
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_ldif_write(3)\fR
|
|
||||||
\- write a LDIF formatted message
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_ldif_write_file(3)\fR
|
|
||||||
\- write a LDIF formatted message to a file
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_ldif_read(3)\fR
|
|
||||||
\- read a LDIF formatted message
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_ldif_read_free(3)\fR
|
|
||||||
\- free the result of a ldb_ldif_read()
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_ldif_read_file(3)\fR
|
|
||||||
\- read a LDIF message from a file
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_ldif_read_string(3)\fR
|
|
||||||
\- read a LDIF message from a string
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_msg_find_element(3)\fR
|
|
||||||
\- find an element in a ldb_message
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_val_equal_exact(3)\fR
|
|
||||||
\- compare two ldb_val structures
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_msg_find_val(3)\fR
|
|
||||||
\- find an element by value
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_msg_add_empty(3)\fR
|
|
||||||
\- add an empty message element to a ldb_message
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_msg_add(3)\fR
|
|
||||||
\- add a non\-empty message element to a ldb_message
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_msg_element_compare(3)\fR
|
|
||||||
\- compare two ldb_message_element structures
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_msg_find_int(3)\fR
|
|
||||||
\- return an integer value from a ldb_message
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_msg_find_uint(3)\fR
|
|
||||||
\- return an unsigned integer value from a ldb_message
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_msg_find_double(3)\fR
|
|
||||||
\- return a double value from a ldb_message
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_msg_find_string(3)\fR
|
|
||||||
\- return a string value from a ldb_message
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_set_alloc(3)\fR
|
|
||||||
\- set the memory allocation function to be used by ldb
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_set_debug(3)\fR
|
|
||||||
\- set a debug handler to be used by ldb
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
\fBldb_set_debug_stderr(3)\fR
|
|
||||||
\- set a debug handler for stderr output
|
|
||||||
.RE
|
|
||||||
.SH "AUTHOR"
|
|
||||||
.PP
|
|
||||||
ldb was written by
|
|
||||||
\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&.
|
|
||||||
.PP
|
|
||||||
If you wish to report a problem or make a suggestion then please see the
|
|
||||||
\m[blue]\fB\%http://ldb.samba.org/\fR\m[]
|
|
||||||
web site for current contact and maintainer information\&.
|
|
||||||
.PP
|
|
||||||
ldb is released under the GNU Lesser General Public License version 2 or later\&. Please see the file COPYING for license details\&.
|
|
||||||
.SH "NOTES"
|
|
||||||
.IP " 1." 4
|
|
||||||
Andrew Tridgell
|
|
||||||
.RS 4
|
|
||||||
\%https://www.samba.org/~tridge/
|
|
||||||
.RE
|
|
||||||
@ -1,78 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.\" Title: ldbadd
|
|
||||||
.\" Author: [see the "AUTHOR" section]
|
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
|
||||||
.\" Date: 09/23/2020
|
|
||||||
.\" Manual: System Administration tools
|
|
||||||
.\" Source: LDB 1.1
|
|
||||||
.\" Language: English
|
|
||||||
.\"
|
|
||||||
.TH "LDBADD" "1" "09/23/2020" "LDB 1\&.1" "System Administration tools"
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * Define some portability stuff
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.\" http://bugs.debian.org/507673
|
|
||||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.ie \n(.g .ds Aq \(aq
|
|
||||||
.el .ds Aq '
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * set default formatting
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" disable hyphenation
|
|
||||||
.nh
|
|
||||||
.\" disable justification (adjust text to left margin only)
|
|
||||||
.ad l
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * MAIN CONTENT STARTS HERE *
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.SH "NAME"
|
|
||||||
ldbadd \- Command\-line utility for adding records to an LDB
|
|
||||||
.SH "SYNOPSIS"
|
|
||||||
.HP \w'\fBldbadd\fR\ 'u
|
|
||||||
\fBldbadd\fR [\-h] [\-H\ LDB\-URL] [ldif\-file1] [ldif\-file2] [\&.\&.\&.]
|
|
||||||
.SH "DESCRIPTION"
|
|
||||||
.PP
|
|
||||||
ldbadd adds records to an ldb(3) database\&. It reads the ldif(5) files specified on the command line and adds the records from these files to the LDB database, which is specified by the \-H option or the LDB_URL environment variable\&.
|
|
||||||
.PP
|
|
||||||
If \- is specified as a ldb file, the ldif input is read from standard input\&.
|
|
||||||
.SH "OPTIONS"
|
|
||||||
.PP
|
|
||||||
\-h
|
|
||||||
.RS 4
|
|
||||||
Show list of available options\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-H <ldb\-url>
|
|
||||||
.RS 4
|
|
||||||
LDB URL to connect to\&. See ldb(3) for details\&.
|
|
||||||
.RE
|
|
||||||
.SH "ENVIRONMENT"
|
|
||||||
.PP
|
|
||||||
LDB_URL
|
|
||||||
.RS 4
|
|
||||||
LDB URL to connect to (can be overridden by using the \-H command\-line option\&.)
|
|
||||||
.RE
|
|
||||||
.SH "VERSION"
|
|
||||||
.PP
|
|
||||||
This man page is correct for version 1\&.1 of LDB\&.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.PP
|
|
||||||
ldb(3), ldbmodify, ldbdel, ldif(5)
|
|
||||||
.SH "AUTHOR"
|
|
||||||
.PP
|
|
||||||
ldb was written by
|
|
||||||
\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&.
|
|
||||||
.PP
|
|
||||||
If you wish to report a problem or make a suggestion then please see the
|
|
||||||
\m[blue]\fB\%http://ldb.samba.org/\fR\m[]
|
|
||||||
web site for current contact and maintainer information\&.
|
|
||||||
.PP
|
|
||||||
This manpage was written by Jelmer Vernooij\&.
|
|
||||||
.SH "NOTES"
|
|
||||||
.IP " 1." 4
|
|
||||||
Andrew Tridgell
|
|
||||||
.RS 4
|
|
||||||
\%https://www.samba.org/~tridge/
|
|
||||||
.RE
|
|
||||||
@ -1,80 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.\" Title: ldbdel
|
|
||||||
.\" Author: [see the "AUTHOR" section]
|
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
|
||||||
.\" Date: 09/23/2020
|
|
||||||
.\" Manual: System Administration tools
|
|
||||||
.\" Source: LDB 1.1
|
|
||||||
.\" Language: English
|
|
||||||
.\"
|
|
||||||
.TH "LDBDEL" "1" "09/23/2020" "LDB 1\&.1" "System Administration tools"
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * Define some portability stuff
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.\" http://bugs.debian.org/507673
|
|
||||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.ie \n(.g .ds Aq \(aq
|
|
||||||
.el .ds Aq '
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * set default formatting
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" disable hyphenation
|
|
||||||
.nh
|
|
||||||
.\" disable justification (adjust text to left margin only)
|
|
||||||
.ad l
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * MAIN CONTENT STARTS HERE *
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.SH "NAME"
|
|
||||||
ldbdel \- Command\-line program for deleting LDB records
|
|
||||||
.SH "SYNOPSIS"
|
|
||||||
.HP \w'\fBldbdel\fR\ 'u
|
|
||||||
\fBldbdel\fR [\-h] [\-H\ LDB\-URL] [dn] [\&.\&.\&.]
|
|
||||||
.SH "DESCRIPTION"
|
|
||||||
.PP
|
|
||||||
ldbdel deletes records from an ldb(3) database\&. It deletes the records identified by the dn\*(Aqs specified on the command\-line\&.
|
|
||||||
.PP
|
|
||||||
ldbdel uses either the database that is specified with the \-H option or the database specified by the LDB_URL environment variable\&.
|
|
||||||
.SH "OPTIONS"
|
|
||||||
.PP
|
|
||||||
\-h
|
|
||||||
.RS 4
|
|
||||||
Show list of available options\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-H <ldb\-url>
|
|
||||||
.RS 4
|
|
||||||
LDB URL to connect to\&. See ldb(3) for details\&.
|
|
||||||
.RE
|
|
||||||
.SH "ENVIRONMENT"
|
|
||||||
.PP
|
|
||||||
LDB_URL
|
|
||||||
.RS 4
|
|
||||||
LDB URL to connect to (can be overridden by using the \-H command\-line option\&.)
|
|
||||||
.RE
|
|
||||||
.SH "VERSION"
|
|
||||||
.PP
|
|
||||||
This man page is correct for version 1\&.1 of LDB\&.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.PP
|
|
||||||
ldb(3), ldbmodify, ldbadd, ldif(5)
|
|
||||||
.SH "AUTHOR"
|
|
||||||
.PP
|
|
||||||
ldb was written by
|
|
||||||
\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&.
|
|
||||||
.PP
|
|
||||||
If you wish to report a problem or make a suggestion then please see the
|
|
||||||
\m[blue]\fB\%http://ldb.samba.org/\fR\m[]
|
|
||||||
web site for current contact and maintainer information\&.
|
|
||||||
.PP
|
|
||||||
ldbdel was written by Andrew Tridgell\&.
|
|
||||||
.PP
|
|
||||||
This manpage was written by Jelmer Vernooij\&.
|
|
||||||
.SH "NOTES"
|
|
||||||
.IP " 1." 4
|
|
||||||
Andrew Tridgell
|
|
||||||
.RS 4
|
|
||||||
\%https://www.samba.org/~tridge/
|
|
||||||
.RE
|
|
||||||
@ -1,111 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.\" Title: ldbedit
|
|
||||||
.\" Author: [see the "AUTHOR" section]
|
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
|
||||||
.\" Date: 09/23/2020
|
|
||||||
.\" Manual: System Administration tools
|
|
||||||
.\" Source: LDB 1.1
|
|
||||||
.\" Language: English
|
|
||||||
.\"
|
|
||||||
.TH "LDBEDIT" "1" "09/23/2020" "LDB 1\&.1" "System Administration tools"
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * Define some portability stuff
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.\" http://bugs.debian.org/507673
|
|
||||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.ie \n(.g .ds Aq \(aq
|
|
||||||
.el .ds Aq '
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * set default formatting
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" disable hyphenation
|
|
||||||
.nh
|
|
||||||
.\" disable justification (adjust text to left margin only)
|
|
||||||
.ad l
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * MAIN CONTENT STARTS HERE *
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.SH "NAME"
|
|
||||||
ldbedit \- Edit LDB databases using your preferred editor
|
|
||||||
.SH "SYNOPSIS"
|
|
||||||
.HP \w'\fBldbedit\fR\ 'u
|
|
||||||
\fBldbedit\fR [\-?] [\-\-usage] [\-s\ base|one|sub] [\-b\ basedn] [\-a] [\-e\ editor] [\-H\ LDB\-URL] [expression] [attributes...]
|
|
||||||
.SH "DESCRIPTION"
|
|
||||||
.PP
|
|
||||||
ldbedit is a utility that allows you to edit LDB entries (in tdb files, sqlite files or LDAP servers) using your preferred editor\&. ldbedit generates an LDIF file based on your query, allows you to edit the LDIF, and then merges that LDIF back into the LDB backend\&.
|
|
||||||
.SH "OPTIONS"
|
|
||||||
.PP
|
|
||||||
\-?, \-\-help
|
|
||||||
.RS 4
|
|
||||||
Show list of available options, and a phrase describing what that option does\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-\-usage
|
|
||||||
.RS 4
|
|
||||||
Show list of available options\&. This is similar to the help option, however it does not provide any description, and is hence shorter\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-H <ldb\-url>
|
|
||||||
.RS 4
|
|
||||||
LDB URL to connect to\&. For a tdb database, this will be of the form tdb://\fIfilename\fR\&. For a LDAP connection over unix domain sockets, this will be of the form ldapi://\fIsocket\fR\&. For a (potentially remote) LDAP connection over TCP, this will be of the form ldap://\fIhostname\fR\&. For an SQLite database, this will be of the form sqlite://\fIfilename\fR\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-s one|sub|base
|
|
||||||
.RS 4
|
|
||||||
Search scope to use\&. One\-level, subtree or base\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-a, \-all
|
|
||||||
.RS 4
|
|
||||||
Edit all records\&. This allows you to apply the same change to a number of records at once\&. You probably want to combine this with an expression of the form "objectclass=*"\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-e editor, \-\-editor editor
|
|
||||||
.RS 4
|
|
||||||
Specify the editor that should be used (overrides the VISUAL and EDITOR environment variables)\&. If this option is not used, and neither VISUAL nor EDITOR environment variables are set, then the vi editor will be used\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-b basedn
|
|
||||||
.RS 4
|
|
||||||
Specify Base Distinguished Name to use\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-v, \-\-verbose
|
|
||||||
.RS 4
|
|
||||||
Make ldbedit more verbose about the operations that are being performed\&. Without this option, ldbedit will only provide a summary change line\&.
|
|
||||||
.RE
|
|
||||||
.SH "ENVIRONMENT"
|
|
||||||
.PP
|
|
||||||
LDB_URL
|
|
||||||
.RS 4
|
|
||||||
LDB URL to connect to\&. This can be overridden by using the \-H command\-line option\&.)
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
VISUAL and EDITOR
|
|
||||||
.RS 4
|
|
||||||
Environment variables used to determine what editor to use\&. VISUAL takes precedence over EDITOR, and both are overridden by the \-e command\-line option\&.
|
|
||||||
.RE
|
|
||||||
.SH "VERSION"
|
|
||||||
.PP
|
|
||||||
This man page is correct for version 1\&.1 of LDB\&.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.PP
|
|
||||||
ldb(3), ldbmodify(1), ldbdel(1), ldif(5), vi(1)
|
|
||||||
.SH "AUTHOR"
|
|
||||||
.PP
|
|
||||||
ldb was written by
|
|
||||||
\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&.
|
|
||||||
.PP
|
|
||||||
If you wish to report a problem or make a suggestion then please see the
|
|
||||||
\m[blue]\fB\%http://ldb.samba.org/\fR\m[]
|
|
||||||
web site for current contact and maintainer information\&.
|
|
||||||
.PP
|
|
||||||
This manpage was written by Jelmer Vernooij and updated by Brad Hards\&.
|
|
||||||
.SH "NOTES"
|
|
||||||
.IP " 1." 4
|
|
||||||
Andrew Tridgell
|
|
||||||
.RS 4
|
|
||||||
\%https://www.samba.org/~tridge/
|
|
||||||
.RE
|
|
||||||
@ -1,73 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.\" Title: ldbmodify
|
|
||||||
.\" Author: [see the "AUTHOR" section]
|
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
|
||||||
.\" Date: 09/23/2020
|
|
||||||
.\" Manual: System Administration tools
|
|
||||||
.\" Source: LDB 1.1
|
|
||||||
.\" Language: English
|
|
||||||
.\"
|
|
||||||
.TH "LDBMODIFY" "1" "09/23/2020" "LDB 1\&.1" "System Administration tools"
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * Define some portability stuff
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.\" http://bugs.debian.org/507673
|
|
||||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.ie \n(.g .ds Aq \(aq
|
|
||||||
.el .ds Aq '
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * set default formatting
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" disable hyphenation
|
|
||||||
.nh
|
|
||||||
.\" disable justification (adjust text to left margin only)
|
|
||||||
.ad l
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * MAIN CONTENT STARTS HERE *
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.SH "NAME"
|
|
||||||
ldbmodify \- Modify records in a LDB database
|
|
||||||
.SH "SYNOPSIS"
|
|
||||||
.HP \w'\fBldbmodify\fR\ 'u
|
|
||||||
\fBldbmodify\fR [\-H\ LDB\-URL] [ldif\-file]
|
|
||||||
.SH "DESCRIPTION"
|
|
||||||
.PP
|
|
||||||
ldbmodify changes, adds and deletes records in a LDB database\&. The changes that should be made to the LDB database are read from the specified LDIF\-file\&. If \- is specified as the filename, input is read from stdin\&.
|
|
||||||
.PP
|
|
||||||
For now, see ldapmodify(1) for details on the LDIF file format\&.
|
|
||||||
.SH "OPTIONS"
|
|
||||||
.PP
|
|
||||||
\-H <ldb\-url>
|
|
||||||
.RS 4
|
|
||||||
LDB URL to connect to\&. See ldb(3) for details\&.
|
|
||||||
.RE
|
|
||||||
.SH "ENVIRONMENT"
|
|
||||||
.PP
|
|
||||||
LDB_URL
|
|
||||||
.RS 4
|
|
||||||
LDB URL to connect to (can be overridden by using the \-H command\-line option\&.)
|
|
||||||
.RE
|
|
||||||
.SH "VERSION"
|
|
||||||
.PP
|
|
||||||
This man page is correct for version 1\&.1 of LDB\&.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.PP
|
|
||||||
ldb(3), ldbedit
|
|
||||||
.SH "AUTHOR"
|
|
||||||
.PP
|
|
||||||
ldb was written by
|
|
||||||
\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&.
|
|
||||||
.PP
|
|
||||||
If you wish to report a problem or make a suggestion then please see the
|
|
||||||
\m[blue]\fB\%http://ldb.samba.org/\fR\m[]
|
|
||||||
web site for current contact and maintainer information\&.
|
|
||||||
.PP
|
|
||||||
This manpage was written by Jelmer Vernooij\&.
|
|
||||||
.SH "NOTES"
|
|
||||||
.IP " 1." 4
|
|
||||||
Andrew Tridgell
|
|
||||||
.RS 4
|
|
||||||
\%https://www.samba.org/~tridge/
|
|
||||||
.RE
|
|
||||||
@ -1,81 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.\" Title: ldbrename
|
|
||||||
.\" Author: [see the "AUTHOR" section]
|
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
|
||||||
.\" Date: 09/23/2020
|
|
||||||
.\" Manual: System Administration tools
|
|
||||||
.\" Source: LDB 1.1
|
|
||||||
.\" Language: English
|
|
||||||
.\"
|
|
||||||
.TH "LDBRENAME" "1" "09/23/2020" "LDB 1\&.1" "System Administration tools"
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * Define some portability stuff
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.\" http://bugs.debian.org/507673
|
|
||||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.ie \n(.g .ds Aq \(aq
|
|
||||||
.el .ds Aq '
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * set default formatting
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" disable hyphenation
|
|
||||||
.nh
|
|
||||||
.\" disable justification (adjust text to left margin only)
|
|
||||||
.ad l
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * MAIN CONTENT STARTS HERE *
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.SH "NAME"
|
|
||||||
ldbrename \- Edit LDB databases using your favorite editor
|
|
||||||
.SH "SYNOPSIS"
|
|
||||||
.HP \w'\fBldbrename\fR\ 'u
|
|
||||||
\fBldbrename\fR [\-h] [\-o\ options] {olddn} {newdn}
|
|
||||||
.SH "DESCRIPTION"
|
|
||||||
.PP
|
|
||||||
ldbrename is a utility that allows you to rename trees in an LDB database based by DN\&. This utility takes two arguments: the original DN name of the top element and the DN to change it to\&.
|
|
||||||
.SH "OPTIONS"
|
|
||||||
.PP
|
|
||||||
\-h
|
|
||||||
.RS 4
|
|
||||||
Show list of available options\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-H <ldb\-url>
|
|
||||||
.RS 4
|
|
||||||
LDB URL to connect to\&. See ldb(3) for details\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-o options
|
|
||||||
.RS 4
|
|
||||||
Extra ldb options, such as modules\&.
|
|
||||||
.RE
|
|
||||||
.SH "ENVIRONMENT"
|
|
||||||
.PP
|
|
||||||
LDB_URL
|
|
||||||
.RS 4
|
|
||||||
LDB URL to connect to (can be overridden by using the \-H command\-line option\&.)
|
|
||||||
.RE
|
|
||||||
.SH "VERSION"
|
|
||||||
.PP
|
|
||||||
This man page is correct for version 1\&.1 of LDB\&.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.PP
|
|
||||||
ldb(3), ldbmodify, ldbdel, ldif(5)
|
|
||||||
.SH "AUTHOR"
|
|
||||||
.PP
|
|
||||||
ldb was written by
|
|
||||||
\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&.
|
|
||||||
.PP
|
|
||||||
If you wish to report a problem or make a suggestion then please see the
|
|
||||||
\m[blue]\fB\%http://ldb.samba.org/\fR\m[]
|
|
||||||
web site for current contact and maintainer information\&.
|
|
||||||
.PP
|
|
||||||
This manpage was written by Jelmer Vernooij\&.
|
|
||||||
.SH "NOTES"
|
|
||||||
.IP " 1." 4
|
|
||||||
Andrew Tridgell
|
|
||||||
.RS 4
|
|
||||||
\%https://www.samba.org/~tridge/
|
|
||||||
.RE
|
|
||||||
@ -1,91 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.\" Title: ldbsearch
|
|
||||||
.\" Author: [see the "AUTHOR" section]
|
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
|
||||||
.\" Date: 09/23/2020
|
|
||||||
.\" Manual: System Administration tools
|
|
||||||
.\" Source: LDB 1.1
|
|
||||||
.\" Language: English
|
|
||||||
.\"
|
|
||||||
.TH "LDBSEARCH" "1" "09/23/2020" "LDB 1\&.1" "System Administration tools"
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * Define some portability stuff
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.\" http://bugs.debian.org/507673
|
|
||||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.ie \n(.g .ds Aq \(aq
|
|
||||||
.el .ds Aq '
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * set default formatting
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" disable hyphenation
|
|
||||||
.nh
|
|
||||||
.\" disable justification (adjust text to left margin only)
|
|
||||||
.ad l
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * MAIN CONTENT STARTS HERE *
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.SH "NAME"
|
|
||||||
ldbsearch \- Search for records in a LDB database
|
|
||||||
.SH "SYNOPSIS"
|
|
||||||
.HP \w'\fBldbsearch\fR\ 'u
|
|
||||||
\fBldbsearch\fR [\-h] [\-s\ base|one|sub] [\-b\ basedn] [\-i] [\-H\ LDB\-URL] [expression] [attributes]
|
|
||||||
.SH "DESCRIPTION"
|
|
||||||
.PP
|
|
||||||
ldbsearch searches a LDB database for records matching the specified expression (see the ldapsearch(1) manpage for a description of the expression format)\&. For each record, the specified attributes are printed\&.
|
|
||||||
.SH "OPTIONS"
|
|
||||||
.PP
|
|
||||||
\-h
|
|
||||||
.RS 4
|
|
||||||
Show list of available options\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-H <ldb\-url>
|
|
||||||
.RS 4
|
|
||||||
LDB URL to connect to\&. See ldb(3) for details\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-s one|sub|base
|
|
||||||
.RS 4
|
|
||||||
Search scope to use\&. One\-level, subtree or base\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-i
|
|
||||||
.RS 4
|
|
||||||
Read search expressions from stdin\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-b basedn
|
|
||||||
.RS 4
|
|
||||||
Specify Base DN to use\&.
|
|
||||||
.RE
|
|
||||||
.SH "ENVIRONMENT"
|
|
||||||
.PP
|
|
||||||
LDB_URL
|
|
||||||
.RS 4
|
|
||||||
LDB URL to connect to (can be overridden by using the \-H command\-line option\&.)
|
|
||||||
.RE
|
|
||||||
.SH "VERSION"
|
|
||||||
.PP
|
|
||||||
This man page is correct for version 1\&.1 of LDB\&.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.PP
|
|
||||||
ldb(3), ldbedit(1)
|
|
||||||
.SH "AUTHOR"
|
|
||||||
.PP
|
|
||||||
ldb was written by
|
|
||||||
\m[blue]\fBAndrew Tridgell\fR\m[]\&\s-2\u[1]\d\s+2\&.
|
|
||||||
.PP
|
|
||||||
If you wish to report a problem or make a suggestion then please see the
|
|
||||||
\m[blue]\fB\%http://ldb.samba.org/\fR\m[]
|
|
||||||
web site for current contact and maintainer information\&.
|
|
||||||
.PP
|
|
||||||
This manpage was written by Jelmer Vernooij\&.
|
|
||||||
.SH "NOTES"
|
|
||||||
.IP " 1." 4
|
|
||||||
Andrew Tridgell
|
|
||||||
.RS 4
|
|
||||||
\%https://www.samba.org/~tridge/
|
|
||||||
.RE
|
|
||||||
@ -1,50 +0,0 @@
|
|||||||
--- buildtools/wafsamba/samba_autoconf.py.orig 2022-12-15 13:35:50 UTC
|
|
||||||
+++ buildtools/wafsamba/samba_autoconf.py
|
|
||||||
@@ -595,7 +595,7 @@ def library_flags(self, libs):
|
|
||||||
|
|
||||||
|
|
||||||
@conf
|
|
||||||
-def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False):
|
|
||||||
+def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False, msg=None):
|
|
||||||
'''check if a set of libraries exist as system libraries
|
|
||||||
|
|
||||||
returns the sublist of libs that do exist as a syslib or []
|
|
||||||
@@ -615,11 +615,29 @@ int foo()
|
|
||||||
ret.append(lib)
|
|
||||||
continue
|
|
||||||
|
|
||||||
+ if msg is None:
|
|
||||||
+ msg = 'Checking for library %s' % lib
|
|
||||||
+
|
|
||||||
(ccflags, ldflags, cpppath) = library_flags(conf, lib)
|
|
||||||
+
|
|
||||||
if shlib:
|
|
||||||
- res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False)
|
|
||||||
+ res = conf.check(features='c cshlib',
|
|
||||||
+ fragment=fragment,
|
|
||||||
+ lib=lib,
|
|
||||||
+ uselib_store=lib,
|
|
||||||
+ cflags=ccflags,
|
|
||||||
+ ldflags=ldflags,
|
|
||||||
+ uselib=lib.upper(),
|
|
||||||
+ mandatory=False,
|
|
||||||
+ msg=msg)
|
|
||||||
else:
|
|
||||||
- res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False)
|
|
||||||
+ res = conf.check(lib=lib,
|
|
||||||
+ uselib_store=lib,
|
|
||||||
+ cflags=ccflags,
|
|
||||||
+ ldflags=ldflags,
|
|
||||||
+ uselib=lib.upper(),
|
|
||||||
+ mandatory=False,
|
|
||||||
+ msg=msg)
|
|
||||||
|
|
||||||
if not res:
|
|
||||||
if mandatory:
|
|
||||||
@@ -989,5 +1007,5 @@ def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(conf):
|
|
||||||
conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
|
|
||||||
|
|
||||||
if (conf.env.undefined_ignore_ldflags == [] and
|
|
||||||
- conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'])):
|
|
||||||
+ conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'] + conf.env.WERROR_CFLAGS)):
|
|
||||||
conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup']
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- buildtools/wafsamba/samba_install.py.orig 2019-03-21 10:12:32 UTC
|
|
||||||
+++ buildtools/wafsamba/samba_install.py
|
|
||||||
@@ -115,7 +115,7 @@ def install_library(self):
|
|
||||||
inst_name = bld.make_libname(t.target)
|
|
||||||
elif self.vnum:
|
|
||||||
vnum_base = self.vnum.split('.')[0]
|
|
||||||
- install_name = bld.make_libname(target_name, version=self.vnum)
|
|
||||||
+ install_name = bld.make_libname(target_name, version=vnum_base)
|
|
||||||
install_link = bld.make_libname(target_name, version=vnum_base)
|
|
||||||
inst_name = bld.make_libname(t.target)
|
|
||||||
if not self.private_library or not t.env.SONAME_ST:
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
--- buildtools/wafsamba/wscript.orig 2022-03-29 07:53:52 UTC
|
|
||||||
+++ buildtools/wafsamba/wscript
|
|
||||||
@@ -133,12 +133,17 @@ Currently the only tested value is 'smbtorture,smbd/sm
|
|
||||||
help=("private library directory [PREFIX/lib/%s]" % Context.g_module.APPNAME),
|
|
||||||
action="store", dest='PRIVATELIBDIR', default=None)
|
|
||||||
|
|
||||||
+ opt.add_option('--with-openldap',
|
|
||||||
+ help='additional directory to search for OpenLDAP libs',
|
|
||||||
+ action='store', dest='ldap_open', default=None,
|
|
||||||
+ match = ['Checking for library lber', 'Checking for library ldap'])
|
|
||||||
+
|
|
||||||
opt.add_option('--with-libiconv',
|
|
||||||
help='additional directory to search for libiconv',
|
|
||||||
- action='store', dest='iconv_open', default='/usr/local',
|
|
||||||
+ action='store', dest='iconv_open', default=None,
|
|
||||||
match = ['Checking for library iconv', 'Checking for iconv_open', 'Checking for header iconv.h'])
|
|
||||||
opt.add_option('--without-gettext',
|
|
||||||
- help=("Disable use of gettext"),
|
|
||||||
+ help=("disable use of gettext"),
|
|
||||||
action="store_true", dest='disable_gettext', default=False)
|
|
||||||
|
|
||||||
gr = opt.option_group('developer options')
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
--- include/ldb_module.h.orig 2023-03-29 13:42:11 UTC
|
|
||||||
+++ include/ldb_module.h
|
|
||||||
@@ -108,6 +108,12 @@ struct ldb_module;
|
|
||||||
*/
|
|
||||||
#define LDB_FLAG_INTERNAL_ACCESS_CHECKED 0x400
|
|
||||||
|
|
||||||
+/*
|
|
||||||
+ * indicates that this element's values are shared with another element (for
|
|
||||||
+ * example, in a shallow copy of an ldb_message) and should not be freed
|
|
||||||
+ */
|
|
||||||
+#define LDB_FLAG_INTERNAL_SHARED_VALUES 0x200
|
|
||||||
+
|
|
||||||
/* an extended match rule that always fails to match */
|
|
||||||
#define SAMBA_LDAP_MATCH_ALWAYS_FALSE "1.3.6.1.4.1.7165.4.5.1"
|
|
||||||
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
--- ldb_key_value/ldb_kv_cache.c.orig 2022-01-24 10:27:24 UTC
|
|
||||||
+++ ldb_key_value/ldb_kv_cache.c
|
|
||||||
@@ -92,7 +92,9 @@ static int ldb_schema_attribute_compare(const void *p1
|
|
||||||
{
|
|
||||||
const struct ldb_schema_attribute *sa1 = (const struct ldb_schema_attribute *)p1;
|
|
||||||
const struct ldb_schema_attribute *sa2 = (const struct ldb_schema_attribute *)p2;
|
|
||||||
- return ldb_attr_cmp(sa1->name, sa2->name);
|
|
||||||
+ int res = ldb_attr_cmp(sa1->name, sa2->name);
|
|
||||||
+
|
|
||||||
+ return (res) ? res : (sa1->flags > sa2->flags) ? 1 : (sa1->flags < sa2->flags) ? -1 : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
--- lib/replace/replace.c.orig 2023-11-22 12:09:13 UTC
|
|
||||||
+++ lib/replace/replace.c
|
|
||||||
@@ -560,6 +560,7 @@ long long int rep_strtoll(const char *str, char **endp
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef HAVE_STRTOULL
|
|
||||||
+#warning NO_HAVE_STRTOULL
|
|
||||||
unsigned long long int rep_strtoull(const char *str, char **endptr, int base)
|
|
||||||
{
|
|
||||||
#ifdef HAVE_STRTOUQ
|
|
||||||
@@ -573,7 +574,9 @@ unsigned long long int rep_strtoull(const char *str, c
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
+#warning HAVE_STROULL
|
|
||||||
#ifdef HAVE_BSD_STRTOLL
|
|
||||||
+#warning HAVE_BSD_STROLL
|
|
||||||
#undef strtoull
|
|
||||||
unsigned long long int rep_strtoull(const char *str, char **endptr, int base)
|
|
||||||
{
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- lib/replace/wscript.orig 2022-10-24 10:21:14 UTC
|
|
||||||
+++ lib/replace/wscript
|
|
||||||
@@ -122,7 +122,7 @@ def configure(conf):
|
|
||||||
conf.CHECK_HEADERS('sys/atomic.h stdatomic.h')
|
|
||||||
conf.CHECK_HEADERS('libgen.h')
|
|
||||||
|
|
||||||
- if conf.CHECK_CFLAGS('-Wno-format-truncation'):
|
|
||||||
+ if conf.CHECK_CFLAGS(['-Wno-format-truncation'] + conf.env.WERROR_CFLAGS):
|
|
||||||
conf.define('HAVE_WNO_FORMAT_TRUNCATION', '1')
|
|
||||||
|
|
||||||
if conf.CHECK_CFLAGS('-Wno-unused-function'):
|
|
||||||
@ -1,40 +0,0 @@
|
|||||||
--- wscript.orig 2023-03-29 15:42:11.181590800 +0200
|
|
||||||
+++ wscript 2023-12-07 17:41:11.676269000 +0100
|
|
||||||
@@ -208,7 +208,7 @@
|
|
||||||
if bld.env.standalone_ldb:
|
|
||||||
if not 'PACKAGE_VERSION' in bld.env:
|
|
||||||
bld.env.PACKAGE_VERSION = VERSION
|
|
||||||
- bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
|
|
||||||
+ bld.env.PKGCONFIGDIR = '%%PKGCONFIGDIR%%'
|
|
||||||
private_library = False
|
|
||||||
else:
|
|
||||||
private_library = True
|
|
||||||
@@ -413,7 +413,7 @@
|
|
||||||
bld.SUBDIR('ldb_mdb',
|
|
||||||
'''ldb_mdb.c '''),
|
|
||||||
private_library=True,
|
|
||||||
- deps='ldb lmdb ldb_key_value')
|
|
||||||
+ deps='replace ldb lmdb ldb_key_value')
|
|
||||||
lmdb_deps = ' ldb_mdb_int'
|
|
||||||
else:
|
|
||||||
lmdb_deps = ''
|
|
||||||
@@ -498,11 +498,6 @@
|
|
||||||
deps='cmocka ldb',
|
|
||||||
install=False)
|
|
||||||
|
|
||||||
- bld.SAMBA_BINARY('ldb_match_test',
|
|
||||||
- source='tests/ldb_match_test.c',
|
|
||||||
- deps='cmocka ldb',
|
|
||||||
- install=False)
|
|
||||||
-
|
|
||||||
bld.SAMBA_BINARY('ldb_key_value_test',
|
|
||||||
source='tests/ldb_key_value_test.c',
|
|
||||||
deps='cmocka ldb ldb_tdb_err_map',
|
|
||||||
@@ -634,7 +629,6 @@
|
|
||||||
'ldb_tdb_guid_mod_op_test',
|
|
||||||
'ldb_tdb_kv_ops_test',
|
|
||||||
'ldb_tdb_test',
|
|
||||||
- 'ldb_match_test',
|
|
||||||
'ldb_key_value_test',
|
|
||||||
# we currently don't run ldb_key_value_sub_txn_tdb_test as it
|
|
||||||
# tests the nested/sub transaction handling
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
ldb is a LDAP-like embedded database.
|
|
||||||
|
|
||||||
ldb provides a fast database with an LDAP-like API designed to be used
|
|
||||||
within an application.
|
|
||||||
|
|
||||||
In some ways it can be seen as a intermediate solution between key-value
|
|
||||||
pair databases and a real LDAP database.
|
|
||||||
@ -1,75 +0,0 @@
|
|||||||
PORTNAME= tdb
|
|
||||||
DISTVERSION= 1.4.10
|
|
||||||
#PORTEPOCH= 1
|
|
||||||
CATEGORIES= databases
|
|
||||||
MASTER_SITES= SAMBA
|
|
||||||
|
|
||||||
MAINTAINER= samba@FreeBSD.org
|
|
||||||
COMMENT= Trivial Database
|
|
||||||
WWW= https://tdb.samba.org/
|
|
||||||
|
|
||||||
LICENSE= GPLv3
|
|
||||||
|
|
||||||
USES= compiler pkgconfig shebangfix waf
|
|
||||||
USE_LDCONFIG= yes
|
|
||||||
SHEBANG_GLOB= *.py
|
|
||||||
WAF_CMD= buildtools/bin/waf
|
|
||||||
CONFIGURE_LOG= bin/config.log
|
|
||||||
|
|
||||||
PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
|
|
||||||
PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR:S;^${PREFIX}/;;}
|
|
||||||
|
|
||||||
CONFIGURE_ARGS+= --disable-rpath \
|
|
||||||
--disable-rpath-install \
|
|
||||||
--bundled-libraries=NONE \
|
|
||||||
--builtin-libraries=replace \
|
|
||||||
--without-gettext
|
|
||||||
CONFIGURE_ENV= PYTHONHASHSEED=1
|
|
||||||
MAKE_ENV= PYTHONHASHSEED=1
|
|
||||||
|
|
||||||
MANPAGES_DESC= Build and install manpages (requires textproc/docbook-xsl)
|
|
||||||
|
|
||||||
OPTIONS_DEFINE= MANPAGES DEBUG PYTHON
|
|
||||||
OPTIONS_DEFAULT= PYTHON
|
|
||||||
OPTIONS_SUB= yes
|
|
||||||
|
|
||||||
DEBUG_CFLAGS= -g -ggdb3 -O0
|
|
||||||
DEBUG_CONFIGURE_ON= --verbose --enable-debug
|
|
||||||
DEBUG_MAKE_ARGS= --verbose
|
|
||||||
|
|
||||||
PYTHON_USES= gettext-runtime python
|
|
||||||
PYTHON_USE+= python=py3kplist
|
|
||||||
PYTHON_USES_OFF= python:build,test
|
|
||||||
PYTHON_CONFIGURE_OFF= --disable-python
|
|
||||||
|
|
||||||
MANPAGES_CONFIGURE_ENV_OFF+= XSLTPROC="true"
|
|
||||||
MANPAGES_BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \
|
|
||||||
xsltproc:textproc/libxslt
|
|
||||||
# No fancy color error messages
|
|
||||||
CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}}
|
|
||||||
CFLAGS_clang= -fno-color-diagnostics
|
|
||||||
CONFIGURE_ENV+= NOCOLOR=yes
|
|
||||||
MAKE_ENV+= NOCOLOR=yes
|
|
||||||
# Some symbols in tdb's linker version scripts are not defined, but since the
|
|
||||||
# scripts are generated dynamically, suppress errors with lld >= 17 due to these
|
|
||||||
# undefined symbols.
|
|
||||||
LDFLAGS+= -Wl,--undefined-version
|
|
||||||
|
|
||||||
CONFLICTS_INSTALL= tdb
|
|
||||||
|
|
||||||
post-patch:
|
|
||||||
@${REINPLACE_CMD} -e 's|%%PKGCONFIGDIR%%|${PKGCONFIGDIR}|g' \
|
|
||||||
${BUILD_WRKSRC}/wscript
|
|
||||||
|
|
||||||
pre-build-MANPAGES-off:
|
|
||||||
${MKDIR} ${BUILD_WRKSRC}/bin/default/man
|
|
||||||
${INSTALL_MAN} ${FILESDIR}/tdb*.8 ${BUILD_WRKSRC}/bin/default/man
|
|
||||||
|
|
||||||
post-install:
|
|
||||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tdb*
|
|
||||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtdb.so.1
|
|
||||||
|
|
||||||
post-install-PYTHON-on:
|
|
||||||
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/tdb*.so
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
TIMESTAMP = 1737641302
|
|
||||||
SHA256 (tdb-1.4.10.tar.gz) = 02338e33c16c21c9e29571cef523e76b2b708636254f6f30c6cf195d48c62daf
|
|
||||||
SIZE (tdb-1.4.10.tar.gz) = 747139
|
|
||||||
@ -1,35 +0,0 @@
|
|||||||
--- buildtools/wafsamba/samba_autoconf.py.orig 2019-08-20 15:35:08 UTC
|
|
||||||
+++ buildtools/wafsamba/samba_autoconf.py
|
|
||||||
@@ -573,7 +573,7 @@ def library_flags(self, libs):
|
|
||||||
|
|
||||||
|
|
||||||
@conf
|
|
||||||
-def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False):
|
|
||||||
+def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False, msg=None):
|
|
||||||
'''check if a set of libraries exist as system libraries
|
|
||||||
|
|
||||||
returns the sublist of libs that do exist as a syslib or []
|
|
||||||
@@ -593,11 +593,14 @@ int foo()
|
|
||||||
ret.append(lib)
|
|
||||||
continue
|
|
||||||
|
|
||||||
+ if msg is None:
|
|
||||||
+ msg = 'Checking for library %s' % lib
|
|
||||||
+
|
|
||||||
(ccflags, ldflags, cpppath) = library_flags(conf, lib)
|
|
||||||
if shlib:
|
|
||||||
- res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False)
|
|
||||||
+ res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False, msg=msg)
|
|
||||||
else:
|
|
||||||
- res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False)
|
|
||||||
+ res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False, msg=msg)
|
|
||||||
|
|
||||||
if not res:
|
|
||||||
if mandatory:
|
|
||||||
@@ -949,5 +952,5 @@ def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(c
|
|
||||||
conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
|
|
||||||
|
|
||||||
if (conf.env.undefined_ignore_ldflags == [] and
|
|
||||||
- conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'])):
|
|
||||||
+ conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'] + conf.env.WERROR_CFLAGS)):
|
|
||||||
conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup']
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- buildtools/wafsamba/samba_install.py.orig 2019-02-14 11:21:38 UTC
|
|
||||||
+++ buildtools/wafsamba/samba_install.py
|
|
||||||
@@ -118,7 +118,7 @@ def install_library(self):
|
|
||||||
inst_name = bld.make_libname(t.target)
|
|
||||||
elif self.vnum:
|
|
||||||
vnum_base = self.vnum.split('.')[0]
|
|
||||||
- install_name = bld.make_libname(target_name, version=self.vnum)
|
|
||||||
+ install_name = bld.make_libname(target_name, version=vnum_base)
|
|
||||||
install_link = bld.make_libname(target_name, version=vnum_base)
|
|
||||||
inst_name = bld.make_libname(t.target)
|
|
||||||
if not self.private_library:
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
--- buildtools/wafsamba/wscript.orig 2019-02-26 06:44:21 UTC
|
|
||||||
+++ buildtools/wafsamba/wscript
|
|
||||||
@@ -82,10 +82,10 @@ def options(opt):
|
|
||||||
|
|
||||||
opt.add_option('--with-libiconv',
|
|
||||||
help='additional directory to search for libiconv',
|
|
||||||
- action='store', dest='iconv_open', default='/usr/local',
|
|
||||||
+ action='store', dest='iconv_open', default=None,
|
|
||||||
match = ['Checking for library iconv', 'Checking for iconv_open', 'Checking for header iconv.h'])
|
|
||||||
opt.add_option('--without-gettext',
|
|
||||||
- help=("Disable use of gettext"),
|
|
||||||
+ help=("disable use of gettext"),
|
|
||||||
action="store_true", dest='disable_gettext', default=False)
|
|
||||||
|
|
||||||
gr = opt.option_group('developer options')
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- lib/replace/wscript.orig 2019-02-26 06:44:21 UTC
|
|
||||||
+++ lib/replace/wscript
|
|
||||||
@@ -119,7 +119,7 @@ def configure(conf):
|
|
||||||
conf.CHECK_HEADERS('sys/atomic.h stdatomic.h')
|
|
||||||
conf.CHECK_HEADERS('libgen.h')
|
|
||||||
|
|
||||||
- if conf.CHECK_CFLAGS('-Wno-format-truncation'):
|
|
||||||
+ if conf.CHECK_CFLAGS(['-Wno-format-truncation'] + conf.env.WERROR_CFLAGS):
|
|
||||||
conf.define('HAVE_WNO_FORMAT_TRUNCATION', '1')
|
|
||||||
|
|
||||||
if conf.CHECK_CFLAGS('-Wno-unused-function'):
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- wscript.orig 2019-02-26 07:02:52 UTC
|
|
||||||
+++ wscript
|
|
||||||
@@ -121,7 +121,7 @@ def build(bld):
|
|
||||||
COMMON_SRC = bld.SUBDIR('common', COMMON_FILES)
|
|
||||||
|
|
||||||
if bld.env.standalone_tdb:
|
|
||||||
- bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
|
|
||||||
+ bld.env.PKGCONFIGDIR = '%%PKGCONFIGDIR%%'
|
|
||||||
private_library = False
|
|
||||||
else:
|
|
||||||
private_library = True
|
|
||||||
@ -1,129 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.\" Title: tdbbackup
|
|
||||||
.\" Author: [see the "AUTHOR" section]
|
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
|
|
||||||
.\" Date: 2015-04-25
|
|
||||||
.\" Manual: System Administration tools
|
|
||||||
.\" Source: Samba 3.6
|
|
||||||
.\" Language: English
|
|
||||||
.\"
|
|
||||||
.TH "TDBBACKUP" "8" "2015\-04\-25" "Samba 3\&.6" "System Administration tools"
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * Define some portability stuff
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.\" http://bugs.debian.org/507673
|
|
||||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.ie \n(.g .ds Aq \(aq
|
|
||||||
.el .ds Aq '
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * set default formatting
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" disable hyphenation
|
|
||||||
.nh
|
|
||||||
.\" disable justification (adjust text to left margin only)
|
|
||||||
.ad l
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * MAIN CONTENT STARTS HERE *
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.SH "NAME"
|
|
||||||
tdbbackup \- tool for backing up and for validating the integrity of samba \&.tdb files
|
|
||||||
.SH "SYNOPSIS"
|
|
||||||
.HP \w'\fBtdbbackup\fR\ 'u
|
|
||||||
\fBtdbbackup\fR [\-s\ suffix] [\-v] [\-h] [\-l]
|
|
||||||
.SH "DESCRIPTION"
|
|
||||||
.PP
|
|
||||||
This tool is part of the
|
|
||||||
\fBsamba\fR(1)
|
|
||||||
suite\&.
|
|
||||||
.PP
|
|
||||||
\fBtdbbackup\fR
|
|
||||||
is a tool that may be used to backup samba \&.tdb files\&. This tool may also be used to verify the integrity of the \&.tdb files prior to samba startup or during normal operation\&. If it finds file damage and it finds a prior backup the backup file will be restored\&.
|
|
||||||
.SH "OPTIONS"
|
|
||||||
.PP
|
|
||||||
\-h
|
|
||||||
.RS 4
|
|
||||||
Get help information\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-s suffix
|
|
||||||
.RS 4
|
|
||||||
The
|
|
||||||
\fB\-s\fR
|
|
||||||
option allows the administrator to specify a file backup extension\&. This way it is possible to keep a history of tdb backup files by using a new suffix for each backup\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-v
|
|
||||||
.RS 4
|
|
||||||
The
|
|
||||||
\fB\-v\fR
|
|
||||||
will check the database for damages (corrupt data) which if detected causes the backup to be restored\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-l
|
|
||||||
.RS 4
|
|
||||||
This options disables any locking, by passing TDB_NOLOCK to tdb_open_ex()\&. Only use this for database files which are not used by any other process! And also only if it is otherwise not possible to open the database, e\&.g\&. databases which were created with mutex locking\&.
|
|
||||||
.RE
|
|
||||||
.SH "COMMANDS"
|
|
||||||
.PP
|
|
||||||
\fIGENERAL INFORMATION\fR
|
|
||||||
.PP
|
|
||||||
The
|
|
||||||
\fBtdbbackup\fR
|
|
||||||
utility can safely be run at any time\&. It was designed so that it can be used at any time to validate the integrity of tdb files, even during Samba operation\&. Typical usage for the command will be:
|
|
||||||
.PP
|
|
||||||
tdbbackup [\-s suffix] *\&.tdb
|
|
||||||
.PP
|
|
||||||
Before restarting samba the following command may be run to validate \&.tdb files:
|
|
||||||
.PP
|
|
||||||
tdbbackup \-v [\-s suffix] *\&.tdb
|
|
||||||
.PP
|
|
||||||
Samba \&.tdb files are stored in various locations, be sure to run backup all \&.tdb file on the system\&. Important files includes:
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
|
|
||||||
\fBsecrets\&.tdb\fR
|
|
||||||
\- usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba\&.
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
|
|
||||||
\fBpassdb\&.tdb\fR
|
|
||||||
\- usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba\&.
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
|
|
||||||
\fB*\&.tdb\fR
|
|
||||||
located in the /usr/local/samba/var directory or on some systems in the /var/cache or /var/lib/samba directories\&.
|
|
||||||
.RE
|
|
||||||
.SH "VERSION"
|
|
||||||
.PP
|
|
||||||
This man page is correct for version 3 of the Samba suite\&.
|
|
||||||
.SH "AUTHOR"
|
|
||||||
.PP
|
|
||||||
The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
|
|
||||||
.PP
|
|
||||||
The tdbbackup man page was written by John H Terpstra\&.
|
|
||||||
@ -1,72 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.\" Title: tdbdump
|
|
||||||
.\" Author: [see the "AUTHOR" section]
|
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
|
|
||||||
.\" Date: 2015-04-25
|
|
||||||
.\" Manual: System Administration tools
|
|
||||||
.\" Source: Samba 3.6
|
|
||||||
.\" Language: English
|
|
||||||
.\"
|
|
||||||
.TH "TDBDUMP" "8" "2015\-04\-25" "Samba 3\&.6" "System Administration tools"
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * Define some portability stuff
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.\" http://bugs.debian.org/507673
|
|
||||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.ie \n(.g .ds Aq \(aq
|
|
||||||
.el .ds Aq '
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * set default formatting
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" disable hyphenation
|
|
||||||
.nh
|
|
||||||
.\" disable justification (adjust text to left margin only)
|
|
||||||
.ad l
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * MAIN CONTENT STARTS HERE *
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.SH "NAME"
|
|
||||||
tdbdump \- tool for printing the contents of a TDB file
|
|
||||||
.SH "SYNOPSIS"
|
|
||||||
.HP \w'\fBtdbdump\fR\ 'u
|
|
||||||
\fBtdbdump\fR [\-k\ \fIkeyname\fR] [\-e] [\-h] {filename}
|
|
||||||
.SH "DESCRIPTION"
|
|
||||||
.PP
|
|
||||||
This tool is part of the
|
|
||||||
\fBsamba\fR(1)
|
|
||||||
suite\&.
|
|
||||||
.PP
|
|
||||||
\fBtdbdump\fR
|
|
||||||
is a very simple utility that \*(Aqdumps\*(Aq the contents of a TDB (Trivial DataBase) file to standard output in a human\-readable format\&.
|
|
||||||
.PP
|
|
||||||
This tool can be used when debugging problems with TDB files\&. It is intended for those who are somewhat familiar with Samba internals\&.
|
|
||||||
.SH "OPTIONS"
|
|
||||||
.PP
|
|
||||||
\-h
|
|
||||||
.RS 4
|
|
||||||
Get help information\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-k \fIkeyname\fR
|
|
||||||
.RS 4
|
|
||||||
The
|
|
||||||
\fB\-k\fR
|
|
||||||
option restricts dumping to a single key, if found\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\-e
|
|
||||||
.RS 4
|
|
||||||
The
|
|
||||||
\fB\-e\fR
|
|
||||||
tries to dump out from a corrupt database\&. Naturally, such a dump is unreliable, at best\&.
|
|
||||||
.RE
|
|
||||||
.SH "VERSION"
|
|
||||||
.PP
|
|
||||||
This man page is correct for version 3 of the Samba suite\&.
|
|
||||||
.SH "AUTHOR"
|
|
||||||
.PP
|
|
||||||
The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
|
|
||||||
.PP
|
|
||||||
The tdbdump man page was written by Jelmer Vernooij\&.
|
|
||||||
@ -1,54 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.\" Title: tdbrestore
|
|
||||||
.\" Author: [see the "AUTHOR" section]
|
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
|
|
||||||
.\" Date: 2015-04-25
|
|
||||||
.\" Manual: System Administration tools
|
|
||||||
.\" Source: Samba 3.6
|
|
||||||
.\" Language: English
|
|
||||||
.\"
|
|
||||||
.TH "TDBRESTORE" "8" "2015\-04\-25" "Samba 3\&.6" "System Administration tools"
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * Define some portability stuff
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.\" http://bugs.debian.org/507673
|
|
||||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.ie \n(.g .ds Aq \(aq
|
|
||||||
.el .ds Aq '
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * set default formatting
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" disable hyphenation
|
|
||||||
.nh
|
|
||||||
.\" disable justification (adjust text to left margin only)
|
|
||||||
.ad l
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * MAIN CONTENT STARTS HERE *
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.SH "NAME"
|
|
||||||
tdbrestore \- tool for creating a TDB file out of a tdbdump output
|
|
||||||
.SH "SYNOPSIS"
|
|
||||||
.HP \w'\fBtdbrestore\fR\ 'u
|
|
||||||
\fBtdbrestore\fR {tdbfilename}
|
|
||||||
.SH "DESCRIPTION"
|
|
||||||
.PP
|
|
||||||
This tool is part of the
|
|
||||||
\fBsamba\fR(1)
|
|
||||||
suite\&.
|
|
||||||
.PP
|
|
||||||
\fBtdbrestore\fR
|
|
||||||
is a very simple utility that \*(Aqrestores\*(Aq the contents of dump file into TDB (Trivial DataBase) file\&. The dump file is obtained from the tdbdump command\&.
|
|
||||||
.PP
|
|
||||||
This tool wait on the standard input for the content of the dump and will write the tdb in the tdbfilename parameter\&.
|
|
||||||
.PP
|
|
||||||
This tool can be used for unpacking the content of tdb as backup mean\&.
|
|
||||||
.SH "VERSION"
|
|
||||||
.PP
|
|
||||||
This man page is correct for version 3 of the Samba suite\&.
|
|
||||||
.SH "AUTHOR"
|
|
||||||
.PP
|
|
||||||
The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&. This tool was initially written by Volker Lendecke based on an idea by Simon McVittie\&.
|
|
||||||
.PP
|
|
||||||
The tdbrestore man page was written by Matthieu Patou\&.
|
|
||||||
@ -1,170 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.\" Title: tdbtool
|
|
||||||
.\" Author: [see the "AUTHOR" section]
|
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
|
|
||||||
.\" Date: 2015-04-25
|
|
||||||
.\" Manual: System Administration tools
|
|
||||||
.\" Source: Samba 4.0
|
|
||||||
.\" Language: English
|
|
||||||
.\"
|
|
||||||
.TH "TDBTOOL" "8" "2015\-04\-25" "Samba 4\&.0" "System Administration tools"
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * Define some portability stuff
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.\" http://bugs.debian.org/507673
|
|
||||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.ie \n(.g .ds Aq \(aq
|
|
||||||
.el .ds Aq '
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * set default formatting
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" disable hyphenation
|
|
||||||
.nh
|
|
||||||
.\" disable justification (adjust text to left margin only)
|
|
||||||
.ad l
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * MAIN CONTENT STARTS HERE *
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.SH "NAME"
|
|
||||||
tdbtool \- manipulate the contents TDB files
|
|
||||||
.SH "SYNOPSIS"
|
|
||||||
.HP \w'\fBtdbtool\fR\ 'u
|
|
||||||
\fBtdbtool\fR
|
|
||||||
.HP \w'\fBtdbtool\fR\ 'u
|
|
||||||
\fBtdbtool\fR [\-l] \fITDBFILE\fR [\fICOMMANDS\fR...]
|
|
||||||
.SH "DESCRIPTION"
|
|
||||||
.PP
|
|
||||||
This tool is part of the
|
|
||||||
\fBsamba\fR(1)
|
|
||||||
suite\&.
|
|
||||||
.PP
|
|
||||||
\fBtdbtool\fR
|
|
||||||
a tool for displaying and altering the contents of Samba TDB (Trivial DataBase) files\&. Each of the commands listed below can be entered interactively or provided on the command line\&.
|
|
||||||
.SH "OPTIONS"
|
|
||||||
.PP
|
|
||||||
\-l
|
|
||||||
.RS 4
|
|
||||||
This options disables any locking, by passing TDB_NOLOCK to tdb_open_ex()\&. Only use this for database files which are not used by any other process! And also only if it is otherwise not possible to open the database, e\&.g\&. databases which were created with mutex locking\&.
|
|
||||||
.RE
|
|
||||||
.SH "COMMANDS"
|
|
||||||
.PP
|
|
||||||
\fBcreate\fR \fITDBFILE\fR
|
|
||||||
.RS 4
|
|
||||||
Create a new database named
|
|
||||||
\fITDBFILE\fR\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBopen\fR \fITDBFILE\fR
|
|
||||||
.RS 4
|
|
||||||
Open an existing database named
|
|
||||||
\fITDBFILE\fR\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBerase\fR
|
|
||||||
.RS 4
|
|
||||||
Erase the current database\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBdump\fR
|
|
||||||
.RS 4
|
|
||||||
Dump the current database as strings\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBcdump\fR
|
|
||||||
.RS 4
|
|
||||||
Dump the current database as connection records\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBkeys\fR
|
|
||||||
.RS 4
|
|
||||||
Dump the current database keys as strings\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBhexkeys\fR
|
|
||||||
.RS 4
|
|
||||||
Dump the current database keys as hex values\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBinfo\fR
|
|
||||||
.RS 4
|
|
||||||
Print summary information about the current database\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBinsert\fR \fIKEY\fR \fIDATA\fR
|
|
||||||
.RS 4
|
|
||||||
Insert a record into the current database\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBmove\fR \fIKEY\fR \fITDBFILE\fR
|
|
||||||
.RS 4
|
|
||||||
Move a record from the current database into
|
|
||||||
\fITDBFILE\fR\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBstore\fR \fIKEY\fR \fIDATA\fR
|
|
||||||
.RS 4
|
|
||||||
Store (replace) a record in the current database\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBshow\fR \fIKEY\fR
|
|
||||||
.RS 4
|
|
||||||
Show a record by key\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBdelete\fR \fIKEY\fR
|
|
||||||
.RS 4
|
|
||||||
Delete a record by key\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBlist\fR
|
|
||||||
.RS 4
|
|
||||||
Print the current database hash table and free list\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBfree\fR
|
|
||||||
.RS 4
|
|
||||||
Print the current database and free list\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fB!\fR \fICOMMAND\fR
|
|
||||||
.RS 4
|
|
||||||
Execute the given system command\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBfirst\fR
|
|
||||||
.RS 4
|
|
||||||
Print the first record in the current database\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBnext\fR
|
|
||||||
.RS 4
|
|
||||||
Print the next record in the current database\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBcheck\fR
|
|
||||||
.RS 4
|
|
||||||
Check the integrity of the current database\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBrepack\fR
|
|
||||||
.RS 4
|
|
||||||
Repack a database using a temporary file to remove fragmentation\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
\fBquit\fR
|
|
||||||
.RS 4
|
|
||||||
Exit
|
|
||||||
\fBtdbtool\fR\&.
|
|
||||||
.RE
|
|
||||||
.SH "CAVEATS"
|
|
||||||
.PP
|
|
||||||
The contents of the Samba TDB files are private to the implementation and should not be altered with
|
|
||||||
\fBtdbtool\fR\&.
|
|
||||||
.SH "VERSION"
|
|
||||||
.PP
|
|
||||||
This man page is correct for version 3\&.6 of the Samba suite\&.
|
|
||||||
.SH "AUTHOR"
|
|
||||||
.PP
|
|
||||||
The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
|
|
||||||
@ -1,4 +0,0 @@
|
|||||||
TDB is a Trivial Database. In concept, it is very much like GDBM, and
|
|
||||||
BSD's DB except that it allows multiple simultaneous writers and uses
|
|
||||||
locking internally to keep writers from trampling on each other. TDB is
|
|
||||||
also extremely small.
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
bin/tdbbackup
|
|
||||||
bin/tdbdump
|
|
||||||
bin/tdbrestore
|
|
||||||
bin/tdbtool
|
|
||||||
include/tdb.h
|
|
||||||
lib/libtdb.so
|
|
||||||
lib/libtdb.so.1
|
|
||||||
%%PYTHON%%%%PYTHON_SITELIBDIR%%/_tdb_text.py
|
|
||||||
%%PYTHON%%%%PYTHON_SITELIBDIR%%/tdb%%PYTHON_EXT_SUFFIX%%.so
|
|
||||||
libdata/pkgconfig/tdb.pc
|
|
||||||
share/man/man8/tdbbackup.8.gz
|
|
||||||
share/man/man8/tdbdump.8.gz
|
|
||||||
share/man/man8/tdbrestore.8.gz
|
|
||||||
share/man/man8/tdbtool.8.gz
|
|
||||||
@ -1,143 +0,0 @@
|
|||||||
PORTNAME= etcd
|
|
||||||
PORTVERSION= 3.5.15
|
|
||||||
DISTVERSIONPREFIX= v
|
|
||||||
#PORTREVISION= 25
|
|
||||||
CATEGORIES= devel
|
|
||||||
PKGNAMEPREFIX= coreos-
|
|
||||||
#PKGNAMESUFFIX= 34
|
|
||||||
|
|
||||||
MAINTAINER= kiwi@oav.net
|
|
||||||
COMMENT= Highly-available key value store and service discovery
|
|
||||||
WWW= https://github.com/coreos/etcd
|
|
||||||
|
|
||||||
LICENSE= APACHE20
|
|
||||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
||||||
|
|
||||||
USES= cpe go:1.21,modules
|
|
||||||
USE_GITHUB= yes
|
|
||||||
GH_ACCOUNT= coreos
|
|
||||||
GH_TUPLE= \
|
|
||||||
beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \
|
|
||||||
bgentry:speakeasy:v0.1.0:bgentry_speakeasy/vendor/github.com/bgentry/speakeasy \
|
|
||||||
cenkalti:backoff:v4.2.1:cenkalti_backoff_v4/vendor/github.com/cenkalti/backoff/v4 \
|
|
||||||
cespare:xxhash:v2.2.0:cespare_xxhash_v2/vendor/github.com/cespare/xxhash/v2 \
|
|
||||||
cheggaaa:pb:v1.0.28:cheggaaa_pb/vendor/gopkg.in/cheggaaa/pb.v1 \
|
|
||||||
coreos:go-semver:v0.3.0:coreos_go_semver/vendor/github.com/coreos/go-semver \
|
|
||||||
coreos:go-systemd:v22.3.2:coreos_go_systemd_v22/vendor/github.com/coreos/go-systemd/v22 \
|
|
||||||
dustin:go-humanize:v1.0.0:dustin_go_humanize/vendor/github.com/dustin/go-humanize \
|
|
||||||
etcd-io:bbolt:v1.3.10:etcd_io_bbolt/vendor/go.etcd.io/bbolt \
|
|
||||||
etcd-io:etcd:v3.6.0-alpha.0:etcd_io_etcd/go.etcd.io/etcd/api/v3 \
|
|
||||||
etcd-io:etcd:v3.6.0-alpha.0:etcd_io_etcd_11/go.etcd.io/etcd/etcdutl/v3 \
|
|
||||||
etcd-io:etcd:v3.6.0-alpha.0:etcd_io_etcd_12/go.etcd.io/etcd/pkg/v3 \
|
|
||||||
etcd-io:etcd:v3.6.0-alpha.0:etcd_io_etcd_14/go.etcd.io/etcd/raft/v3 \
|
|
||||||
etcd-io:etcd:v3.6.0-alpha.0:etcd_io_etcd_17/go.etcd.io/etcd/server/v3 \
|
|
||||||
etcd-io:etcd:v3.6.0-alpha.0:etcd_io_etcd_2/go.etcd.io/etcd/client/pkg/v3 \
|
|
||||||
etcd-io:etcd:v3.6.0-alpha.0:etcd_io_etcd_6/go.etcd.io/etcd/client/v3 \
|
|
||||||
etcd-io:etcd:v3.6.0-alpha.0:etcd_io_etcd_8/go.etcd.io/etcd/etcdctl/v3 \
|
|
||||||
etcd-io:etcd:v3.5.15:etcd_io_etcd_10 \
|
|
||||||
etcd-io:etcd:v3.5.15:etcd_io_etcd_13 \
|
|
||||||
etcd-io:etcd:v3.5.15:etcd_io_etcd_15 \
|
|
||||||
etcd-io:etcd:v3.5.15:etcd_io_etcd_16 \
|
|
||||||
etcd-io:etcd:v3.5.15:etcd_io_etcd_19 \
|
|
||||||
etcd-io:etcd:v3.5.15:etcd_io_etcd_1 \
|
|
||||||
etcd-io:etcd:v3.5.15:etcd_io_etcd_3 \
|
|
||||||
etcd-io:etcd:v3.5.15:etcd_io_etcd_7 \
|
|
||||||
etcd-io:etcd:v3.5.15:etcd_io_etcd_9 \
|
|
||||||
etcd-io:etcd:v3.6.0-alpha.0:etcd_io_etcd_4/go.etcd.io/etcd/client/v2 \
|
|
||||||
go-logr:logr:v1.3.0:go_logr_logr/vendor/github.com/go-logr/logr \
|
|
||||||
go-logr:stdr:v1.2.2:go_logr_stdr/vendor/github.com/go-logr/stdr \
|
|
||||||
go-yaml:yaml:v2.4.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
|
|
||||||
gogo:protobuf:v1.3.2:gogo_protobuf/vendor/github.com/gogo/protobuf \
|
|
||||||
golang-jwt:jwt:v4.4.2:golang_jwt_jwt_v4/vendor/github.com/golang-jwt/jwt/v4 \
|
|
||||||
golang:crypto:v0.21.0:golang_crypto/vendor/golang.org/x/crypto \
|
|
||||||
golang:groupcache:41bb18bfe9da:golang_groupcache/vendor/github.com/golang/groupcache \
|
|
||||||
golang:net:v0.23.0:golang_net/vendor/golang.org/x/net \
|
|
||||||
golang:protobuf:v1.5.4:golang_protobuf/vendor/github.com/golang/protobuf \
|
|
||||||
golang:sys:v0.18.0:golang_sys/vendor/golang.org/x/sys \
|
|
||||||
golang:text:v0.14.0:golang_text/vendor/golang.org/x/text \
|
|
||||||
golang:time:f8bda1e9f3ba:golang_time/vendor/golang.org/x/time \
|
|
||||||
google:btree:v1.0.1:google_btree/vendor/github.com/google/btree \
|
|
||||||
google:go-genproto:b8732ec3820d:google_go_genproto/vendor/google.golang.org/genproto \
|
|
||||||
gorilla:websocket:v1.4.2:gorilla_websocket/vendor/github.com/gorilla/websocket \
|
|
||||||
grpc-ecosystem:go-grpc-middleware:v1.3.0:grpc_ecosystem_go_grpc_middleware/vendor/github.com/grpc-ecosystem/go-grpc-middleware \
|
|
||||||
grpc-ecosystem:go-grpc-prometheus:v1.2.0:grpc_ecosystem_go_grpc_prometheus/vendor/github.com/grpc-ecosystem/go-grpc-prometheus \
|
|
||||||
grpc-ecosystem:grpc-gateway:v1.16.0:grpc_ecosystem_grpc_gateway/vendor/github.com/grpc-ecosystem/grpc-gateway \
|
|
||||||
grpc-ecosystem:grpc-gateway:v2.16.0:grpc_ecosystem_grpc_gateway_v2/vendor/github.com/grpc-ecosystem/grpc-gateway/v2 \
|
|
||||||
grpc:grpc-go:v1.59.0:grpc_grpc_go/vendor/google.golang.org/grpc \
|
|
||||||
inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \
|
|
||||||
jonboulle:clockwork:v0.2.2:jonboulle_clockwork/vendor/github.com/jonboulle/clockwork \
|
|
||||||
json-iterator:go:v1.1.11:json_iterator_go/vendor/github.com/json-iterator/go \
|
|
||||||
kubernetes-sigs:yaml:v1.2.0:kubernetes_sigs_yaml/vendor/sigs.k8s.io/yaml \
|
|
||||||
mattn:go-colorable:v0.1.11:mattn_go_colorable/vendor/github.com/mattn/go-colorable \
|
|
||||||
mattn:go-runewidth:v0.0.9:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \
|
|
||||||
matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \
|
|
||||||
modern-go:concurrent:bacd9c7ef1dd:modern_go_concurrent/vendor/github.com/modern-go/concurrent \
|
|
||||||
modern-go:reflect2:v1.0.1:modern_go_reflect2/vendor/github.com/modern-go/reflect2 \
|
|
||||||
natefinch:lumberjack:v2.0.0:natefinch_lumberjack/vendor/gopkg.in/natefinch/lumberjack.v2 \
|
|
||||||
olekukonko:tablewriter:v0.0.5:olekukonko_tablewriter/vendor/github.com/olekukonko/tablewriter \
|
|
||||||
open-telemetry:opentelemetry-go-contrib:instrumentation/google.golang.org/grpc/otelgrpc/v0.46.0:open_telemetry_opentelemetry_go_contrib/vendor/go.opentelemetry.io/contrib \
|
|
||||||
open-telemetry:opentelemetry-go:v1.20.0:open_telemetry_opentelemetry_go/vendor/go.opentelemetry.io/otel \
|
|
||||||
open-telemetry:opentelemetry-proto-go:v1.0.0:open_telemetry_opentelemetry_proto_go/vendor/go.opentelemetry.io/proto/otlp \
|
|
||||||
prometheus:client_golang:v1.11.1:prometheus_client_golang/vendor/github.com/prometheus/client_golang \
|
|
||||||
prometheus:client_model:v0.2.0:prometheus_client_model/vendor/github.com/prometheus/client_model \
|
|
||||||
prometheus:common:v0.26.0:prometheus_common/vendor/github.com/prometheus/common \
|
|
||||||
prometheus:procfs:v0.6.0:prometheus_procfs/vendor/github.com/prometheus/procfs \
|
|
||||||
protocolbuffers:protobuf-go:v1.33.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \
|
|
||||||
sirupsen:logrus:v1.9.3:sirupsen_logrus/vendor/github.com/sirupsen/logrus \
|
|
||||||
soheilhy:cmux:v0.1.5:soheilhy_cmux/vendor/github.com/soheilhy/cmux \
|
|
||||||
spf13:cobra:v1.1.3:spf13_cobra/vendor/github.com/spf13/cobra \
|
|
||||||
spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \
|
|
||||||
tmc:grpc-websocket-proxy:e5319fda7802:tmc_grpc_websocket_proxy/vendor/github.com/tmc/grpc-websocket-proxy \
|
|
||||||
uber-go:atomic:v1.7.0:uber_go_atomic/vendor/go.uber.org/atomic \
|
|
||||||
uber-go:multierr:v1.6.0:uber_go_multierr/vendor/go.uber.org/multierr \
|
|
||||||
uber-go:zap:v1.17.0:uber_go_zap/vendor/go.uber.org/zap \
|
|
||||||
xiang90:probing:43a291ad63a2:xiang90_probing/vendor/github.com/xiang90/probing
|
|
||||||
|
|
||||||
#etcd-io:etcd:v3.0.0-00010101000000-000000000000:etcd_io_etcd_18/go.etcd.io/etcd/tests/v3 \
|
|
||||||
#etcd-io:etcd:v2.306.0-alpha.0:etcd_io_etcd_4/go.etcd.io/etcd/client/v2 \
|
|
||||||
#etcd-io:etcd:v2.305.15:etcd_io_etcd_5 \
|
|
||||||
|
|
||||||
GO_PKGNAME= github.com/coreos/etcd
|
|
||||||
GO_TARGET= ./server ./etcdctl ./etcdutl
|
|
||||||
|
|
||||||
CONFLICTS_INSTALL= coreos-etcd[0-9][0-9]
|
|
||||||
|
|
||||||
PLIST_FILES= bin/etcd \
|
|
||||||
bin/etcdctl
|
|
||||||
PORTDOCS= README.md
|
|
||||||
|
|
||||||
OPTIONS_DEFINE= DOCS
|
|
||||||
DOCS_DESC= Install etcd README file
|
|
||||||
|
|
||||||
#pre-patch:
|
|
||||||
# ${RM} ${WRKSRC}/vendor/modules.txt
|
|
||||||
# ${RM} -r ${WRKSRC}/vendor/golang.org/x/sys
|
|
||||||
# ${LN} -s ${WRKDIR}/sys-* ${WRKSRC}/vendor/golang.org/x/sys
|
|
||||||
|
|
||||||
post-extract:
|
|
||||||
${RLN} ${WRKSRC_etcd_io_etcd_1} ${WRKSRC}/api
|
|
||||||
#${RLN} ${WRKSRC_etcd_io_etcd} ${WRKSRC}/api
|
|
||||||
${RLN} ${WRKSRC_etcd_io_etcd_3} ${WRKSRC}/client/pkg
|
|
||||||
#${RLN} ${WRKSRC_etcd_io_etcd_2} ${WRKSRC}/client/pkg
|
|
||||||
#${RLN} ${WRKSRC_etcd_io_etcd_4} ${WRKSRC}/client/v2
|
|
||||||
#${RLN} ${WRKSRC_etcd_io_etcd_5} ${WRKSRC}/client/v2
|
|
||||||
${RLN} ${WRKSRC_etcd_io_etcd_7} ${WRKSRC}/client/v3
|
|
||||||
#${RLN} ${WRKSRC_etcd_io_etcd_6} ${WRKSRC}/client/v3
|
|
||||||
${RLN} ${WRKSRC_etcd_io_etcd_9} ${WRKSRC}/etcdctl
|
|
||||||
#${RLN} ${WRKSRC_etcd_io_etcd_8} ${WRKSRC}/etcdctl
|
|
||||||
#${RLN} ${WRKSRC_etcd_io_etcd_11} ${WRKSRC}/etcdutl
|
|
||||||
${RLN} ${WRKSRC_etcd_io_etcd_10} ${WRKSRC}/etcdutl
|
|
||||||
${RLN} ${WRKSRC_etcd_io_etcd_13} ${WRKSRC}/pkg
|
|
||||||
#${RLN} ${WRKSRC_etcd_io_etcd_12} ${WRKSRC}/pkg
|
|
||||||
${RLN} ${WRKSRC_etcd_io_etcd_15} ${WRKSRC}/raft
|
|
||||||
#${RLN} ${WRKSRC_etcd_io_etcd_14} ${WRKSRC}/raft
|
|
||||||
${RLN} ${WRKSRC_etcd_io_etcd_16} ${WRKSRC}/server
|
|
||||||
#${RLN} ${WRKSRC_etcd_io_etcd_17} ${WRKSRC}/server
|
|
||||||
#${RLN} ${WRKSRC_etcd_io_etcd_18} ${WRKSRC}/tests
|
|
||||||
${RLN} ${WRKSRC_etcd_io_etcd_19} ${WRKSRC}/tests
|
|
||||||
|
|
||||||
do-install-DOCS-on:
|
|
||||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
||||||
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
|
||||||
@ -1,153 +0,0 @@
|
|||||||
TIMESTAMP = 1729604976
|
|
||||||
SHA256 (coreos-etcd-v3.5.15_GH0.tar.gz) = bfc9c90f103acd47b0dca2840d4b69af68cb39f22893bef0f4fb5c5351314b84
|
|
||||||
SIZE (coreos-etcd-v3.5.15_GH0.tar.gz) = 4113649
|
|
||||||
SHA256 (beorn7-perks-v1.0.1_GH0.tar.gz) = 98db84bb0224a26094e6adba91b7ee7a1a7ace28cb648d818f8e779e6a19f825
|
|
||||||
SIZE (beorn7-perks-v1.0.1_GH0.tar.gz) = 10867
|
|
||||||
SHA256 (bgentry-speakeasy-v0.1.0_GH0.tar.gz) = 863f57f96f77c2b4e5488e34e8df47478e9ffa9920779ca4df2cc3adc0d03252
|
|
||||||
SIZE (bgentry-speakeasy-v0.1.0_GH0.tar.gz) = 7481
|
|
||||||
SHA256 (cenkalti-backoff-v4.2.1_GH0.tar.gz) = adb92e0d2ecc3de14f45bea713afb367367bdc89c1af8391b91089ce91ce18f4
|
|
||||||
SIZE (cenkalti-backoff-v4.2.1_GH0.tar.gz) = 10394
|
|
||||||
SHA256 (cespare-xxhash-v2.2.0_GH0.tar.gz) = b8c684b9e5e136510913727e6a845b28f8176e55db827b11f17769fba970fe13
|
|
||||||
SIZE (cespare-xxhash-v2.2.0_GH0.tar.gz) = 12334
|
|
||||||
SHA256 (cheggaaa-pb-v1.0.28_GH0.tar.gz) = f745c5636d3fb59bffab5f9d2a745a94a9608166c20c90936fc66848a5e816e6
|
|
||||||
SIZE (cheggaaa-pb-v1.0.28_GH0.tar.gz) = 11788
|
|
||||||
SHA256 (coreos-go-semver-v0.3.0_GH0.tar.gz) = 1b72134483db366fb43f216727d6bc110086d4450ce0d226960cf4ce823d6eb9
|
|
||||||
SIZE (coreos-go-semver-v0.3.0_GH0.tar.gz) = 10663
|
|
||||||
SHA256 (coreos-go-systemd-v22.3.2_GH0.tar.gz) = dbb1a3930d43f49e11c53f2010ab9609e18236f776a99921850cd05f54779438
|
|
||||||
SIZE (coreos-go-systemd-v22.3.2_GH0.tar.gz) = 72134
|
|
||||||
SHA256 (dustin-go-humanize-v1.0.0_GH0.tar.gz) = e4540bd50ac855143b4f2e509313079c50cf5d8774f09cc10dbca5ae9803d8ba
|
|
||||||
SIZE (dustin-go-humanize-v1.0.0_GH0.tar.gz) = 17260
|
|
||||||
SHA256 (etcd-io-bbolt-v1.3.10_GH0.tar.gz) = 4991a0f2cfb4fd4530c450e3b913cf38fc8566d115c514ecbcef5946a7391400
|
|
||||||
SIZE (etcd-io-bbolt-v1.3.10_GH0.tar.gz) = 125701
|
|
||||||
SHA256 (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = c101da7821e89ab59f47606b083407462e3ff67fa5d37e161574a1c42b688254
|
|
||||||
SIZE (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = 4161362
|
|
||||||
SHA256 (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = c101da7821e89ab59f47606b083407462e3ff67fa5d37e161574a1c42b688254
|
|
||||||
SIZE (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = 4161362
|
|
||||||
SHA256 (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = c101da7821e89ab59f47606b083407462e3ff67fa5d37e161574a1c42b688254
|
|
||||||
SIZE (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = 4161362
|
|
||||||
SHA256 (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = c101da7821e89ab59f47606b083407462e3ff67fa5d37e161574a1c42b688254
|
|
||||||
SIZE (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = 4161362
|
|
||||||
SHA256 (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = c101da7821e89ab59f47606b083407462e3ff67fa5d37e161574a1c42b688254
|
|
||||||
SIZE (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = 4161362
|
|
||||||
SHA256 (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = c101da7821e89ab59f47606b083407462e3ff67fa5d37e161574a1c42b688254
|
|
||||||
SIZE (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = 4161362
|
|
||||||
SHA256 (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = c101da7821e89ab59f47606b083407462e3ff67fa5d37e161574a1c42b688254
|
|
||||||
SIZE (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = 4161362
|
|
||||||
SHA256 (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = c101da7821e89ab59f47606b083407462e3ff67fa5d37e161574a1c42b688254
|
|
||||||
SIZE (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = 4161362
|
|
||||||
SHA256 (etcd-io-etcd-v3.5.15_GH0.tar.gz) = bfc9c90f103acd47b0dca2840d4b69af68cb39f22893bef0f4fb5c5351314b84
|
|
||||||
SIZE (etcd-io-etcd-v3.5.15_GH0.tar.gz) = 4113649
|
|
||||||
SHA256 (etcd-io-etcd-v3.5.15_GH0.tar.gz) = bfc9c90f103acd47b0dca2840d4b69af68cb39f22893bef0f4fb5c5351314b84
|
|
||||||
SIZE (etcd-io-etcd-v3.5.15_GH0.tar.gz) = 4113649
|
|
||||||
SHA256 (etcd-io-etcd-v3.5.15_GH0.tar.gz) = bfc9c90f103acd47b0dca2840d4b69af68cb39f22893bef0f4fb5c5351314b84
|
|
||||||
SIZE (etcd-io-etcd-v3.5.15_GH0.tar.gz) = 4113649
|
|
||||||
SHA256 (etcd-io-etcd-v3.5.15_GH0.tar.gz) = bfc9c90f103acd47b0dca2840d4b69af68cb39f22893bef0f4fb5c5351314b84
|
|
||||||
SIZE (etcd-io-etcd-v3.5.15_GH0.tar.gz) = 4113649
|
|
||||||
SHA256 (etcd-io-etcd-v3.5.15_GH0.tar.gz) = bfc9c90f103acd47b0dca2840d4b69af68cb39f22893bef0f4fb5c5351314b84
|
|
||||||
SIZE (etcd-io-etcd-v3.5.15_GH0.tar.gz) = 4113649
|
|
||||||
SHA256 (etcd-io-etcd-v3.5.15_GH0.tar.gz) = bfc9c90f103acd47b0dca2840d4b69af68cb39f22893bef0f4fb5c5351314b84
|
|
||||||
SIZE (etcd-io-etcd-v3.5.15_GH0.tar.gz) = 4113649
|
|
||||||
SHA256 (etcd-io-etcd-v3.5.15_GH0.tar.gz) = bfc9c90f103acd47b0dca2840d4b69af68cb39f22893bef0f4fb5c5351314b84
|
|
||||||
SIZE (etcd-io-etcd-v3.5.15_GH0.tar.gz) = 4113649
|
|
||||||
SHA256 (etcd-io-etcd-v3.5.15_GH0.tar.gz) = bfc9c90f103acd47b0dca2840d4b69af68cb39f22893bef0f4fb5c5351314b84
|
|
||||||
SIZE (etcd-io-etcd-v3.5.15_GH0.tar.gz) = 4113649
|
|
||||||
SHA256 (etcd-io-etcd-v3.5.15_GH0.tar.gz) = bfc9c90f103acd47b0dca2840d4b69af68cb39f22893bef0f4fb5c5351314b84
|
|
||||||
SIZE (etcd-io-etcd-v3.5.15_GH0.tar.gz) = 4113649
|
|
||||||
SHA256 (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = c101da7821e89ab59f47606b083407462e3ff67fa5d37e161574a1c42b688254
|
|
||||||
SIZE (etcd-io-etcd-v3.6.0-alpha.0_GH0.tar.gz) = 4161362
|
|
||||||
SHA256 (go-logr-logr-v1.3.0_GH0.tar.gz) = a0ceb13b9611e19ebe3cba015e2e6dbbf3125be9cd7f1d975d4d334da688839a
|
|
||||||
SIZE (go-logr-logr-v1.3.0_GH0.tar.gz) = 51225
|
|
||||||
SHA256 (go-logr-stdr-v1.2.2_GH0.tar.gz) = 37d975b280d884ca0d55a800bc6e47314b6e86268e56254f9d15d19ca9404eb8
|
|
||||||
SIZE (go-logr-stdr-v1.2.2_GH0.tar.gz) = 9098
|
|
||||||
SHA256 (go-yaml-yaml-v2.4.0_GH0.tar.gz) = d8e94679e5fff6bd1a35e10241543929a5f3da44f701755babf99b3daf0faac0
|
|
||||||
SIZE (go-yaml-yaml-v2.4.0_GH0.tar.gz) = 73209
|
|
||||||
SHA256 (gogo-protobuf-v1.3.2_GH0.tar.gz) = 2bb4b13d6e56b3911f09b8e9ddd15708477fbff8823c057cc79dd99c9a452b34
|
|
||||||
SIZE (gogo-protobuf-v1.3.2_GH0.tar.gz) = 2038725
|
|
||||||
SHA256 (golang-jwt-jwt-v4.4.2_GH0.tar.gz) = 5c48e918854c3fc1c9bbb9ebf747addb960250f977aa8523344f60f4c423c7c1
|
|
||||||
SIZE (golang-jwt-jwt-v4.4.2_GH0.tar.gz) = 51392
|
|
||||||
SHA256 (golang-crypto-v0.21.0_GH0.tar.gz) = 4c65ea22c4b0bc7380b4213a294698c517fe3378e0edd30c4d2b6cf7f12fc8bd
|
|
||||||
SIZE (golang-crypto-v0.21.0_GH0.tar.gz) = 1810887
|
|
||||||
SHA256 (golang-groupcache-41bb18bfe9da_GH0.tar.gz) = 1e89795970d6593affdafe1d09dcf947681ca1ea82528e8e4fb9974a77f2e394
|
|
||||||
SIZE (golang-groupcache-41bb18bfe9da_GH0.tar.gz) = 26101
|
|
||||||
SHA256 (golang-net-v0.23.0_GH0.tar.gz) = 5d1aeb0051277e79fa692947079dc50ddc284dc0403b22c85692b97060ab4953
|
|
||||||
SIZE (golang-net-v0.23.0_GH0.tar.gz) = 1508997
|
|
||||||
SHA256 (golang-protobuf-v1.5.4_GH0.tar.gz) = d75e6960ecfabaaa83a7261b1b630d24e9c63aca79615fb15bf33e11b62fd019
|
|
||||||
SIZE (golang-protobuf-v1.5.4_GH0.tar.gz) = 172992
|
|
||||||
SHA256 (golang-sys-v0.18.0_GH0.tar.gz) = cee1944ab655ddf7eab6301e15cb6d01fdd6cd0a0f0b5896050ee60b124e084c
|
|
||||||
SIZE (golang-sys-v0.18.0_GH0.tar.gz) = 1448211
|
|
||||||
SHA256 (golang-text-v0.14.0_GH0.tar.gz) = c80295e75bda599d17ccf74038139b0957b9915fae4e60d8b46f89454ef171a0
|
|
||||||
SIZE (golang-text-v0.14.0_GH0.tar.gz) = 8974094
|
|
||||||
SHA256 (golang-time-f8bda1e9f3ba_GH0.tar.gz) = e068a34e54894c9c189ba2c2e5b7ea9116ed661f6a7c0d0e744d8e0066017ebb
|
|
||||||
SIZE (golang-time-f8bda1e9f3ba_GH0.tar.gz) = 9656
|
|
||||||
SHA256 (google-btree-v1.0.1_GH0.tar.gz) = 240723cff7c3c28e8444d45e500e65b2c25df519273260f248786e1a7367a654
|
|
||||||
SIZE (google-btree-v1.0.1_GH0.tar.gz) = 15381
|
|
||||||
SHA256 (google-go-genproto-b8732ec3820d_GH0.tar.gz) = b3d7e0e6a90e43230013b4ac375c7d5b5eaa037ef20fbab28567f96da4f765b2
|
|
||||||
SIZE (google-go-genproto-b8732ec3820d_GH0.tar.gz) = 5916673
|
|
||||||
SHA256 (gorilla-websocket-v1.4.2_GH0.tar.gz) = 91937a36bc9e0da3c895c73d4cb74b2cdb1aff54ab21b0d0724000e7b5b85b84
|
|
||||||
SIZE (gorilla-websocket-v1.4.2_GH0.tar.gz) = 54101
|
|
||||||
SHA256 (grpc-ecosystem-go-grpc-middleware-v1.3.0_GH0.tar.gz) = c9b908202c05a7f821b03ee49cd678e7e71469519054629770e0565d78275cbc
|
|
||||||
SIZE (grpc-ecosystem-go-grpc-middleware-v1.3.0_GH0.tar.gz) = 103780
|
|
||||||
SHA256 (grpc-ecosystem-go-grpc-prometheus-v1.2.0_GH0.tar.gz) = eba66530952a126ab869205bdb909af607bfd9eb09f00207b62eb29140258aa9
|
|
||||||
SIZE (grpc-ecosystem-go-grpc-prometheus-v1.2.0_GH0.tar.gz) = 24760
|
|
||||||
SHA256 (grpc-ecosystem-grpc-gateway-v1.16.0_GH0.tar.gz) = 20ba8f2aeb4a580109357fffaa42f8400aba1155b95c8845e412287907e64379
|
|
||||||
SIZE (grpc-ecosystem-grpc-gateway-v1.16.0_GH0.tar.gz) = 521578
|
|
||||||
SHA256 (grpc-ecosystem-grpc-gateway-v2.16.0_GH0.tar.gz) = f49af0b9a5b260c5a783c30010ba3cca4730abba9246618cbee19070f7a843e7
|
|
||||||
SIZE (grpc-ecosystem-grpc-gateway-v2.16.0_GH0.tar.gz) = 821213
|
|
||||||
SHA256 (grpc-grpc-go-v1.59.0_GH0.tar.gz) = 0f951688030fdc9a82accb440222ff068440e59bdc44a82d86150cc4cddf1aed
|
|
||||||
SIZE (grpc-grpc-go-v1.59.0_GH0.tar.gz) = 2010414
|
|
||||||
SHA256 (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 5edc7731c819c305623568e317aa253d342be3447def97f1fa9e10eb5ad819f6
|
|
||||||
SIZE (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 2290
|
|
||||||
SHA256 (jonboulle-clockwork-v0.2.2_GH0.tar.gz) = 79ac7c0e53dfa48aac0622745f133b2438542f1c11d2c09ec1c98affbd62e1f0
|
|
||||||
SIZE (jonboulle-clockwork-v0.2.2_GH0.tar.gz) = 9588
|
|
||||||
SHA256 (json-iterator-go-v1.1.11_GH0.tar.gz) = 19d0d56ac18a052867360b10201bad614c7b31a3edf2041a331c28860920b932
|
|
||||||
SIZE (json-iterator-go-v1.1.11_GH0.tar.gz) = 84401
|
|
||||||
SHA256 (kubernetes-sigs-yaml-v1.2.0_GH0.tar.gz) = 80612b8cc63863556906f04df7eca89179bf81e5b3d1133c082bd7e5e35d5514
|
|
||||||
SIZE (kubernetes-sigs-yaml-v1.2.0_GH0.tar.gz) = 92574
|
|
||||||
SHA256 (mattn-go-colorable-v0.1.11_GH0.tar.gz) = b88eae3c846d3c9bee375bfb72b535b726755a06d8e972c937820aba45d2f5e0
|
|
||||||
SIZE (mattn-go-colorable-v0.1.11_GH0.tar.gz) = 9800
|
|
||||||
SHA256 (mattn-go-runewidth-v0.0.9_GH0.tar.gz) = 4f20a337ad06e071f29535afe9c5207d3e8840c8c86672bbc5f9837c6229c835
|
|
||||||
SIZE (mattn-go-runewidth-v0.0.9_GH0.tar.gz) = 16714
|
|
||||||
SHA256 (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 2def0ee6f6b12b1efc0e3007d89f598608a072610e805c3655ea9d13c3ead49b
|
|
||||||
SIZE (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 37184
|
|
||||||
SHA256 (modern-go-concurrent-bacd9c7ef1dd_GH0.tar.gz) = d673e902118a6ece63198dc7e0961e904d0410f142726df0936ec1a52035a60f
|
|
||||||
SIZE (modern-go-concurrent-bacd9c7ef1dd_GH0.tar.gz) = 7526
|
|
||||||
SHA256 (modern-go-reflect2-v1.0.1_GH0.tar.gz) = d24e856d9aa8fd51b9e6c2cdd712a44c8d18cb8b72802f1bd16e0470322363fd
|
|
||||||
SIZE (modern-go-reflect2-v1.0.1_GH0.tar.gz) = 14394
|
|
||||||
SHA256 (natefinch-lumberjack-v2.0.0_GH0.tar.gz) = 5817941b45096eb70b8114d7a4bf392ea47c4fe8030ff383ca54c67dfa0617bd
|
|
||||||
SIZE (natefinch-lumberjack-v2.0.0_GH0.tar.gz) = 12631
|
|
||||||
SHA256 (olekukonko-tablewriter-v0.0.5_GH0.tar.gz) = 14a1294a8267facc9bc99a230b8871517e6db284ccc7e39030313befa124677f
|
|
||||||
SIZE (olekukonko-tablewriter-v0.0.5_GH0.tar.gz) = 19568
|
|
||||||
SHA256 (open-telemetry-opentelemetry-go-contrib-instrumentation-google.golang.org-grpc-otelgrpc-v0.46.0_GH0.tar.gz) = 931da4874869b2790eb317270a5077a2810cf06298b38c3a6be0baec2b12fe2b
|
|
||||||
SIZE (open-telemetry-opentelemetry-go-contrib-instrumentation-google.golang.org-grpc-otelgrpc-v0.46.0_GH0.tar.gz) = 598954
|
|
||||||
SHA256 (open-telemetry-opentelemetry-go-v1.20.0_GH0.tar.gz) = c739ba9a4eb74db325acdec5eca5d2c18f789f63e10f1658d8c5e0061700d18a
|
|
||||||
SIZE (open-telemetry-opentelemetry-go-v1.20.0_GH0.tar.gz) = 1273769
|
|
||||||
SHA256 (open-telemetry-opentelemetry-proto-go-v1.0.0_GH0.tar.gz) = 543b133a09579ad227b2db21460f71baeeb46e4209c2ac5e5621f4ffe7fb192b
|
|
||||||
SIZE (open-telemetry-opentelemetry-proto-go-v1.0.0_GH0.tar.gz) = 177183
|
|
||||||
SHA256 (prometheus-client_golang-v1.11.1_GH0.tar.gz) = edf216320f3e12f5d60e3df52948e73a95b6b3759b45f1970d750016583d052a
|
|
||||||
SIZE (prometheus-client_golang-v1.11.1_GH0.tar.gz) = 170256
|
|
||||||
SHA256 (prometheus-client_model-v0.2.0_GH0.tar.gz) = 4ab1be9cdfa702d7f49beeb09a256bcc6a2aad55e8a0a37e7732a46934264e12
|
|
||||||
SIZE (prometheus-client_model-v0.2.0_GH0.tar.gz) = 10986
|
|
||||||
SHA256 (prometheus-common-v0.26.0_GH0.tar.gz) = 35cfd6f896655c848042802652394cc9da57ef01437f0d78bffb85a467f62a1b
|
|
||||||
SIZE (prometheus-common-v0.26.0_GH0.tar.gz) = 116907
|
|
||||||
SHA256 (prometheus-procfs-v0.6.0_GH0.tar.gz) = 6ad7a23cf4db9fa5dbf2c5d8fbd0fbf5ffe48e3ddb7bf15f9359813d764ce73c
|
|
||||||
SIZE (prometheus-procfs-v0.6.0_GH0.tar.gz) = 169898
|
|
||||||
SHA256 (protocolbuffers-protobuf-go-v1.33.0_GH0.tar.gz) = 21661d7634e3f783b015b93ceafc0261f2f02a270799bac871602c3a2172cfbe
|
|
||||||
SIZE (protocolbuffers-protobuf-go-v1.33.0_GH0.tar.gz) = 1482410
|
|
||||||
SHA256 (sirupsen-logrus-v1.9.3_GH0.tar.gz) = cfa48a647a28c1f12fb6a9b672bc4d88b6407ff05aedcf23ce939d342646acce
|
|
||||||
SIZE (sirupsen-logrus-v1.9.3_GH0.tar.gz) = 50320
|
|
||||||
SHA256 (soheilhy-cmux-v0.1.5_GH0.tar.gz) = 199232ece74332f408a38e4d38e7ca942b3e66ae58074ca95d3f069693e0dca1
|
|
||||||
SIZE (soheilhy-cmux-v0.1.5_GH0.tar.gz) = 22250
|
|
||||||
SHA256 (spf13-cobra-v1.1.3_GH0.tar.gz) = e5f93c61e1236e61c7fc45882d2a03b81f46ebebdf70628ebb64b0b5fe34f6fa
|
|
||||||
SIZE (spf13-cobra-v1.1.3_GH0.tar.gz) = 146580
|
|
||||||
SHA256 (spf13-pflag-v1.0.5_GH0.tar.gz) = 9a2cae1f8e8ab0d2cc8ebe468e871af28d9ac0962cf0520999e3ba85f0c7b808
|
|
||||||
SIZE (spf13-pflag-v1.0.5_GH0.tar.gz) = 50796
|
|
||||||
SHA256 (tmc-grpc-websocket-proxy-e5319fda7802_GH0.tar.gz) = ab27ebe35674bcc777d63bb1d64874310832d857a3eb573192b082f73afde494
|
|
||||||
SIZE (tmc-grpc-websocket-proxy-e5319fda7802_GH0.tar.gz) = 10031
|
|
||||||
SHA256 (uber-go-atomic-v1.7.0_GH0.tar.gz) = 4d655e90a23d023b36607e2ce94c3b7bf650d41c81c0faff32432581d9099ad1
|
|
||||||
SIZE (uber-go-atomic-v1.7.0_GH0.tar.gz) = 18566
|
|
||||||
SHA256 (uber-go-multierr-v1.6.0_GH0.tar.gz) = f8a139a06fd70bbda0f089274bd723a00c33c5b269a696de4d6a8ab455a22717
|
|
||||||
SIZE (uber-go-multierr-v1.6.0_GH0.tar.gz) = 12369
|
|
||||||
SHA256 (uber-go-zap-v1.17.0_GH0.tar.gz) = 9608554d14e846718c5ebe44ab172ce6b748356679c17e144226af94ff232d9a
|
|
||||||
SIZE (uber-go-zap-v1.17.0_GH0.tar.gz) = 142719
|
|
||||||
SHA256 (xiang90-probing-43a291ad63a2_GH0.tar.gz) = 576dd87a3b8729fd6f2422664897e285d43254138831aaedfac797813964d255
|
|
||||||
SIZE (xiang90-probing-43a291ad63a2_GH0.tar.gz) = 3468
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
A highly-available key value store for shared
|
|
||||||
configuration and service discovery. etcd is
|
|
||||||
inspired by zookeeper and doozer, with a focus on:
|
|
||||||
|
|
||||||
* Simple: curl'able user facing API (HTTP+JSON)
|
|
||||||
* Secure: optional SSL client cert authentication
|
|
||||||
* Fast: benchmarked 1000s of writes/s per instance
|
|
||||||
* Reliable: Properly distributed using Raft
|
|
||||||
|
|
||||||
Etcd is written in Go and uses the raft consensus
|
|
||||||
algorithm to manage a highly-available replicated log.
|
|
||||||
29
devel/gmake3/Makefile
Normal file
29
devel/gmake3/Makefile
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
PORTNAME= make
|
||||||
|
DISTVERSION= 3.81
|
||||||
|
CATEGORIES= devel
|
||||||
|
MASTER_SITES= GNU
|
||||||
|
PKGNAMEPREFIX= g
|
||||||
|
PKGNAMESUFFIX= 3
|
||||||
|
|
||||||
|
# note: before committing to this port, contact portmgr to arrange for an
|
||||||
|
# experimental ports run. Untested commits may be backed out at portmgr's
|
||||||
|
# discretion.
|
||||||
|
MAINTAINER= allanjude@FreeBSD.org
|
||||||
|
COMMENT= Last GPLv2 version of GNU 'make' utility
|
||||||
|
WWW= https://www.gnu.org/software/make/
|
||||||
|
|
||||||
|
LICENSE= GPLv2
|
||||||
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||||
|
|
||||||
|
USES= cpe tar:bz2
|
||||||
|
CPE_VENDOR= gnu
|
||||||
|
|
||||||
|
GNU_CONFIGURE= yes
|
||||||
|
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
|
||||||
|
CONFIGURE_ARGS= --program-prefix=g \
|
||||||
|
--program-suffix=3 \
|
||||||
|
--disable-nls \
|
||||||
|
--disable-info \
|
||||||
|
--without-guile
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
||||||
3
devel/gmake3/distinfo
Normal file
3
devel/gmake3/distinfo
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
TIMESTAMP = 1747413857
|
||||||
|
SHA256 (make-3.81.tar.bz2) = f3e69023771e23908f5d5592954d8271d3d6af09693cecfd29cee6fde8550dc8
|
||||||
|
SIZE (make-3.81.tar.bz2) = 1151445
|
||||||
4
devel/gmake3/pkg-descr
Normal file
4
devel/gmake3/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
This is the last GPLv2 licensed version of GNU make.
|
||||||
|
GNU make is a tool that controls the generation of executables and other
|
||||||
|
non-source files from source files. Its purpose is the same as that
|
||||||
|
of the utility make(1).
|
||||||
2
devel/gmake3/pkg-plist
Normal file
2
devel/gmake3/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
bin/gmake3
|
||||||
|
share/man/man1/gmake3.1.gz
|
||||||
38
devel/kati/Makefile
Normal file
38
devel/kati/Makefile
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
PORTNAME= kati
|
||||||
|
MASTER_SITES= http://yhm1.klara.systems/kati/
|
||||||
|
PORTVERSION= 0.1
|
||||||
|
CATEGORIES= devel
|
||||||
|
|
||||||
|
MAINTAINER= allanjude@FreeBSD.org
|
||||||
|
COMMENT= Apache licensed replacement for GNU make
|
||||||
|
WWW= https://github.com/google/kati
|
||||||
|
|
||||||
|
LICENSE= APACHE20
|
||||||
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
|
|
||||||
|
#Kati is pretending to be gmake, so we can't USES gmake here
|
||||||
|
##USES= gmake
|
||||||
|
|
||||||
|
BUILD_DEPENDS+= gmake>=4.4.1:devel/gmake
|
||||||
|
CONFIGURE_ENV+= MAKE=gmake
|
||||||
|
MAKE_CMD= gmake
|
||||||
|
|
||||||
|
CONFLICTS_INSTALL= gmake
|
||||||
|
|
||||||
|
# PROJECT TOKEN:
|
||||||
|
# Name: kati-port-ci
|
||||||
|
# Token: glpat-m9-NUmzPFAWfDFhur99s
|
||||||
|
# Scopes: read_repository
|
||||||
|
#USE_GITLAB= yes
|
||||||
|
#GL_SITE= https://gitlab.klara.systems
|
||||||
|
#GL_SITE= https://xavier.beaudouin\@klarasystems.com:xMwy3nX7PTwUudg@gitlab.klara.systems
|
||||||
|
#GL_ACCOUNT= prettybsd
|
||||||
|
#GL_PROJECT= kati
|
||||||
|
#GL_TAGNAME= 1dc6868c0a4a6d17bf5527e06a5cb23cac5a6043
|
||||||
|
|
||||||
|
NO_CHECKSUM= yes
|
||||||
|
|
||||||
|
do-install:
|
||||||
|
${INSTALL_PROGRAM} ${WRKSRC}/ckati ${STAGEDIR}${PREFIX}/bin/gmake
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
||||||
1
devel/kati/pkg-descr
Normal file
1
devel/kati/pkg-descr
Normal file
@ -0,0 +1 @@
|
|||||||
|
Kati is an apache licensed replacement for GNU make
|
||||||
1
devel/kati/pkg-plist
Normal file
1
devel/kati/pkg-plist
Normal file
@ -0,0 +1 @@
|
|||||||
|
bin/gmake
|
||||||
@ -1,71 +0,0 @@
|
|||||||
PORTNAME= talloc
|
|
||||||
DISTVERSION= 2.4.2
|
|
||||||
CATEGORIES= devel
|
|
||||||
MASTER_SITES= SAMBA
|
|
||||||
|
|
||||||
MAINTAINER= samba@FreeBSD.org
|
|
||||||
COMMENT= Hierarchical pool based memory allocator
|
|
||||||
WWW= https://talloc.samba.org/
|
|
||||||
|
|
||||||
LICENSE= LGPL3
|
|
||||||
|
|
||||||
USES= compiler pkgconfig shebangfix waf
|
|
||||||
USE_LDCONFIG= yes
|
|
||||||
SHEBANG_GLOB= *.py
|
|
||||||
WAF_CMD= buildtools/bin/waf
|
|
||||||
CONFIGURE_LOG= bin/config.log
|
|
||||||
|
|
||||||
PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
|
|
||||||
PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR:S;^${PREFIX}/;;}
|
|
||||||
|
|
||||||
CONFIGURE_ARGS+= --disable-rpath \
|
|
||||||
--disable-rpath-install \
|
|
||||||
--bundled-libraries=NONE \
|
|
||||||
--builtin-libraries=replace \
|
|
||||||
--without-gettext
|
|
||||||
CONFIGURE_ENV= PYTHONHASHSEED=1
|
|
||||||
MAKE_ENV= PYTHONHASHSEED=1
|
|
||||||
|
|
||||||
MANPAGES_DESC= Build and install manpages (requires textproc/docbook-xsl)
|
|
||||||
|
|
||||||
OPTIONS_DEFINE= DEBUG MANPAGES PYTHON
|
|
||||||
OPTIONS_DEFAULT= PYTHON
|
|
||||||
OPTIONS_SUB= yes
|
|
||||||
|
|
||||||
DEBUG_CFLAGS= -g -ggdb3 -O0
|
|
||||||
DEBUG_CONFIGURE_ON= --verbose --enable-debug
|
|
||||||
DEBUG_MAKE_ARGS= --verbose
|
|
||||||
|
|
||||||
PYTHON_USES= gettext-runtime python
|
|
||||||
PYTHON_USES_OFF= python:build,test
|
|
||||||
PYTHON_CONFIGURE_OFF= --disable-python
|
|
||||||
|
|
||||||
MANPAGES_CONFIGURE_ENV_OFF+= XSLTPROC="true"
|
|
||||||
MANPAGES_BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \
|
|
||||||
xsltproc:textproc/libxslt
|
|
||||||
# No fancy color error messages
|
|
||||||
CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}}
|
|
||||||
CFLAGS_clang= -fno-color-diagnostics
|
|
||||||
CONFIGURE_ENV+= NOCOLOR=yes
|
|
||||||
MAKE_ENV+= NOCOLOR=yes
|
|
||||||
# Some symbols in talloc's linker version scripts are not defined, but since the
|
|
||||||
# scripts are generated dynamically, suppress errors with lld >= 17 due to these
|
|
||||||
# undefined symbols.
|
|
||||||
LDFLAGS+= -Wl,--undefined-version
|
|
||||||
|
|
||||||
post-patch:
|
|
||||||
@${REINPLACE_CMD} -e 's|%%PKGCONFIGDIR%%|${PKGCONFIGDIR}|g' \
|
|
||||||
${BUILD_WRKSRC}/wscript
|
|
||||||
|
|
||||||
pre-build-MANPAGES-off:
|
|
||||||
-${MKDIR} ${BUILD_WRKSRC}/bin/default/man
|
|
||||||
${INSTALL_MAN} ${FILESDIR}/talloc.3 ${BUILD_WRKSRC}/bin/default/man
|
|
||||||
|
|
||||||
post-install:
|
|
||||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtalloc.so.2
|
|
||||||
|
|
||||||
post-install-PYTHON-on:
|
|
||||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpytalloc-util*.so
|
|
||||||
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/talloc*.so
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
TIMESTAMP = 1737641773
|
|
||||||
SHA256 (talloc-2.4.2.tar.gz) = 85ecf9e465e20f98f9950a52e9a411e14320bc555fa257d87697b7e7a9b1d8a6
|
|
||||||
SIZE (talloc-2.4.2.tar.gz) = 679750
|
|
||||||
@ -1,35 +0,0 @@
|
|||||||
--- buildtools/wafsamba/samba_autoconf.py.orig 2019-09-03 13:59:55 UTC
|
|
||||||
+++ buildtools/wafsamba/samba_autoconf.py
|
|
||||||
@@ -573,7 +573,7 @@ def library_flags(self, libs):
|
|
||||||
|
|
||||||
|
|
||||||
@conf
|
|
||||||
-def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False):
|
|
||||||
+def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False, msg=None):
|
|
||||||
'''check if a set of libraries exist as system libraries
|
|
||||||
|
|
||||||
returns the sublist of libs that do exist as a syslib or []
|
|
||||||
@@ -593,11 +593,14 @@ int foo()
|
|
||||||
ret.append(lib)
|
|
||||||
continue
|
|
||||||
|
|
||||||
+ if msg is None:
|
|
||||||
+ msg = 'Checking for library %s' % lib
|
|
||||||
+
|
|
||||||
(ccflags, ldflags, cpppath) = library_flags(conf, lib)
|
|
||||||
if shlib:
|
|
||||||
- res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False)
|
|
||||||
+ res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False, msg=msg)
|
|
||||||
else:
|
|
||||||
- res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False)
|
|
||||||
+ res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False, msg=msg)
|
|
||||||
|
|
||||||
if not res:
|
|
||||||
if mandatory:
|
|
||||||
@@ -944,5 +947,5 @@ def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(conf):
|
|
||||||
conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
|
|
||||||
|
|
||||||
if (conf.env.undefined_ignore_ldflags == [] and
|
|
||||||
- conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'])):
|
|
||||||
+ conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'] + conf.env.WERROR_CFLAGS)):
|
|
||||||
conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup']
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- buildtools/wafsamba/samba_install.py.orig 2019-03-21 10:12:32 UTC
|
|
||||||
+++ buildtools/wafsamba/samba_install.py
|
|
||||||
@@ -115,7 +115,7 @@ def install_library(self):
|
|
||||||
inst_name = bld.make_libname(t.target)
|
|
||||||
elif self.vnum:
|
|
||||||
vnum_base = self.vnum.split('.')[0]
|
|
||||||
- install_name = bld.make_libname(target_name, version=self.vnum)
|
|
||||||
+ install_name = bld.make_libname(target_name, version=vnum_base)
|
|
||||||
install_link = bld.make_libname(target_name, version=vnum_base)
|
|
||||||
inst_name = bld.make_libname(t.target)
|
|
||||||
if not self.private_library or not t.env.SONAME_ST:
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
--- buildtools/wafsamba/wscript.orig 2019-03-21 10:12:32 UTC
|
|
||||||
+++ buildtools/wafsamba/wscript
|
|
||||||
@@ -82,10 +82,10 @@ def options(opt):
|
|
||||||
|
|
||||||
opt.add_option('--with-libiconv',
|
|
||||||
help='additional directory to search for libiconv',
|
|
||||||
- action='store', dest='iconv_open', default='/usr/local',
|
|
||||||
+ action='store', dest='iconv_open', default=None,
|
|
||||||
match = ['Checking for library iconv', 'Checking for iconv_open', 'Checking for header iconv.h'])
|
|
||||||
opt.add_option('--without-gettext',
|
|
||||||
- help=("Disable use of gettext"),
|
|
||||||
+ help=("disable use of gettext"),
|
|
||||||
action="store_true", dest='disable_gettext', default=False)
|
|
||||||
|
|
||||||
gr = opt.option_group('developer options')
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- lib/replace/wscript.orig 2019-03-21 10:12:32 UTC
|
|
||||||
+++ lib/replace/wscript
|
|
||||||
@@ -119,7 +119,7 @@ def configure(conf):
|
|
||||||
conf.CHECK_HEADERS('sys/atomic.h stdatomic.h')
|
|
||||||
conf.CHECK_HEADERS('libgen.h')
|
|
||||||
|
|
||||||
- if conf.CHECK_CFLAGS('-Wno-format-truncation'):
|
|
||||||
+ if conf.CHECK_CFLAGS(['-Wno-format-truncation'] + conf.env.WERROR_CFLAGS):
|
|
||||||
conf.define('HAVE_WNO_FORMAT_TRUNCATION', '1')
|
|
||||||
|
|
||||||
if conf.CHECK_CFLAGS('-Wno-unused-function'):
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
--- talloc.c.orig 2019-03-21 10:12:32 UTC
|
|
||||||
+++ talloc.c
|
|
||||||
@@ -396,6 +396,9 @@ void talloc_lib_init(void) __attribute__
|
|
||||||
void talloc_lib_init(void)
|
|
||||||
{
|
|
||||||
uint32_t random_value;
|
|
||||||
+#if defined(HAVE_ARC4RANDOM)
|
|
||||||
+ random_value = arc4random();
|
|
||||||
+#else
|
|
||||||
#if defined(HAVE_GETAUXVAL) && defined(AT_RANDOM)
|
|
||||||
uint8_t *p;
|
|
||||||
/*
|
|
||||||
@@ -429,6 +432,7 @@ void talloc_lib_init(void)
|
|
||||||
*/
|
|
||||||
random_value = ((uintptr_t)talloc_lib_init & 0xFFFFFFFF);
|
|
||||||
}
|
|
||||||
+#endif /* HAVE_ARC4RANDOM */
|
|
||||||
talloc_magic = random_value & ~TALLOC_FLAG_MASK;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
--- wscript.orig 2019-03-21 10:12:32 UTC
|
|
||||||
+++ wscript
|
|
||||||
@@ -45,13 +45,14 @@ def configure(conf):
|
|
||||||
conf.env.TALLOC_COMPAT1 = False
|
|
||||||
if conf.env.standalone_talloc:
|
|
||||||
conf.env.TALLOC_COMPAT1 = Options.options.TALLOC_COMPAT1
|
|
||||||
- conf.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
|
|
||||||
+ conf.env.PKGCONFIGDIR = '%%PKGCONFIGDIR%%'
|
|
||||||
conf.env.TALLOC_VERSION = VERSION
|
|
||||||
|
|
||||||
conf.CHECK_XSLTPROC_MANPAGES()
|
|
||||||
|
|
||||||
conf.CHECK_HEADERS('sys/auxv.h')
|
|
||||||
conf.CHECK_FUNCS('getauxval')
|
|
||||||
+ conf.CHECK_FUNCS('arc4random')
|
|
||||||
|
|
||||||
conf.SAMBA_CONFIG_H()
|
|
||||||
|
|
||||||
@ -1,677 +0,0 @@
|
|||||||
'\" t
|
|
||||||
.\" Title: talloc
|
|
||||||
.\" Author: [see the "AUTHOR" section]
|
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
|
||||||
.\" Date: 2015-04-10
|
|
||||||
.\" Manual: System Administration tools
|
|
||||||
.\" Source: Samba 4.0
|
|
||||||
.\" Language: English
|
|
||||||
.\"
|
|
||||||
.TH "TALLOC" "3" "2015\-04\-10" "Samba 4\&.0" "System Administration tools"
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * Define some portability stuff
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.\" http://bugs.debian.org/507673
|
|
||||||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
||||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
.ie \n(.g .ds Aq \(aq
|
|
||||||
.el .ds Aq '
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * set default formatting
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" disable hyphenation
|
|
||||||
.nh
|
|
||||||
.\" disable justification (adjust text to left margin only)
|
|
||||||
.ad l
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.\" * MAIN CONTENT STARTS HERE *
|
|
||||||
.\" -----------------------------------------------------------------
|
|
||||||
.SH "NAME"
|
|
||||||
talloc \- hierarchical reference counted memory pool system with destructors
|
|
||||||
.SH "SYNOPSIS"
|
|
||||||
.sp
|
|
||||||
.nf
|
|
||||||
#include <talloc\&.h>
|
|
||||||
.fi
|
|
||||||
.SH "DESCRIPTION"
|
|
||||||
.PP
|
|
||||||
If you are used to talloc from Samba3 then please read this carefully, as talloc has changed a lot\&.
|
|
||||||
.PP
|
|
||||||
The new talloc is a hierarchical, reference counted memory pool system with destructors\&. Quite a mouthful really, but not too bad once you get used to it\&.
|
|
||||||
.PP
|
|
||||||
Perhaps the biggest change from Samba3 is that there is no distinction between a "talloc context" and a "talloc pointer"\&. Any pointer returned from talloc() is itself a valid talloc context\&. This means you can do this:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
struct foo *X = talloc(mem_ctx, struct foo);
|
|
||||||
X\->name = talloc_strdup(X, "foo");
|
|
||||||
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.PP
|
|
||||||
and the pointer
|
|
||||||
X\->name
|
|
||||||
would be a "child" of the talloc context
|
|
||||||
X
|
|
||||||
which is itself a child of
|
|
||||||
mem_ctx\&. So if you do
|
|
||||||
talloc_free(mem_ctx)
|
|
||||||
then it is all destroyed, whereas if you do
|
|
||||||
talloc_free(X)
|
|
||||||
then just
|
|
||||||
X
|
|
||||||
and
|
|
||||||
X\->name
|
|
||||||
are destroyed, and if you do
|
|
||||||
talloc_free(X\->name)
|
|
||||||
then just the name element of
|
|
||||||
X
|
|
||||||
is destroyed\&.
|
|
||||||
.PP
|
|
||||||
If you think about this, then what this effectively gives you is an n\-ary tree, where you can free any part of the tree with talloc_free()\&.
|
|
||||||
.PP
|
|
||||||
If you find this confusing, then I suggest you run the
|
|
||||||
testsuite
|
|
||||||
program to watch talloc in action\&. You may also like to add your own tests to
|
|
||||||
testsuite\&.c
|
|
||||||
to clarify how some particular situation is handled\&.
|
|
||||||
.SH "TALLOC API"
|
|
||||||
.PP
|
|
||||||
The following is a complete guide to the talloc API\&. Read it all at least twice\&.
|
|
||||||
.SS "(type *)talloc(const void *ctx, type);"
|
|
||||||
.PP
|
|
||||||
The talloc() macro is the core of the talloc library\&. It takes a memory
|
|
||||||
\fIctx\fR
|
|
||||||
and a
|
|
||||||
\fItype\fR, and returns a pointer to a new area of memory of the given
|
|
||||||
\fItype\fR\&.
|
|
||||||
.PP
|
|
||||||
The returned pointer is itself a talloc context, so you can use it as the
|
|
||||||
\fIctx\fR
|
|
||||||
argument to more calls to talloc() if you wish\&.
|
|
||||||
.PP
|
|
||||||
The returned pointer is a "child" of the supplied context\&. This means that if you talloc_free() the
|
|
||||||
\fIctx\fR
|
|
||||||
then the new child disappears as well\&. Alternatively you can free just the child\&.
|
|
||||||
.PP
|
|
||||||
The
|
|
||||||
\fIctx\fR
|
|
||||||
argument to talloc() can be NULL, in which case a new top level context is created\&.
|
|
||||||
.SS "void *talloc_size(const void *ctx, size_t size);"
|
|
||||||
.PP
|
|
||||||
The function talloc_size() should be used when you don\*(Aqt have a convenient type to pass to talloc()\&. Unlike talloc(), it is not type safe (as it returns a void *), so you are on your own for type checking\&.
|
|
||||||
.SS "(typeof(ptr)) talloc_ptrtype(const void *ctx, ptr);"
|
|
||||||
.PP
|
|
||||||
The talloc_ptrtype() macro should be used when you have a pointer and want to allocate memory to point at with this pointer\&. When compiling with gcc >= 3 it is typesafe\&. Note this is a wrapper of talloc_size() and talloc_get_name() will return the current location in the source file\&. and not the type\&.
|
|
||||||
.SS "int talloc_free(void *ptr);"
|
|
||||||
.PP
|
|
||||||
The talloc_free() function frees a piece of talloc memory, and all its children\&. You can call talloc_free() on any pointer returned by talloc()\&.
|
|
||||||
.PP
|
|
||||||
The return value of talloc_free() indicates success or failure, with 0 returned for success and \-1 for failure\&. The only possible failure condition is if
|
|
||||||
\fIptr\fR
|
|
||||||
had a destructor attached to it and the destructor returned \-1\&. See
|
|
||||||
\(lqtalloc_set_destructor()\(rq
|
|
||||||
for details on destructors\&.
|
|
||||||
.PP
|
|
||||||
If this pointer has an additional parent when talloc_free() is called then the memory is not actually released, but instead the most recently established parent is destroyed\&. See
|
|
||||||
\(lqtalloc_reference()\(rq
|
|
||||||
for details on establishing additional parents\&.
|
|
||||||
.PP
|
|
||||||
For more control on which parent is removed, see
|
|
||||||
\(lqtalloc_unlink()\(rq\&.
|
|
||||||
.PP
|
|
||||||
talloc_free() operates recursively on its children\&.
|
|
||||||
.PP
|
|
||||||
From the 2\&.0 version of talloc, as a special case, talloc_free() is refused on pointers that have more than one parent, as talloc would have no way of knowing which parent should be removed\&. To free a pointer that has more than one parent please use talloc_unlink()\&.
|
|
||||||
.PP
|
|
||||||
To help you find problems in your code caused by this behaviour, if you do try and free a pointer with more than one parent then the talloc logging function will be called to give output like this:
|
|
||||||
.PP
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
ERROR: talloc_free with references at some_dir/source/foo\&.c:123
|
|
||||||
reference at some_dir/source/other\&.c:325
|
|
||||||
reference at some_dir/source/third\&.c:121
|
|
||||||
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.PP
|
|
||||||
Please see the documentation for talloc_set_log_fn() and talloc_set_log_stderr() for more information on talloc logging functions\&.
|
|
||||||
.SS "void *talloc_reference(const void *ctx, const void *ptr);"
|
|
||||||
.PP
|
|
||||||
The talloc_reference() function makes
|
|
||||||
\fIctx\fR
|
|
||||||
an additional parent of
|
|
||||||
\fIptr\fR\&.
|
|
||||||
.PP
|
|
||||||
The return value of talloc_reference() is always the original pointer
|
|
||||||
\fIptr\fR, unless talloc ran out of memory in creating the reference in which case it will return NULL (each additional reference consumes around 48 bytes of memory on intel x86 platforms)\&.
|
|
||||||
.PP
|
|
||||||
If
|
|
||||||
\fIptr\fR
|
|
||||||
is NULL, then the function is a no\-op, and simply returns NULL\&.
|
|
||||||
.PP
|
|
||||||
After creating a reference you can free it in one of the following ways:
|
|
||||||
.PP
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
you can talloc_free() any parent of the original pointer\&. That will reduce the number of parents of this pointer by 1, and will cause this pointer to be freed if it runs out of parents\&.
|
|
||||||
.RE
|
|
||||||
.sp
|
|
||||||
.RS 4
|
|
||||||
.ie n \{\
|
|
||||||
\h'-04'\(bu\h'+03'\c
|
|
||||||
.\}
|
|
||||||
.el \{\
|
|
||||||
.sp -1
|
|
||||||
.IP \(bu 2.3
|
|
||||||
.\}
|
|
||||||
you can talloc_free() the pointer itself if it has at maximum one parent\&. This behaviour has been changed since the release of version 2\&.0\&. Further informations in the description of "talloc_free"\&.
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
For more control on which parent to remove, see
|
|
||||||
\(lqtalloc_unlink()\(rq\&.
|
|
||||||
.SS "int talloc_unlink(const void *ctx, void *ptr);"
|
|
||||||
.PP
|
|
||||||
The talloc_unlink() function removes a specific parent from
|
|
||||||
\fIptr\fR\&. The
|
|
||||||
\fIctx\fR
|
|
||||||
passed must either be a context used in talloc_reference() with this pointer, or must be a direct parent of ptr\&.
|
|
||||||
.PP
|
|
||||||
Note that if the parent has already been removed using talloc_free() then this function will fail and will return \-1\&. Likewise, if
|
|
||||||
\fIptr\fR
|
|
||||||
is NULL, then the function will make no modifications and return \-1\&.
|
|
||||||
.PP
|
|
||||||
Usually you can just use talloc_free() instead of talloc_unlink(), but sometimes it is useful to have the additional control on which parent is removed\&.
|
|
||||||
.SS "void talloc_set_destructor(const void *ptr, int (*destructor)(void *));"
|
|
||||||
.PP
|
|
||||||
The function talloc_set_destructor() sets the
|
|
||||||
\fIdestructor\fR
|
|
||||||
for the pointer
|
|
||||||
\fIptr\fR\&. A
|
|
||||||
\fIdestructor\fR
|
|
||||||
is a function that is called when the memory used by a pointer is about to be released\&. The destructor receives
|
|
||||||
\fIptr\fR
|
|
||||||
as an argument, and should return 0 for success and \-1 for failure\&.
|
|
||||||
.PP
|
|
||||||
The
|
|
||||||
\fIdestructor\fR
|
|
||||||
can do anything it wants to, including freeing other pieces of memory\&. A common use for destructors is to clean up operating system resources (such as open file descriptors) contained in the structure the destructor is placed on\&.
|
|
||||||
.PP
|
|
||||||
You can only place one destructor on a pointer\&. If you need more than one destructor then you can create a zero\-length child of the pointer and place an additional destructor on that\&.
|
|
||||||
.PP
|
|
||||||
To remove a destructor call talloc_set_destructor() with NULL for the destructor\&.
|
|
||||||
.PP
|
|
||||||
If your destructor attempts to talloc_free() the pointer that it is the destructor for then talloc_free() will return \-1 and the free will be ignored\&. This would be a pointless operation anyway, as the destructor is only called when the memory is just about to go away\&.
|
|
||||||
.SS "int talloc_increase_ref_count(const void *\fIptr\fR);"
|
|
||||||
.PP
|
|
||||||
The talloc_increase_ref_count(\fIptr\fR) function is exactly equivalent to:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
talloc_reference(NULL, ptr);
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.PP
|
|
||||||
You can use either syntax, depending on which you think is clearer in your code\&.
|
|
||||||
.PP
|
|
||||||
It returns 0 on success and \-1 on failure\&.
|
|
||||||
.SS "size_t talloc_reference_count(const void *\fIptr\fR);"
|
|
||||||
.PP
|
|
||||||
Return the number of references to the pointer\&.
|
|
||||||
.SS "void talloc_set_name(const void *ptr, const char *fmt, \&.\&.\&.);"
|
|
||||||
.PP
|
|
||||||
Each talloc pointer has a "name"\&. The name is used principally for debugging purposes, although it is also possible to set and get the name on a pointer in as a way of "marking" pointers in your code\&.
|
|
||||||
.PP
|
|
||||||
The main use for names on pointer is for "talloc reports"\&. See
|
|
||||||
\(lqtalloc_report_depth_cb()\(rq,
|
|
||||||
\(lqtalloc_report_depth_file()\(rq,
|
|
||||||
\(lqtalloc_report()\(rq
|
|
||||||
\(lqtalloc_report()\(rq
|
|
||||||
and
|
|
||||||
\(lqtalloc_report_full()\(rq
|
|
||||||
for details\&. Also see
|
|
||||||
\(lqtalloc_enable_leak_report()\(rq
|
|
||||||
and
|
|
||||||
\(lqtalloc_enable_leak_report_full()\(rq\&.
|
|
||||||
.PP
|
|
||||||
The talloc_set_name() function allocates memory as a child of the pointer\&. It is logically equivalent to:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
talloc_set_name_const(ptr, talloc_asprintf(ptr, fmt, \&.\&.\&.));
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.PP
|
|
||||||
Note that multiple calls to talloc_set_name() will allocate more memory without releasing the name\&. All of the memory is released when the ptr is freed using talloc_free()\&.
|
|
||||||
.SS "void talloc_set_name_const(const void *\fIptr\fR, const char *\fIname\fR);"
|
|
||||||
.PP
|
|
||||||
The function talloc_set_name_const() is just like talloc_set_name(), but it takes a string constant, and is much faster\&. It is extensively used by the "auto naming" macros, such as talloc_p()\&.
|
|
||||||
.PP
|
|
||||||
This function does not allocate any memory\&. It just copies the supplied pointer into the internal representation of the talloc ptr\&. This means you must not pass a
|
|
||||||
\fIname\fR
|
|
||||||
pointer to memory that will disappear before
|
|
||||||
\fIptr\fR
|
|
||||||
is freed with talloc_free()\&.
|
|
||||||
.SS "void *talloc_named(const void *\fIctx\fR, size_t \fIsize\fR, const char *\fIfmt\fR, \&.\&.\&.);"
|
|
||||||
.PP
|
|
||||||
The talloc_named() function creates a named talloc pointer\&. It is equivalent to:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
ptr = talloc_size(ctx, size);
|
|
||||||
talloc_set_name(ptr, fmt, \&.\&.\&.\&.);
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SS "void *talloc_named_const(const void *\fIctx\fR, size_t \fIsize\fR, const char *\fIname\fR);"
|
|
||||||
.PP
|
|
||||||
This is equivalent to:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
ptr = talloc_size(ctx, size);
|
|
||||||
talloc_set_name_const(ptr, name);
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SS "const char *talloc_get_name(const void *\fIptr\fR);"
|
|
||||||
.PP
|
|
||||||
This returns the current name for the given talloc pointer,
|
|
||||||
\fIptr\fR\&. See
|
|
||||||
\(lqtalloc_set_name()\(rq
|
|
||||||
for details\&.
|
|
||||||
.SS "void *talloc_init(const char *\fIfmt\fR, \&.\&.\&.);"
|
|
||||||
.PP
|
|
||||||
This function creates a zero length named talloc context as a top level context\&. It is equivalent to:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
talloc_named(NULL, 0, fmt, \&.\&.\&.);
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SS "void *talloc_new(void *\fIctx\fR);"
|
|
||||||
.PP
|
|
||||||
This is a utility macro that creates a new memory context hanging off an existing context, automatically naming it "talloc_new: __location__" where __location__ is the source line it is called from\&. It is particularly useful for creating a new temporary working context\&.
|
|
||||||
.SS "(\fItype\fR *)talloc_realloc(const void *\fIctx\fR, void *\fIptr\fR, \fItype\fR, \fIcount\fR);"
|
|
||||||
.PP
|
|
||||||
The talloc_realloc() macro changes the size of a talloc pointer\&. It has the following equivalences:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
talloc_realloc(ctx, NULL, type, 1) ==> talloc(ctx, type);
|
|
||||||
talloc_realloc(ctx, ptr, type, 0) ==> talloc_free(ptr);
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.PP
|
|
||||||
The
|
|
||||||
\fIctx\fR
|
|
||||||
argument is only used if
|
|
||||||
\fIptr\fR
|
|
||||||
is not NULL, otherwise it is ignored\&.
|
|
||||||
.PP
|
|
||||||
talloc_realloc() returns the new pointer, or NULL on failure\&. The call will fail either due to a lack of memory, or because the pointer has more than one parent (see
|
|
||||||
\(lqtalloc_reference()\(rq)\&.
|
|
||||||
.SS "void *talloc_realloc_size(const void *ctx, void *ptr, size_t size);"
|
|
||||||
.PP
|
|
||||||
the talloc_realloc_size() function is useful when the type is not known so the type\-safe talloc_realloc() cannot be used\&.
|
|
||||||
.SS "TYPE *talloc_steal(const void *\fInew_ctx\fR, const TYPE *\fIptr\fR);"
|
|
||||||
.PP
|
|
||||||
The talloc_steal() function changes the parent context of a talloc pointer\&. It is typically used when the context that the pointer is currently a child of is going to be freed and you wish to keep the memory for a longer time\&.
|
|
||||||
.PP
|
|
||||||
The talloc_steal() function returns the pointer that you pass it\&. It does not have any failure modes\&.
|
|
||||||
.PP
|
|
||||||
It is possible to produce loops in the parent/child relationship if you are not careful with talloc_steal()\&. No guarantees are provided as to your sanity or the safety of your data if you do this\&.
|
|
||||||
.PP
|
|
||||||
Note that if you try and call talloc_steal() on a pointer that has more than one parent then the result is ambiguous\&. Talloc will choose to remove the parent that is currently indicated by talloc_parent() and replace it with the chosen parent\&. You will also get a message like this via the talloc logging functions:
|
|
||||||
.PP
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
WARNING: talloc_steal with references at some_dir/source/foo\&.c:123
|
|
||||||
reference at some_dir/source/other\&.c:325
|
|
||||||
reference at some_dir/source/third\&.c:121
|
|
||||||
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.PP
|
|
||||||
To unambiguously change the parent of a pointer please see the function
|
|
||||||
\(lqtalloc_reparent()\(rq\&. See the talloc_set_log_fn() documentation for more information on talloc logging\&.
|
|
||||||
.SS "TYPE *talloc_reparent(const void *\fIold_parent\fR, const void *\fInew_parent\fR, const TYPE *\fIptr\fR);"
|
|
||||||
.PP
|
|
||||||
The talloc_reparent() function changes the parent context of a talloc pointer\&. It is typically used when the context that the pointer is currently a child of is going to be freed and you wish to keep the memory for a longer time\&.
|
|
||||||
.PP
|
|
||||||
The talloc_reparent() function returns the pointer that you pass it\&. It does not have any failure modes\&.
|
|
||||||
.PP
|
|
||||||
The difference between talloc_reparent() and talloc_steal() is that talloc_reparent() can specify which parent you wish to change\&. This is useful when a pointer has multiple parents via references\&.
|
|
||||||
.SS "TYPE *talloc_move(const void *\fInew_ctx\fR, TYPE **\fIptr\fR);"
|
|
||||||
.PP
|
|
||||||
The talloc_move() function is a wrapper around talloc_steal() which zeros the source pointer after the move\&. This avoids a potential source of bugs where a programmer leaves a pointer in two structures, and uses the pointer from the old structure after it has been moved to a new one\&.
|
|
||||||
.SS "size_t talloc_total_size(const void *\fIptr\fR);"
|
|
||||||
.PP
|
|
||||||
The talloc_total_size() function returns the total size in bytes used by this pointer and all child pointers\&. Mostly useful for debugging\&.
|
|
||||||
.PP
|
|
||||||
Passing NULL is allowed, but it will only give a meaningful result if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&.
|
|
||||||
.SS "size_t talloc_total_blocks(const void *\fIptr\fR);"
|
|
||||||
.PP
|
|
||||||
The talloc_total_blocks() function returns the total memory block count used by this pointer and all child pointers\&. Mostly useful for debugging\&.
|
|
||||||
.PP
|
|
||||||
Passing NULL is allowed, but it will only give a meaningful result if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&.
|
|
||||||
.SS "void talloc_report(const void *ptr, FILE *f);"
|
|
||||||
.PP
|
|
||||||
The talloc_report() function prints a summary report of all memory used by
|
|
||||||
\fIptr\fR\&. One line of report is printed for each immediate child of ptr, showing the total memory and number of blocks used by that child\&.
|
|
||||||
.PP
|
|
||||||
You can pass NULL for the pointer, in which case a report is printed for the top level memory context, but only if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&.
|
|
||||||
.SS "void talloc_report_full(const void *\fIptr\fR, FILE *\fIf\fR);"
|
|
||||||
.PP
|
|
||||||
This provides a more detailed report than talloc_report()\&. It will recursively print the entire tree of memory referenced by the pointer\&. References in the tree are shown by giving the name of the pointer that is referenced\&.
|
|
||||||
.PP
|
|
||||||
You can pass NULL for the pointer, in which case a report is printed for the top level memory context, but only if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&.
|
|
||||||
.SS ""
|
|
||||||
.HP \w'void\ talloc_report_depth_cb('u
|
|
||||||
.BI "void talloc_report_depth_cb(" "const\ void\ *ptr" ", " "int\ depth" ", " "int\ max_depth" ", " "void\ (*callback)(const\ void\ *ptr,\ int\ depth,\ int\ max_depth,\ int\ is_ref,\ void\ *priv)" ", " "void\ *priv" ");"
|
|
||||||
.PP
|
|
||||||
This provides a more flexible reports than talloc_report()\&. It will recursively call the callback for the entire tree of memory referenced by the pointer\&. References in the tree are passed with
|
|
||||||
\fIis_ref = 1\fR
|
|
||||||
and the pointer that is referenced\&.
|
|
||||||
.PP
|
|
||||||
You can pass NULL for the pointer, in which case a report is printed for the top level memory context, but only if talloc_enable_leak_report() or talloc_enable_leak_report_full() has been called\&.
|
|
||||||
.PP
|
|
||||||
The recursion is stopped when depth >= max_depth\&. max_depth = \-1 means only stop at leaf nodes\&.
|
|
||||||
.SS ""
|
|
||||||
.HP \w'void\ talloc_report_depth_file('u
|
|
||||||
.BI "void talloc_report_depth_file(" "const\ void\ *ptr" ", " "int\ depth" ", " "int\ max_depth" ", " "FILE\ *f" ");"
|
|
||||||
.PP
|
|
||||||
This provides a more flexible reports than talloc_report()\&. It will let you specify the depth and max_depth\&.
|
|
||||||
.SS "void talloc_enable_leak_report(void);"
|
|
||||||
.PP
|
|
||||||
This enables calling of talloc_report(NULL, stderr) when the program exits\&. In Samba4 this is enabled by using the \-\-leak\-report command line option\&.
|
|
||||||
.PP
|
|
||||||
For it to be useful, this function must be called before any other talloc function as it establishes a "null context" that acts as the top of the tree\&. If you don\*(Aqt call this function first then passing NULL to talloc_report() or talloc_report_full() won\*(Aqt give you the full tree printout\&.
|
|
||||||
.PP
|
|
||||||
Here is a typical talloc report:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
talloc report on \*(Aqnull_context\*(Aq (total 267 bytes in 15 blocks)
|
|
||||||
libcli/auth/spnego_parse\&.c:55 contains 31 bytes in 2 blocks
|
|
||||||
libcli/auth/spnego_parse\&.c:55 contains 31 bytes in 2 blocks
|
|
||||||
iconv(UTF8,CP850) contains 42 bytes in 2 blocks
|
|
||||||
libcli/auth/spnego_parse\&.c:55 contains 31 bytes in 2 blocks
|
|
||||||
iconv(CP850,UTF8) contains 42 bytes in 2 blocks
|
|
||||||
iconv(UTF8,UTF\-16LE) contains 45 bytes in 2 blocks
|
|
||||||
iconv(UTF\-16LE,UTF8) contains 45 bytes in 2 blocks
|
|
||||||
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SS "void talloc_enable_leak_report_full(void);"
|
|
||||||
.PP
|
|
||||||
This enables calling of talloc_report_full(NULL, stderr) when the program exits\&. In Samba4 this is enabled by using the \-\-leak\-report\-full command line option\&.
|
|
||||||
.PP
|
|
||||||
For it to be useful, this function must be called before any other talloc function as it establishes a "null context" that acts as the top of the tree\&. If you don\*(Aqt call this function first then passing NULL to talloc_report() or talloc_report_full() won\*(Aqt give you the full tree printout\&.
|
|
||||||
.PP
|
|
||||||
Here is a typical full report:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
full talloc report on \*(Aqroot\*(Aq (total 18 bytes in 8 blocks)
|
|
||||||
p1 contains 18 bytes in 7 blocks (ref 0)
|
|
||||||
r1 contains 13 bytes in 2 blocks (ref 0)
|
|
||||||
reference to: p2
|
|
||||||
p2 contains 1 bytes in 1 blocks (ref 1)
|
|
||||||
x3 contains 1 bytes in 1 blocks (ref 0)
|
|
||||||
x2 contains 1 bytes in 1 blocks (ref 0)
|
|
||||||
x1 contains 1 bytes in 1 blocks (ref 0)
|
|
||||||
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SS "(\fItype\fR *)talloc_zero(const void *\fIctx\fR, \fItype\fR);"
|
|
||||||
.PP
|
|
||||||
The talloc_zero() macro is equivalent to:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
ptr = talloc(ctx, type);
|
|
||||||
if (ptr) memset(ptr, 0, sizeof(type));
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SS "void *talloc_zero_size(const void *\fIctx\fR, size_t \fIsize\fR)"
|
|
||||||
.PP
|
|
||||||
The talloc_zero_size() function is useful when you don\*(Aqt have a known type\&.
|
|
||||||
.SS "void *talloc_memdup(const void *\fIctx\fR, const void *\fIp\fR, size_t size);"
|
|
||||||
.PP
|
|
||||||
The talloc_memdup() function is equivalent to:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
ptr = talloc_size(ctx, size);
|
|
||||||
if (ptr) memcpy(ptr, p, size);
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SS "char *talloc_strdup(const void *\fIctx\fR, const char *\fIp\fR);"
|
|
||||||
.PP
|
|
||||||
The talloc_strdup() function is equivalent to:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
ptr = talloc_size(ctx, strlen(p)+1);
|
|
||||||
if (ptr) memcpy(ptr, p, strlen(p)+1);
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.PP
|
|
||||||
This function sets the name of the new pointer to the passed string\&. This is equivalent to:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
talloc_set_name_const(ptr, ptr)
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SS "char *talloc_strndup(const void *\fIt\fR, const char *\fIp\fR, size_t \fIn\fR);"
|
|
||||||
.PP
|
|
||||||
The talloc_strndup() function is the talloc equivalent of the C library function strndup(3)\&.
|
|
||||||
.PP
|
|
||||||
This function sets the name of the new pointer to the passed string\&. This is equivalent to:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
talloc_set_name_const(ptr, ptr)
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SS "char *talloc_vasprintf(const void *\fIt\fR, const char *\fIfmt\fR, va_list \fIap\fR);"
|
|
||||||
.PP
|
|
||||||
The talloc_vasprintf() function is the talloc equivalent of the C library function vasprintf(3)\&.
|
|
||||||
.PP
|
|
||||||
This function sets the name of the new pointer to the new string\&. This is equivalent to:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
talloc_set_name_const(ptr, ptr)
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SS "char *talloc_asprintf(const void *\fIt\fR, const char *\fIfmt\fR, \&.\&.\&.);"
|
|
||||||
.PP
|
|
||||||
The talloc_asprintf() function is the talloc equivalent of the C library function asprintf(3)\&.
|
|
||||||
.PP
|
|
||||||
This function sets the name of the new pointer to the passed string\&. This is equivalent to:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
talloc_set_name_const(ptr, ptr)
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SS "char *talloc_asprintf_append(char *s, const char *fmt, \&.\&.\&.);"
|
|
||||||
.PP
|
|
||||||
The talloc_asprintf_append() function appends the given formatted string to the given string\&.
|
|
||||||
.PP
|
|
||||||
This function sets the name of the new pointer to the new string\&. This is equivalent to:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
talloc_set_name_const(ptr, ptr)
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SS "(type *)talloc_array(const void *ctx, type, unsigned int count);"
|
|
||||||
.PP
|
|
||||||
The talloc_array() macro is equivalent to:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
(type *)talloc_size(ctx, sizeof(type) * count);
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.PP
|
|
||||||
except that it provides integer overflow protection for the multiply, returning NULL if the multiply overflows\&.
|
|
||||||
.SS "void *talloc_array_size(const void *ctx, size_t size, unsigned int count);"
|
|
||||||
.PP
|
|
||||||
The talloc_array_size() function is useful when the type is not known\&. It operates in the same way as talloc_array(), but takes a size instead of a type\&.
|
|
||||||
.SS "(typeof(ptr)) talloc_array_ptrtype(const void *ctx, ptr, unsigned int count);"
|
|
||||||
.PP
|
|
||||||
The talloc_ptrtype() macro should be used when you have a pointer to an array and want to allocate memory of an array to point at with this pointer\&. When compiling with gcc >= 3 it is typesafe\&. Note this is a wrapper of talloc_array_size() and talloc_get_name() will return the current location in the source file\&. and not the type\&.
|
|
||||||
.SS "void *talloc_realloc_fn(const void *ctx, void *ptr, size_t size)"
|
|
||||||
.PP
|
|
||||||
This is a non\-macro version of talloc_realloc(), which is useful as libraries sometimes want a realloc function pointer\&. A realloc(3) implementation encapsulates the functionality of malloc(3), free(3) and realloc(3) in one call, which is why it is useful to be able to pass around a single function pointer\&.
|
|
||||||
.SS "void *talloc_autofree_context(void);"
|
|
||||||
.PP
|
|
||||||
This is a handy utility function that returns a talloc context which will be automatically freed on program exit\&. This can be used to reduce the noise in memory leak reports\&.
|
|
||||||
.SS "void *talloc_check_name(const void *ptr, const char *name);"
|
|
||||||
.PP
|
|
||||||
This function checks if a pointer has the specified
|
|
||||||
\fIname\fR\&. If it does then the pointer is returned\&. It it doesn\*(Aqt then NULL is returned\&.
|
|
||||||
.SS "(type *)talloc_get_type(const void *ptr, type);"
|
|
||||||
.PP
|
|
||||||
This macro allows you to do type checking on talloc pointers\&. It is particularly useful for void* private pointers\&. It is equivalent to this:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
(type *)talloc_check_name(ptr, #type)
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SS "talloc_set_type(const void *ptr, type);"
|
|
||||||
.PP
|
|
||||||
This macro allows you to force the name of a pointer to be a particular
|
|
||||||
\fItype\fR\&. This can be used in conjunction with talloc_get_type() to do type checking on void* pointers\&.
|
|
||||||
.PP
|
|
||||||
It is equivalent to this:
|
|
||||||
.sp
|
|
||||||
.if n \{\
|
|
||||||
.RS 4
|
|
||||||
.\}
|
|
||||||
.nf
|
|
||||||
talloc_set_name_const(ptr, #type)
|
|
||||||
.fi
|
|
||||||
.if n \{\
|
|
||||||
.RE
|
|
||||||
.\}
|
|
||||||
.SS "talloc_set_log_fn(void (*log_fn)(const char *message));"
|
|
||||||
.PP
|
|
||||||
This function sets a logging function that talloc will use for warnings and errors\&. By default talloc will not print any warnings or errors\&.
|
|
||||||
.SS "talloc_set_log_stderr(void);"
|
|
||||||
.PP
|
|
||||||
This sets the talloc log function to write log messages to stderr
|
|
||||||
.SH "PERFORMANCE"
|
|
||||||
.PP
|
|
||||||
All the additional features of talloc(3) over malloc(3) do come at a price\&. We have a simple performance test in Samba4 that measures talloc() versus malloc() performance, and it seems that talloc() is about 10% slower than malloc() on my x86 Debian Linux box\&. For Samba, the great reduction in code complexity that we get by using talloc makes this worthwhile, especially as the total overhead of talloc/malloc in Samba is already quite small\&.
|
|
||||||
.SH "SEE ALSO"
|
|
||||||
.PP
|
|
||||||
malloc(3), strndup(3), vasprintf(3), asprintf(3),
|
|
||||||
\m[blue]\fB\%http://talloc.samba.org/\fR\m[]
|
|
||||||
.SH "AUTHOR"
|
|
||||||
.PP
|
|
||||||
The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
|
|
||||||
.SH "COPYRIGHT/LICENSE"
|
|
||||||
.PP
|
|
||||||
Copyright (C) Andrew Tridgell 2004
|
|
||||||
.PP
|
|
||||||
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
|
|
||||||
.PP
|
|
||||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
|
|
||||||
.PP
|
|
||||||
You should have received a copy of the GNU General Public License along with this program; if not, see http://www\&.gnu\&.org/licenses/\&.
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
A hierarchical pool based memory allocator with destructors. It uses
|
|
||||||
reference counting to determine when memory should be freed.
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
%%PYTHON%%include/pytalloc.h
|
|
||||||
include/talloc.h
|
|
||||||
%%PYTHON%%lib/libpytalloc-util%%PYTHON_EXT_SUFFIX%%.so
|
|
||||||
%%PYTHON%%lib/libpytalloc-util%%PYTHON_EXT_SUFFIX%%.so.2
|
|
||||||
lib/libtalloc.so
|
|
||||||
lib/libtalloc.so.2
|
|
||||||
%%PYTHON%%%%PYTHON_SITELIBDIR%%/talloc%%PYTHON_EXT_SUFFIX%%.so
|
|
||||||
%%PYTHON%%%%PKGCONFIGDIR%%/pytalloc-util%%PYTHON_EXT_SUFFIX%%.pc
|
|
||||||
%%PKGCONFIGDIR%%/talloc.pc
|
|
||||||
share/man/man3/talloc.3.gz
|
|
||||||
@ -1,75 +0,0 @@
|
|||||||
PORTNAME= tevent
|
|
||||||
DISTVERSION= 0.16.1
|
|
||||||
PORTEPOCH= 0
|
|
||||||
CATEGORIES= devel
|
|
||||||
MASTER_SITES= SAMBA
|
|
||||||
|
|
||||||
MAINTAINER= samba@FreeBSD.org
|
|
||||||
COMMENT= Talloc based event loop library
|
|
||||||
WWW= https://tevent.samba.org/
|
|
||||||
|
|
||||||
LICENSE= LGPL3
|
|
||||||
|
|
||||||
BUILD_DEPENDS= talloc>=2.3.4:devel/talloc
|
|
||||||
RUN_DEPENDS= talloc>=2.3.4:devel/talloc
|
|
||||||
|
|
||||||
USES= compiler pkgconfig shebangfix waf
|
|
||||||
USE_LDCONFIG= yes
|
|
||||||
SHEBANG_GLOB= *.py
|
|
||||||
WAF_CMD= buildtools/bin/waf
|
|
||||||
CONFIGURE_LOG= bin/config.log
|
|
||||||
|
|
||||||
PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
|
|
||||||
PLIST_SUB= PKGCONFIGDIR=${PKGCONFIGDIR:S;^${PREFIX}/;;}
|
|
||||||
|
|
||||||
CONFIGURE_ARGS= --disable-rpath \
|
|
||||||
--disable-rpath-install \
|
|
||||||
--bundled-libraries=!talloc,cmocka \
|
|
||||||
--builtin-libraries=replace \
|
|
||||||
--without-gettext
|
|
||||||
CONFIGURE_ENV= PYTHONHASHSEED=1
|
|
||||||
MAKE_ENV= PYTHONHASHSEED=1
|
|
||||||
|
|
||||||
MANPAGES_DESC= Build and install manpages (requires textproc/docbook-xsl)
|
|
||||||
|
|
||||||
OPTIONS_DEFINE= DEBUG MANPAGES PYTHON
|
|
||||||
OPTIONS_DEFAULT= PYTHON
|
|
||||||
OPTIONS_SUB= yes
|
|
||||||
|
|
||||||
DEBUG_CFLAGS= -g -ggdb3 -O0
|
|
||||||
DEBUG_CONFIGURE_ON= --verbose --enable-debug
|
|
||||||
DEBUG_MAKE_ARGS= --verbose
|
|
||||||
|
|
||||||
PYTHON_USES= gettext-runtime python
|
|
||||||
PYTHON_USE= python=py3kplist
|
|
||||||
PYTHON_USES_OFF= python:build,test
|
|
||||||
PYTHON_CONFIGURE_OFF= --disable-python
|
|
||||||
|
|
||||||
MANPAGES_CONFIGURE_ENV_OFF= XSLTPROC="true"
|
|
||||||
MANPAGES_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \
|
|
||||||
xsltproc:textproc/libxslt
|
|
||||||
# No fancy color error messages
|
|
||||||
CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}}
|
|
||||||
CFLAGS_clang= -fno-color-diagnostics
|
|
||||||
CONFIGURE_ENV+= NOCOLOR=yes
|
|
||||||
MAKE_ENV+= NOCOLOR=yes
|
|
||||||
# Some symbols in tevent's linker version scripts are not defined, but since the
|
|
||||||
# scripts are generated dynamically, suppress errors with lld >= 17 due to these
|
|
||||||
# undefined symbols.
|
|
||||||
LDFLAGS+= -Wl,--undefined-version
|
|
||||||
|
|
||||||
post-patch:
|
|
||||||
@${REINPLACE_CMD} -e 's|%%PKGCONFIGDIR%%|${PKGCONFIGDIR}|g' \
|
|
||||||
${BUILD_WRKSRC}/wscript
|
|
||||||
|
|
||||||
post-install:
|
|
||||||
${RM} ${STAGEDIR}${PREFIX}/lib/tevent/libcmocka-tevent.so
|
|
||||||
${RM} ${STAGEDIR}${PREFIX}/lib/tevent/libpytalloc-util.cpython-${PYTHON_SUFFIX}-tevent.so
|
|
||||||
${RMDIR} ${STAGEDIR}${PREFIX}/lib/tevent
|
|
||||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtevent.so
|
|
||||||
|
|
||||||
post-install-PYTHON-on:
|
|
||||||
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_tevent*.so
|
|
||||||
${PYTHON_CMD} -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
TIMESTAMP = 1737642434
|
|
||||||
SHA256 (tevent-0.16.1.tar.gz) = 362971e0f32dc1905f6fe4736319c4b8348c22dc85aa6c3f690a28efe548029e
|
|
||||||
SIZE (tevent-0.16.1.tar.gz) = 890010
|
|
||||||
@ -1,35 +0,0 @@
|
|||||||
--- buildtools/wafsamba/samba_autoconf.py.orig 2019-09-04 15:42:16 UTC
|
|
||||||
+++ buildtools/wafsamba/samba_autoconf.py
|
|
||||||
@@ -573,7 +573,7 @@ def library_flags(self, libs):
|
|
||||||
|
|
||||||
|
|
||||||
@conf
|
|
||||||
-def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False):
|
|
||||||
+def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False, msg=None):
|
|
||||||
'''check if a set of libraries exist as system libraries
|
|
||||||
|
|
||||||
returns the sublist of libs that do exist as a syslib or []
|
|
||||||
@@ -593,11 +593,14 @@ int foo()
|
|
||||||
ret.append(lib)
|
|
||||||
continue
|
|
||||||
|
|
||||||
+ if msg is None:
|
|
||||||
+ msg = 'Checking for library %s' % lib
|
|
||||||
+
|
|
||||||
(ccflags, ldflags, cpppath) = library_flags(conf, lib)
|
|
||||||
if shlib:
|
|
||||||
- res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False)
|
|
||||||
+ res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False, msg=msg)
|
|
||||||
else:
|
|
||||||
- res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False)
|
|
||||||
+ res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False, msg=msg)
|
|
||||||
|
|
||||||
if not res:
|
|
||||||
if mandatory:
|
|
||||||
@@ -949,5 +952,5 @@ def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(conf):
|
|
||||||
conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
|
|
||||||
|
|
||||||
if (conf.env.undefined_ignore_ldflags == [] and
|
|
||||||
- conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'])):
|
|
||||||
+ conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'] + conf.env.WERROR_CFLAGS)):
|
|
||||||
conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup']
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- buildtools/wafsamba/samba_install.py.orig 2019-03-21 10:12:32 UTC
|
|
||||||
+++ buildtools/wafsamba/samba_install.py
|
|
||||||
@@ -115,7 +115,7 @@ def install_library(self):
|
|
||||||
inst_name = bld.make_libname(t.target)
|
|
||||||
elif self.vnum:
|
|
||||||
vnum_base = self.vnum.split('.')[0]
|
|
||||||
- install_name = bld.make_libname(target_name, version=self.vnum)
|
|
||||||
+ install_name = bld.make_libname(target_name, version=vnum_base)
|
|
||||||
install_link = bld.make_libname(target_name, version=vnum_base)
|
|
||||||
inst_name = bld.make_libname(t.target)
|
|
||||||
if not self.private_library or not t.env.SONAME_ST:
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
--- buildtools/wafsamba/wscript.orig 2019-03-21 10:12:32 UTC
|
|
||||||
+++ buildtools/wafsamba/wscript
|
|
||||||
@@ -82,10 +82,10 @@ def options(opt):
|
|
||||||
|
|
||||||
opt.add_option('--with-libiconv',
|
|
||||||
help='additional directory to search for libiconv',
|
|
||||||
- action='store', dest='iconv_open', default='/usr/local',
|
|
||||||
+ action='store', dest='iconv_open', default=None,
|
|
||||||
match = ['Checking for library iconv', 'Checking for iconv_open', 'Checking for header iconv.h'])
|
|
||||||
opt.add_option('--without-gettext',
|
|
||||||
- help=("Disable use of gettext"),
|
|
||||||
+ help=("disable use of gettext"),
|
|
||||||
action="store_true", dest='disable_gettext', default=False)
|
|
||||||
|
|
||||||
gr = opt.option_group('developer options')
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- lib/replace/wscript.orig 2019-03-21 10:12:32 UTC
|
|
||||||
+++ lib/replace/wscript
|
|
||||||
@@ -119,7 +119,7 @@ def configure(conf):
|
|
||||||
conf.CHECK_HEADERS('sys/atomic.h stdatomic.h')
|
|
||||||
conf.CHECK_HEADERS('libgen.h')
|
|
||||||
|
|
||||||
- if conf.CHECK_CFLAGS('-Wno-format-truncation'):
|
|
||||||
+ if conf.CHECK_CFLAGS(['-Wno-format-truncation'] + conf.env.WERROR_CFLAGS):
|
|
||||||
conf.define('HAVE_WNO_FORMAT_TRUNCATION', '1')
|
|
||||||
|
|
||||||
if conf.CHECK_CFLAGS('-Wno-unused-function'):
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- wscript.orig 2017-07-22 22:25:22 UTC
|
|
||||||
+++ wscript
|
|
||||||
@@ -88,7 +88,7 @@ def build(bld):
|
|
||||||
SRC += ' tevent_port.c'
|
|
||||||
|
|
||||||
if bld.env.standalone_tevent:
|
|
||||||
- bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
|
|
||||||
+ bld.env.PKGCONFIGDIR = '%%PKGCONFIGDIR%%'
|
|
||||||
private_library = False
|
|
||||||
else:
|
|
||||||
private_library = True
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
tevent is a simple library that can handle the main event loop for an
|
|
||||||
application. It supports three kinds of events: timed events, file
|
|
||||||
descriptors becoming readable or writable and signals.
|
|
||||||
|
|
||||||
Talloc is used for memory management, both internally and for private
|
|
||||||
data provided by users of the library.
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
include/tevent.h
|
|
||||||
lib/libtevent.so
|
|
||||||
lib/libtevent.so.0
|
|
||||||
%%PYTHON%%%%PYTHON_SITELIBDIR%%/__pycache__/tevent.cpython-%%PYTHON_SUFFIX%%.pyc
|
|
||||||
%%PYTHON%%%%PYTHON_SITELIBDIR%%/_tevent%%PYTHON_EXT_SUFFIX%%.so
|
|
||||||
%%PYTHON%%%%PYTHON_SITELIBDIR%%/tevent.py
|
|
||||||
%%PKGCONFIGDIR%%/tevent.pc
|
|
||||||
@ -1,118 +0,0 @@
|
|||||||
PORTNAME= nagios
|
|
||||||
PORTVERSION= 3.5.1
|
|
||||||
PORTREVISION= 12
|
|
||||||
CATEGORIES= net-mgmt
|
|
||||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-3.x/${PORTNAME}-${PORTVERSION}
|
|
||||||
|
|
||||||
MAINTAINER= joneum@FreeBSD.org
|
|
||||||
COMMENT= Powerful network monitoring system
|
|
||||||
WWW= https://www.nagios.org/
|
|
||||||
|
|
||||||
LICENSE= GPLv2
|
|
||||||
|
|
||||||
FLAVORS= default monplugins
|
|
||||||
FLAVOR?= ${FLAVORS:[1]}
|
|
||||||
monplugins_PKGNAMESUFFIX= -monplugins
|
|
||||||
|
|
||||||
LIB_DEPENDS= libltdl.so:devel/libltdl \
|
|
||||||
libgd.so:graphics/gd
|
|
||||||
|
|
||||||
PORTSCOUT= limit:^3.
|
|
||||||
|
|
||||||
USES= cpe localbase perl5 php
|
|
||||||
USE_PERL5= build
|
|
||||||
USE_RC_SUBR= nagios
|
|
||||||
|
|
||||||
CONFLICTS= nagios-[12].* nagios-devel nagios4
|
|
||||||
|
|
||||||
GNU_CONFIGURE= yes
|
|
||||||
CONFIGURE_ARGS= --with-command-user=${NAGIOSUSER} \
|
|
||||||
--with-command-group=${WWWGRP} \
|
|
||||||
--with-nagios-user=${NAGIOSUSER} \
|
|
||||||
--with-nagios-group=${NAGIOSGROUP} \
|
|
||||||
--with-htmurl=${NAGIOSHTMURL} \
|
|
||||||
--with-cgiurl=${NAGIOSCGIURL} \
|
|
||||||
--sbindir=${PREFIX}/${NAGIOSWWWDIR}/cgi-bin \
|
|
||||||
--libexecdir=${PREFIX}/libexec/nagios \
|
|
||||||
--datadir=${PREFIX}/${NAGIOSWWWDIR} \
|
|
||||||
--sysconfdir=${PREFIX}/etc/nagios \
|
|
||||||
--localstatedir=${NAGIOSDIR} \
|
|
||||||
--with-httpd-conf=${PREFIX}/etc \
|
|
||||||
--with-checkresult-dir=${NAGIOSDIR}/checkresults \
|
|
||||||
--disable-statuswrl \
|
|
||||||
ac_cv_lib_iconv_main=no
|
|
||||||
CONFIGURE_ENV= PERL=${PERL}
|
|
||||||
|
|
||||||
MAKE_JOBS_UNSAFE= yes
|
|
||||||
|
|
||||||
INSTALL_TARGET= install install-commandmode install-config
|
|
||||||
PLIST_SUB= NAGIOSDIR=${NAGIOSDIR} \
|
|
||||||
NAGIOSWWWDIR=${NAGIOSWWWDIR} \
|
|
||||||
NAGIOSUSER=${NAGIOSUSER} \
|
|
||||||
NAGIOSGROUP=${NAGIOSGROUP} \
|
|
||||||
WWWGRP=${WWWGRP}
|
|
||||||
|
|
||||||
SUB_FILES= pkg-message
|
|
||||||
|
|
||||||
# XXX: Don't remove PREFIX from SUB_LIST here.
|
|
||||||
SUB_LIST= PREFIX=${PREFIX} \
|
|
||||||
NAGIOSHTMURL=${NAGIOSHTMURL} \
|
|
||||||
NAGIOSCGIURL=${NAGIOSCGIURL} \
|
|
||||||
${PLIST_SUB}
|
|
||||||
|
|
||||||
NAGIOSUSER?= nagios
|
|
||||||
NAGIOSGROUP?= nagios
|
|
||||||
NAGIOSDIR?= /var/spool/nagios
|
|
||||||
|
|
||||||
NAGIOSWWWDIR?= www/nagios
|
|
||||||
NAGIOSHTMURL?= /nagios
|
|
||||||
NAGIOSCGIURL?= ${NAGIOSHTMURL}/cgi-bin
|
|
||||||
|
|
||||||
USERS= ${NAGIOSUSER}
|
|
||||||
GROUPS= ${NAGIOSGROUP}
|
|
||||||
|
|
||||||
OPTIONS_DEFINE= EMBEDDED_PERL NANOSLEEP EVENT_BROKER UNHANDLED_HACK
|
|
||||||
OPTIONS_RADIO= PLUGINS
|
|
||||||
OPTIONS_RADIO_PLUGINS= MONPLUGINS NAGPLUGINS
|
|
||||||
# XXX:
|
|
||||||
#OPTIONS_DEFAULT= NAGPLUGINS
|
|
||||||
EMBEDDED_PERL_DESC= Enable embedded Perl [requires Perl 5.8.0+]
|
|
||||||
NANOSLEEP_DESC= Use nanosleep in event timing
|
|
||||||
EVENT_BROKER_DESC= Enable event broker functionality
|
|
||||||
UNHANDLED_HACK_DESC= Display passive checks in unhandled queries
|
|
||||||
|
|
||||||
MONPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/monitoring-plugins
|
|
||||||
NAGPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/nagios-plugins
|
|
||||||
|
|
||||||
OPTIONS_SUB=
|
|
||||||
|
|
||||||
EMBEDDED_PERL_USE= perl5=run
|
|
||||||
EMBEDDED_PERL_CONFIGURE_ENABLE= embedded-perl
|
|
||||||
EMBEDDED_PERL_CONFIGURE_WITH= perlcache
|
|
||||||
NANOSLEEP_CONFIGURE_ENABLE= nanosleep
|
|
||||||
EVENT_BROKER_CONFIGURE_ENABLE= event-broker
|
|
||||||
|
|
||||||
.if ${FLAVOR:U} == monplugins
|
|
||||||
OPTIONS_DEFAULT+= MONPLUGINS
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${FLAVOR:U} == default
|
|
||||||
OPTIONS_DEFAULT+= NAGPLUGINS
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-extract:
|
|
||||||
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
|
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
|
||||||
|
|
||||||
post-patch:
|
|
||||||
@${REINPLACE_CMD} '/^INSTALL_OPTS=/d' ${WRKSRC}/configure
|
|
||||||
.if ${PORT_OPTIONS:MUNHANDLED_HACK}
|
|
||||||
@${REINPLACE_CMD} -e 's#;serviceprops=42\&#;serviceprops=10\&#g' \
|
|
||||||
-e 's#;hostprops=42\"#;hostprops=10\"#g' ${WRKSRC}/html/side.php
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-install:
|
|
||||||
@${MV} ${STAGEDIR}${PREFIX}/${NAGIOSWWWDIR}/config.inc.php ${STAGEDIR}${PREFIX}/${NAGIOSWWWDIR}/config.inc.php.sample
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
SHA256 (nagios-3.5.1.tar.gz) = ca9dd68234fa090b3c35ecc8767b2c9eb743977eaf32612fa9b8341cc00a0f99
|
|
||||||
SIZE (nagios-3.5.1.tar.gz) = 1763584
|
|
||||||
@ -1,100 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# PROVIDE: nagios
|
|
||||||
# REQUIRE: LOGIN
|
|
||||||
# KEYWORD: shutdown
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add the following lines to /etc/rc.conf to enable nagios:
|
|
||||||
# nagios_enable (bool): Set to "NO" by default.
|
|
||||||
# Set it to "YES" to enable nagios.
|
|
||||||
# nagios_precache (bool): Set to "NO" by default.
|
|
||||||
# Set it to "YES" to enable pre-caching.
|
|
||||||
# nagios_flags (str): Set to "" by default.
|
|
||||||
# nagios_configfile (str): Set to "%%PREFIX%%/etc/nagios/nagios.cfg" by default.
|
|
||||||
#
|
|
||||||
|
|
||||||
. /etc/rc.subr
|
|
||||||
|
|
||||||
name="nagios"
|
|
||||||
rcvar=nagios_enable
|
|
||||||
|
|
||||||
command="%%PREFIX%%/bin/nagios"
|
|
||||||
command_args="-d"
|
|
||||||
extra_commands="reload configtest"
|
|
||||||
pidfile="%%NAGIOSDIR%%/nagios.lock"
|
|
||||||
nagios_user="%%NAGIOSUSER%%"
|
|
||||||
|
|
||||||
start_precmd="start_precmd"
|
|
||||||
stop_postcmd="stop_postcmd"
|
|
||||||
restart_precmd="nagios_checkconfig"
|
|
||||||
reload_precmd="reload_precmd"
|
|
||||||
configtest_cmd="nagios_checkconfig"
|
|
||||||
sig_reload=HUP
|
|
||||||
|
|
||||||
load_rc_config "${name}"
|
|
||||||
|
|
||||||
[ -z "${nagios_enable}" ] && nagios_enable="NO"
|
|
||||||
[ -z "${nagios_configfile}" ] && nagios_configfile="%%PREFIX%%/etc/nagios/nagios.cfg"
|
|
||||||
[ -z "${nagios_precache}" ] && nagios_precache="NO"
|
|
||||||
|
|
||||||
required_files="${nagios_configfile}"
|
|
||||||
command_args="${command_args} ${nagios_configfile}"
|
|
||||||
|
|
||||||
nagios_cacheconfig() {
|
|
||||||
if ! checkyesno nagios_precache; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -n "Pre-Caching nagios configuration: "
|
|
||||||
${command} -pv ${nagios_configfile} 2>&1 >/dev/null
|
|
||||||
if [ $? != 0 ]; then
|
|
||||||
echo "FAILED"
|
|
||||||
${command} -v ${nagios_configfile}
|
|
||||||
return 1
|
|
||||||
else
|
|
||||||
command_args="-u -x ${command_args}"
|
|
||||||
echo "OK"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
nagios_checkconfig() {
|
|
||||||
echo -n "Performing sanity check of nagios configuration: "
|
|
||||||
${command} -v ${nagios_configfile} 2>&1 >/dev/null
|
|
||||||
if [ $? != 0 ]; then
|
|
||||||
echo "FAILED"
|
|
||||||
${command} -v ${nagios_configfile}
|
|
||||||
return 1
|
|
||||||
else
|
|
||||||
echo "OK"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
reload_precmd() {
|
|
||||||
if ! nagios_checkconfig; then
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! nagios_cacheconfig; then
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
start_precmd() {
|
|
||||||
if ! nagios_checkconfig; then
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! nagios_cacheconfig; then
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
su -m "${nagios_user}" -c "touch \"%%NAGIOSDIR%%/nagios.log\" \"%%NAGIOSDIR%%/status.sav\""
|
|
||||||
rm -f "%%NAGIOSDIR%%/rw/nagios.cmd"
|
|
||||||
}
|
|
||||||
|
|
||||||
stop_postcmd() {
|
|
||||||
rm -f "%%NAGIOSDIR%%/nagios.tmp" "%%NAGIOSDIR%%/rw/nagios.cmd"
|
|
||||||
}
|
|
||||||
|
|
||||||
run_rc_command "$1"
|
|
||||||
@ -1,32 +0,0 @@
|
|||||||
--- ./include/downtime.h.orig 2013-08-30 19:46:14.000000000 +0200
|
|
||||||
+++ ./include/downtime.h 2014-04-18 10:49:26.000000000 +0200
|
|
||||||
@@ -39,24 +39,26 @@
|
|
||||||
char *service_description;
|
|
||||||
time_t entry_time;
|
|
||||||
time_t start_time;
|
|
||||||
- time_t flex_downtime_start; /* Time the flexible downtime started */
|
|
||||||
time_t end_time;
|
|
||||||
int fixed;
|
|
||||||
unsigned long triggered_by;
|
|
||||||
unsigned long duration;
|
|
||||||
unsigned long downtime_id;
|
|
||||||
- int is_in_effect;
|
|
||||||
- int start_notification_sent;
|
|
||||||
char *author;
|
|
||||||
char *comment;
|
|
||||||
#ifdef NSCORE
|
|
||||||
unsigned long comment_id;
|
|
||||||
+#endif
|
|
||||||
+ int is_in_effect;
|
|
||||||
+#ifdef NSCORE
|
|
||||||
int start_flex_downtime;
|
|
||||||
int incremented_pending_downtime;
|
|
||||||
// int start_event;
|
|
||||||
// int stop_event;
|
|
||||||
#endif
|
|
||||||
struct scheduled_downtime_struct *next;
|
|
||||||
+ time_t flex_downtime_start; /* Time the flexible downtime started */
|
|
||||||
+ int start_notification_sent;
|
|
||||||
} scheduled_downtime;
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,66 +0,0 @@
|
|||||||
--- ./Makefile.in.orig 2013-08-30 19:46:14.000000000 +0200
|
|
||||||
+++ ./Makefile.in 2014-01-14 13:57:06.000000000 +0100
|
|
||||||
@@ -30,8 +30,6 @@
|
|
||||||
LIBEXECDIR=@libexecdir@
|
|
||||||
HTMLDIR=@datadir@
|
|
||||||
INSTALL=@INSTALL@
|
|
||||||
-INSTALL_OPTS=@INSTALL_OPTS@
|
|
||||||
-COMMAND_OPTS=@COMMAND_OPTS@
|
|
||||||
HTTPD_CONF=@HTTPD_CONF@
|
|
||||||
INIT_DIR=@init_dir@
|
|
||||||
INIT_OPTS=-o root -g root
|
|
||||||
@@ -234,12 +232,12 @@
|
|
||||||
$(MAKE) install-basic
|
|
||||||
|
|
||||||
install-basic:
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LIBEXECDIR)
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(LIBEXECDIR)
|
|
||||||
$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)
|
|
||||||
$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)/archives
|
|
||||||
$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CHECKRESULTDIR)
|
|
||||||
if [ $(INSTALLPERLSTUFF) = yes ]; then \
|
|
||||||
- $(INSTALL) -m 664 $(INSTALL_OPTS) p1.pl $(DESTDIR)$(BINDIR); \
|
|
||||||
+ $(INSTALL) -m 644 $(INSTALL_OPTS) p1.pl $(DESTDIR)$(BINDIR); \
|
|
||||||
fi;
|
|
||||||
|
|
||||||
@echo ""
|
|
||||||
@@ -261,19 +259,18 @@
|
|
||||||
|
|
||||||
|
|
||||||
install-config:
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)/objects
|
|
||||||
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/nagios.cfg $(DESTDIR)$(CFGDIR)/nagios.cfg
|
|
||||||
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/cgi.cfg $(DESTDIR)$(CFGDIR)/cgi.cfg
|
|
||||||
- $(INSTALL) -b -m 660 $(INSTALL_OPTS) sample-config/resource.cfg $(DESTDIR)$(CFGDIR)/resource.cfg
|
|
||||||
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/templates.cfg $(DESTDIR)$(CFGDIR)/objects/templates.cfg
|
|
||||||
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/commands.cfg $(DESTDIR)$(CFGDIR)/objects/commands.cfg
|
|
||||||
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/contacts.cfg $(DESTDIR)$(CFGDIR)/objects/contacts.cfg
|
|
||||||
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/timeperiods.cfg $(DESTDIR)$(CFGDIR)/objects/timeperiods.cfg
|
|
||||||
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/localhost.cfg $(DESTDIR)$(CFGDIR)/objects/localhost.cfg
|
|
||||||
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/windows.cfg $(DESTDIR)$(CFGDIR)/objects/windows.cfg
|
|
||||||
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/printer.cfg $(DESTDIR)$(CFGDIR)/objects/printer.cfg
|
|
||||||
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/switch.cfg $(DESTDIR)$(CFGDIR)/objects/switch.cfg
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)/objects
|
|
||||||
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/nagios.cfg $(DESTDIR)$(CFGDIR)/nagios.cfg-sample
|
|
||||||
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/cgi.cfg $(DESTDIR)$(CFGDIR)/cgi.cfg-sample
|
|
||||||
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/resource.cfg $(DESTDIR)$(CFGDIR)/resource.cfg-sample
|
|
||||||
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/templates.cfg $(DESTDIR)$(CFGDIR)/objects/templates.cfg-sample
|
|
||||||
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/commands.cfg $(DESTDIR)$(CFGDIR)/objects/commands.cfg-sample
|
|
||||||
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/contacts.cfg $(DESTDIR)$(CFGDIR)/objects/contacts.cfg-sample
|
|
||||||
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/timeperiods.cfg $(DESTDIR)$(CFGDIR)/objects/timeperiods.cfg-sample
|
|
||||||
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/localhost.cfg $(DESTDIR)$(CFGDIR)/objects/localhost.cfg-sample
|
|
||||||
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/printer.cfg $(DESTDIR)$(CFGDIR)/objects/printer.cfg-sample
|
|
||||||
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/switch.cfg $(DESTDIR)$(CFGDIR)/objects/switch.cfg-sample
|
|
||||||
|
|
||||||
@echo ""
|
|
||||||
@echo "*** Config files installed ***"
|
|
||||||
@@ -321,7 +318,6 @@
|
|
||||||
|
|
||||||
install-commandmode:
|
|
||||||
$(INSTALL) -m 775 $(COMMAND_OPTS) -d $(DESTDIR)$(LOGDIR)/rw
|
|
||||||
- chmod g+s $(DESTDIR)$(LOGDIR)/rw
|
|
||||||
|
|
||||||
@echo ""
|
|
||||||
@echo "*** External command directory configured ***"
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
--- ./base/Makefile.in.orig 2013-08-30 19:46:14.000000000 +0200
|
|
||||||
+++ ./base/Makefile.in 2014-01-14 13:57:06.000000000 +0100
|
|
||||||
@@ -39,8 +39,6 @@
|
|
||||||
CGIDIR=@sbindir@
|
|
||||||
HTMLDIR=@datarootdir@
|
|
||||||
INSTALL=@INSTALL@
|
|
||||||
-INSTALL_OPTS=@INSTALL_OPTS@
|
|
||||||
-COMMAND_OPTS=@COMMAND_OPTS@
|
|
||||||
STRIP=@STRIP@
|
|
||||||
|
|
||||||
CGIURL=@cgiurl@
|
|
||||||
@@ -204,9 +202,9 @@
|
|
||||||
$(MAKE) install-basic
|
|
||||||
|
|
||||||
install-basic:
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
|
|
||||||
- $(INSTALL) -m 774 $(INSTALL_OPTS) @nagios_name@ $(DESTDIR)$(BINDIR)
|
|
||||||
- $(INSTALL) -m 774 $(INSTALL_OPTS) @nagiostats_name@ $(DESTDIR)$(BINDIR)
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) @nagios_name@ $(DESTDIR)$(BINDIR)
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) @nagiostats_name@ $(DESTDIR)$(BINDIR)
|
|
||||||
|
|
||||||
strip-post-install:
|
|
||||||
$(STRIP) $(DESTDIR)$(BINDIR)/@nagios_name@
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
--- ./cgi/Makefile.in.orig 2013-08-30 19:46:14.000000000 +0200
|
|
||||||
+++ ./cgi/Makefile.in 2014-01-14 13:57:06.000000000 +0100
|
|
||||||
@@ -18,8 +18,6 @@
|
|
||||||
CGIDIR=@sbindir@
|
|
||||||
HTMLDIR=@datarootdir@
|
|
||||||
INSTALL=@INSTALL@
|
|
||||||
-INSTALL_OPTS=@INSTALL_OPTS@
|
|
||||||
-COMMAND_OPTS=@COMMAND_OPTS@
|
|
||||||
STRIP=@STRIP@
|
|
||||||
|
|
||||||
CGIEXTRAS=@CGIEXTRAS@
|
|
||||||
@@ -201,9 +199,9 @@
|
|
||||||
$(MAKE) install-basic
|
|
||||||
|
|
||||||
install-basic:
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CGIDIR)
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(CGIDIR)
|
|
||||||
for file in *.cgi; do \
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) $$file $(DESTDIR)$(CGIDIR); \
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) $$file $(DESTDIR)$(CGIDIR); \
|
|
||||||
done
|
|
||||||
|
|
||||||
strip-post-install:
|
|
||||||
@ -1,25 +0,0 @@
|
|||||||
--- ./contrib/Makefile.in.orig 2013-08-30 19:46:14.000000000 +0200
|
|
||||||
+++ ./contrib/Makefile.in 2014-01-14 13:57:06.000000000 +0100
|
|
||||||
@@ -16,7 +16,6 @@
|
|
||||||
# Generated automatically from configure script
|
|
||||||
SNPRINTF_O=@SNPRINTF_O@
|
|
||||||
INSTALL=@INSTALL@
|
|
||||||
-INSTALL_OPTS=@INSTALL_OPTS@
|
|
||||||
|
|
||||||
|
|
||||||
prefix=@prefix@
|
|
||||||
@@ -51,10 +50,10 @@
|
|
||||||
devclean: distclean
|
|
||||||
|
|
||||||
install:
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CGIDIR)
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
|
|
||||||
- for f in $(CGIS); do $(INSTALL) -m 775 $(INSTALL_OPTS) $$f $(DESTDIR)$(CGIDIR); done
|
|
||||||
- for f in $(UTILS); do $(INSTALL) -m 775 $(INSTALL_OPTS) $$f $(DESTDIR)$(BINDIR); done
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(CGIDIR)
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
|
|
||||||
+ for f in $(CGIS); do $(INSTALL) -m 755 $(INSTALL_OPTS) $$f $(DESTDIR)$(CGIDIR); done
|
|
||||||
+ for f in $(UTILS); do $(INSTALL) -m 755 $(INSTALL_OPTS) $$f $(DESTDIR)$(BINDIR); done
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# rules and dependencies for actual target programs
|
|
||||||
@ -1,175 +0,0 @@
|
|||||||
commit d97e03f32741a7d851826b03ed73ff4c9612a866
|
|
||||||
Author: Eric Stanley <estanley@nagios.com>
|
|
||||||
Date: 2013-12-20 13:14:30 -0600
|
|
||||||
|
|
||||||
CGIs: Fixed minor vulnerability where a custom query could crash the CGI.
|
|
||||||
|
|
||||||
Most CGIs previously incremented the input variable counter twice when
|
|
||||||
it encountered a long key value. This could cause the CGI to read past
|
|
||||||
the end of the list of CGI variables. This commit removes the second
|
|
||||||
increment, removing the possibility of reading past the end of the list
|
|
||||||
of CGI variables.
|
|
||||||
|
|
||||||
diff --git ./cgi/avail.c ./cgi/avail.c
|
|
||||||
index 76afd86..64eaadc 100644
|
|
||||||
--- ./cgi/avail.c
|
|
||||||
+++ ./cgi/avail.c
|
|
||||||
@@ -1096,7 +1096,6 @@ int process_cgivars(void) {
|
|
||||||
|
|
||||||
/* do some basic length checking on the variable identifier to prevent buffer overflows */
|
|
||||||
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
|
|
||||||
- x++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git ./cgi/cmd.c ./cgi/cmd.c
|
|
||||||
index fa6cf5a..50504eb 100644
|
|
||||||
--- ./cgi/cmd.c
|
|
||||||
+++ ./cgi/cmd.c
|
|
||||||
@@ -311,7 +311,6 @@ int process_cgivars(void) {
|
|
||||||
|
|
||||||
/* do some basic length checking on the variable identifier to prevent buffer overflows */
|
|
||||||
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
|
|
||||||
- x++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git ./cgi/config.c ./cgi/config.c
|
|
||||||
index f061b0f..3360e70 100644
|
|
||||||
--- ./cgi/config.c
|
|
||||||
+++ ./cgi/config.c
|
|
||||||
@@ -344,7 +344,6 @@ int process_cgivars(void) {
|
|
||||||
|
|
||||||
/* do some basic length checking on the variable identifier to prevent buffer overflows */
|
|
||||||
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
|
|
||||||
- x++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git ./cgi/extinfo.c ./cgi/extinfo.c
|
|
||||||
index 62a1b18..5113df4 100644
|
|
||||||
--- ./cgi/extinfo.c
|
|
||||||
+++ ./cgi/extinfo.c
|
|
||||||
@@ -591,7 +591,6 @@ int process_cgivars(void) {
|
|
||||||
|
|
||||||
/* do some basic length checking on the variable identifier to prevent buffer overflows */
|
|
||||||
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
|
|
||||||
- x++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git ./cgi/histogram.c ./cgi/histogram.c
|
|
||||||
index 4616541..f6934d0 100644
|
|
||||||
--- ./cgi/histogram.c
|
|
||||||
+++ ./cgi/histogram.c
|
|
||||||
@@ -1060,7 +1060,6 @@ int process_cgivars(void) {
|
|
||||||
|
|
||||||
/* do some basic length checking on the variable identifier to prevent buffer overflows */
|
|
||||||
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
|
|
||||||
- x++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git ./cgi/notifications.c ./cgi/notifications.c
|
|
||||||
index 8ba11c1..461ae84 100644
|
|
||||||
--- ./cgi/notifications.c
|
|
||||||
+++ ./cgi/notifications.c
|
|
||||||
@@ -327,7 +327,6 @@ int process_cgivars(void) {
|
|
||||||
|
|
||||||
/* do some basic length checking on the variable identifier to prevent buffer overflows */
|
|
||||||
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
|
|
||||||
- x++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git ./cgi/outages.c ./cgi/outages.c
|
|
||||||
index 426ede6..cb58dee 100644
|
|
||||||
--- ./cgi/outages.c
|
|
||||||
+++ ./cgi/outages.c
|
|
||||||
@@ -225,7 +225,6 @@ int process_cgivars(void) {
|
|
||||||
|
|
||||||
/* do some basic length checking on the variable identifier to prevent buffer overflows */
|
|
||||||
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
|
|
||||||
- x++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git ./cgi/status.c ./cgi/status.c
|
|
||||||
index 3253340..4ec1c92 100644
|
|
||||||
--- ./cgi/status.c
|
|
||||||
+++ ./cgi/status.c
|
|
||||||
@@ -567,7 +567,6 @@ int process_cgivars(void) {
|
|
||||||
|
|
||||||
/* do some basic length checking on the variable identifier to prevent buffer overflows */
|
|
||||||
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
|
|
||||||
- x++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git ./cgi/statusmap.c ./cgi/statusmap.c
|
|
||||||
index ea48368..2580ae5 100644
|
|
||||||
--- ./cgi/statusmap.c
|
|
||||||
+++ ./cgi/statusmap.c
|
|
||||||
@@ -400,7 +400,6 @@ int process_cgivars(void) {
|
|
||||||
|
|
||||||
/* do some basic length checking on the variable identifier to prevent buffer overflows */
|
|
||||||
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
|
|
||||||
- x++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git ./cgi/statuswml.c ./cgi/statuswml.c
|
|
||||||
index bd8cea2..d25abef 100644
|
|
||||||
--- ./cgi/statuswml.c
|
|
||||||
+++ ./cgi/statuswml.c
|
|
||||||
@@ -226,8 +226,13 @@ int process_cgivars(void) {
|
|
||||||
|
|
||||||
for(x = 0; variables[x] != NULL; x++) {
|
|
||||||
|
|
||||||
+ /* do some basic length checking on the variable identifier to prevent buffer overflows */
|
|
||||||
+ if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
|
|
||||||
+ continue;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
/* we found the hostgroup argument */
|
|
||||||
- if(!strcmp(variables[x], "hostgroup")) {
|
|
||||||
+ else if(!strcmp(variables[x], "hostgroup")) {
|
|
||||||
display_type = DISPLAY_HOSTGROUP;
|
|
||||||
x++;
|
|
||||||
if(variables[x] == NULL) {
|
|
||||||
diff --git ./cgi/summary.c ./cgi/summary.c
|
|
||||||
index 126ce5e..749a02c 100644
|
|
||||||
--- ./cgi/summary.c
|
|
||||||
+++ ./cgi/summary.c
|
|
||||||
@@ -725,7 +725,6 @@ int process_cgivars(void) {
|
|
||||||
|
|
||||||
/* do some basic length checking on the variable identifier to prevent buffer overflows */
|
|
||||||
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
|
|
||||||
- x++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git ./cgi/trends.c ./cgi/trends.c
|
|
||||||
index b35c18e..895db01 100644
|
|
||||||
--- ./cgi/trends.c
|
|
||||||
+++ ./cgi/trends.c
|
|
||||||
@@ -1263,7 +1263,6 @@ int process_cgivars(void) {
|
|
||||||
|
|
||||||
/* do some basic length checking on the variable identifier to prevent buffer overflows */
|
|
||||||
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
|
|
||||||
- x++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git ./contrib/daemonchk.c ./contrib/daemonchk.c
|
|
||||||
index 78716e5..9bb6c4b 100644
|
|
||||||
--- ./contrib/daemonchk.c
|
|
||||||
+++ ./contrib/daemonchk.c
|
|
||||||
@@ -174,7 +174,6 @@ static int process_cgivars(void) {
|
|
||||||
|
|
||||||
/* do some basic length checking on the variable identifier to prevent buffer overflows */
|
|
||||||
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
|
|
||||||
- x++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,97 +0,0 @@
|
|||||||
--- html/Makefile.in.orig 2013-08-30 17:46:14 UTC
|
|
||||||
+++ html/Makefile.in
|
|
||||||
@@ -10,8 +10,6 @@ BINDIR=@bindir@
|
|
||||||
CGIDIR=@sbindir@
|
|
||||||
HTMLDIR=@datadir@
|
|
||||||
INSTALL=@INSTALL@
|
|
||||||
-INSTALL_OPTS=@INSTALL_OPTS@
|
|
||||||
-COMMAND_OPTS=@COMMAND_OPTS@
|
|
||||||
|
|
||||||
CP=@CP@
|
|
||||||
|
|
||||||
@@ -34,55 +32,55 @@ distclean: clean
|
|
||||||
devclean: distclean
|
|
||||||
|
|
||||||
install:
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/media
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/stylesheets
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/contexthelp
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/images
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/js
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images/logos
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/includes
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/includes/rss
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/includes/rss/extlib
|
|
||||||
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/ssi
|
|
||||||
- $(INSTALL) -m 664 $(INSTALL_OPTS) robots.txt $(DESTDIR)$(HTMLDIR)
|
|
||||||
-# $(INSTALL) -m 664 $(INSTALL_OPTS) docs/robots.txt $(DESTDIR)$(HTMLDIR)/docs
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)
|
|
||||||
+# $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/media
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/stylesheets
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/contexthelp
|
|
||||||
+# $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs
|
|
||||||
+# $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/images
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/js
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images/logos
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/includes
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/includes/rss
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/includes/rss/extlib
|
|
||||||
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/ssi
|
|
||||||
+ $(INSTALL) -m 644 $(INSTALL_OPTS) robots.txt $(DESTDIR)$(HTMLDIR)
|
|
||||||
+# $(INSTALL) -m 644 $(INSTALL_OPTS) docs/robots.txt $(DESTDIR)$(HTMLDIR)/docs
|
|
||||||
# Remove old HTML files (PHP files are used now)
|
|
||||||
rm -f $(DESTDIR)$(HTMLDIR)/index.html
|
|
||||||
rm -f $(DESTDIR)$(HTMLDIR)/main.html
|
|
||||||
rm -f $(DESTDIR)$(HTMLDIR)/side.html
|
|
||||||
for file in *.php; \
|
|
||||||
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR); done
|
|
||||||
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR); done
|
|
||||||
# for file in media/*.wav; \
|
|
||||||
-# do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/media; done
|
|
||||||
+# do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/media; done
|
|
||||||
for file in stylesheets/*.css; \
|
|
||||||
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done
|
|
||||||
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done
|
|
||||||
for file in contexthelp/*.html; \
|
|
||||||
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/contexthelp; done
|
|
||||||
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/contexthelp; done
|
|
||||||
for file in js/*.js; \
|
|
||||||
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/js; done
|
|
||||||
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/js; done
|
|
||||||
# for file in docs/*.html; \
|
|
||||||
-# do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs; done
|
|
||||||
+# do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs; done
|
|
||||||
# for file in docs/images/*.*; \
|
|
||||||
-# do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/images; done
|
|
||||||
+# do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/images; done
|
|
||||||
for file in images/*.gif; \
|
|
||||||
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
|
|
||||||
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
|
|
||||||
for file in images/*.jpg; \
|
|
||||||
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
|
|
||||||
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
|
|
||||||
for file in images/*.png; \
|
|
||||||
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
|
|
||||||
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
|
|
||||||
for file in images/*.ico; \
|
|
||||||
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
|
|
||||||
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
|
|
||||||
for file in images/logos/*.*; \
|
|
||||||
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done
|
|
||||||
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done
|
|
||||||
for file in includes/*.*; \
|
|
||||||
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes; done
|
|
||||||
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes; done
|
|
||||||
for file in includes/rss/*.*; \
|
|
||||||
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes/rss; done
|
|
||||||
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes/rss; done
|
|
||||||
for file in includes/rss/extlib/*.*; \
|
|
||||||
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes/rss/extlib; done
|
|
||||||
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes/rss/extlib; done
|
|
||||||
|
|
||||||
install-unstripped:
|
|
||||||
$(MAKE) install
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
--- ./html/index.php.orig 2013-08-30 19:46:14.000000000 +0200
|
|
||||||
+++ ./html/index.php 2014-01-14 13:57:06.000000000 +0100
|
|
||||||
@@ -8,8 +8,9 @@
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
+include_once(dirname(__FILE__).'/includes/utils.inc.php');
|
|
||||||
// allow specifying main window URL for permalinks, etc.
|
|
||||||
-$corewindow="main.php";
|
|
||||||
+$corewindow=$cfg["cgi_base_url"]."/tac.cgi";
|
|
||||||
if(isset($_GET['corewindow'])){
|
|
||||||
|
|
||||||
// default window url may have been overridden with a permalink...
|
|
||||||
@ -1,39 +0,0 @@
|
|||||||
--- ./html/main.php.orig 2013-08-30 19:46:14.000000000 +0200
|
|
||||||
+++ ./html/main.php 2014-01-14 13:57:06.000000000 +0100
|
|
||||||
@@ -40,36 +40,10 @@
|
|
||||||
<div class="product">Nagios<sup><span style="font-size: small;">®</span></sup> Core<sup><span style="font-size: small;">™</span></sup></div>
|
|
||||||
<div class="version">Version 3.5.1</div>
|
|
||||||
<div class="releasedate">August 30, 2013</div>
|
|
||||||
-<div class="checkforupdates"><a href="http://www.nagios.org/checkforupdates/?version=3.5.1&product=nagioscore" target="_blank">Check for updates</a></div>
|
|
||||||
<!--<div class="whatsnew"><a href="http://go.nagios.com/nagioscore/whatsnew">Read what's new in Nagios Core 3</a></div>-->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
-<div id="updateversioninfo">
|
|
||||||
-<?php
|
|
||||||
- $updateinfo=get_update_information();
|
|
||||||
- //print_r($updateinfo);
|
|
||||||
- //$updateinfo['update_checks_enabled']=false;
|
|
||||||
- //$updateinfo['update_available']=true;
|
|
||||||
- if($updateinfo['update_checks_enabled']==false){
|
|
||||||
-?>
|
|
||||||
- <div class="updatechecksdisabled">
|
|
||||||
- <div class="warningmessage">Warning: Automatic Update Checks are Disabled!</div>
|
|
||||||
- <div class="submessage">Disabling update checks presents a possible security risk. Visit <a href="http://www.nagios.org/" target="_blank">nagios.org</a> to check for updates manually or enable update checks in your Nagios config file.</a></div>
|
|
||||||
- </div>
|
|
||||||
-<?php
|
|
||||||
- }
|
|
||||||
- else if($updateinfo['update_available']==true && $this_version!=$updateinfo['update_version']){
|
|
||||||
-?>
|
|
||||||
- <div class="updateavailable">
|
|
||||||
- <div class="updatemessage">A new version of Nagios Core is available!</div>
|
|
||||||
- <div class="submessage">Visit <a href="http://www.nagios.org/download/" target="_blank">nagios.org</a> to download Nagios <?php echo $updateinfo['update_version'];?>.</div>
|
|
||||||
- </div>
|
|
||||||
-<?php
|
|
||||||
- }
|
|
||||||
-?>
|
|
||||||
-</div>
|
|
||||||
-
|
|
||||||
|
|
||||||
|
|
||||||
<div id="splashboxes">
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- html/includes/rss/rss_parse.inc.orig 2017-12-21 16:55:41.032397000 +0100
|
|
||||||
+++ html/includes/rss/rss_parse.inc 2017-12-21 16:57:40.079068000 +0100
|
|
||||||
@@ -150,7 +150,7 @@
|
|
||||||
// check for a namespace, and split if found
|
|
||||||
$ns = false;
|
|
||||||
if ( strpos( $element, ':' ) ) {
|
|
||||||
- list($ns, $el) = split( ':', $element, 2);
|
|
||||||
+ list($ns, $el) = explode( ':', $element, 2);
|
|
||||||
}
|
|
||||||
if ( $ns and $ns != 'rdf' ) {
|
|
||||||
$this->current_namespace = $ns;
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- ./include/locations.h.in.orig 2013-08-30 19:46:14.000000000 +0200
|
|
||||||
+++ ./include/locations.h.in 2014-01-14 13:57:06.000000000 +0100
|
|
||||||
@@ -20,7 +20,7 @@
|
|
||||||
|
|
||||||
#define DEFAULT_TEMP_FILE "@localstatedir@/tempfile"
|
|
||||||
#define DEFAULT_TEMP_PATH "/tmp"
|
|
||||||
-#define DEFAULT_CHECK_RESULT_PATH "@localstatedir@/spool/checkresults"
|
|
||||||
+#define DEFAULT_CHECK_RESULT_PATH "@localstatedir@/checkresults"
|
|
||||||
#define DEFAULT_STATUS_FILE "@localstatedir@/status.dat"
|
|
||||||
#define DEFAULT_LOG_FILE "@localstatedir@/nagios.log"
|
|
||||||
#define DEFAULT_LOG_ARCHIVE_PATH "@localstatedir@/archives/"
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- ./sample-config/cgi.cfg.in.orig 2013-08-30 19:46:14.000000000 +0200
|
|
||||||
+++ ./sample-config/cgi.cfg.in 2014-01-14 13:57:06.000000000 +0100
|
|
||||||
@@ -264,7 +264,7 @@
|
|
||||||
# OS and distribution, so you may have to tweak this to
|
|
||||||
# work on your system.
|
|
||||||
|
|
||||||
-ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
|
|
||||||
+ping_syntax=/sbin/ping -n -c 5 $HOSTADDRESS$
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- ./sample-config/nagios.cfg.in.orig 2013-08-30 19:46:14.000000000 +0200
|
|
||||||
+++ ./sample-config/nagios.cfg.in 2014-01-14 13:57:06.000000000 +0100
|
|
||||||
@@ -32,7 +32,7 @@
|
|
||||||
cfg_file=@sysconfdir@/objects/timeperiods.cfg
|
|
||||||
cfg_file=@sysconfdir@/objects/templates.cfg
|
|
||||||
|
|
||||||
-# Definitions for monitoring the local (Linux) host
|
|
||||||
+# Definitions for monitoring the local (FreeBSD) host
|
|
||||||
cfg_file=@sysconfdir@/objects/localhost.cfg
|
|
||||||
|
|
||||||
# Definitions for monitoring a Windows machine
|
|
||||||
@ -1,40 +0,0 @@
|
|||||||
--- ./sample-config/template-object/localhost.cfg.in.orig 2013-08-30 19:46:14.000000000 +0200
|
|
||||||
+++ ./sample-config/template-object/localhost.cfg.in 2014-01-14 13:57:06.000000000 +0100
|
|
||||||
@@ -5,7 +5,7 @@
|
|
||||||
#
|
|
||||||
# NOTE: This config file is intended to serve as an *extremely* simple
|
|
||||||
# example of how you can create configuration entries to monitor
|
|
||||||
-# the local (Linux) machine.
|
|
||||||
+# the local (FreeBSD) machine.
|
|
||||||
#
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
@@ -23,9 +23,9 @@
|
|
||||||
# Define a host for the local machine
|
|
||||||
|
|
||||||
define host{
|
|
||||||
- use linux-server ; Name of host template to use
|
|
||||||
+ use freebsd-server ; Name of host template to use
|
|
||||||
; This host definition will inherit all variables that are defined
|
|
||||||
- ; in (or inherited by) the linux-server host template definition.
|
|
||||||
+ ; in (or inherited by) the freebsd-server host template definition.
|
|
||||||
host_name localhost
|
|
||||||
alias localhost
|
|
||||||
address 127.0.0.1
|
|
||||||
@@ -41,12 +41,12 @@
|
|
||||||
###############################################################################
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
-# Define an optional hostgroup for Linux machines
|
|
||||||
+# Define an optional hostgroup for FreeBSD machines
|
|
||||||
|
|
||||||
define hostgroup{
|
|
||||||
- hostgroup_name linux-servers ; The name of the hostgroup
|
|
||||||
- alias Linux Servers ; Long name of the group
|
|
||||||
- members localhost ; Comma separated list of hosts that belong to this group
|
|
||||||
+ hostgroup_name freebsd-servers ; The name of the hostgroup
|
|
||||||
+ alias FreeBSD Servers ; Long name of the group
|
|
||||||
+ members localhost ; Comma separated list of hosts that belong to this group
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
--- ./sample-config/template-object/templates.cfg.in.orig 2013-08-30 19:46:14.000000000 +0200
|
|
||||||
+++ ./sample-config/template-object/templates.cfg.in 2014-01-14 13:57:06.000000000 +0100
|
|
||||||
@@ -63,17 +63,17 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-# Linux host definition template - This is NOT a real host, just a template!
|
|
||||||
+# FreeBSD host definition template - This is NOT a real host, just a template!
|
|
||||||
|
|
||||||
define host{
|
|
||||||
- name linux-server ; The name of this host template
|
|
||||||
+ name freebsd-server ; The name of this host template
|
|
||||||
use generic-host ; This template inherits other values from the generic-host template
|
|
||||||
- check_period 24x7 ; By default, Linux hosts are checked round the clock
|
|
||||||
+ check_period 24x7 ; By default, FreeBSD hosts are checked round the clock
|
|
||||||
check_interval 5 ; Actively check the host every 5 minutes
|
|
||||||
retry_interval 1 ; Schedule host check retries at 1 minute intervals
|
|
||||||
- max_check_attempts 10 ; Check each Linux host 10 times (max)
|
|
||||||
- check_command check-host-alive ; Default command to check Linux hosts
|
|
||||||
- notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day
|
|
||||||
+ max_check_attempts 10 ; Check each FreeBSD host 10 times (max)
|
|
||||||
+ check_command check-host-alive ; Default command to check FreeBSD hosts
|
|
||||||
+ notification_period workhours ; FreeBSD admins hate to be woken up, so we only notify during the day
|
|
||||||
; Note that the notification_period variable is being overridden from
|
|
||||||
; the value that is inherited from the generic-host template!
|
|
||||||
notification_interval 120 ; Resend notifications every 2 hours
|
|
||||||
@ -1,34 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
message: <<EOT
|
|
||||||
Enable Nagios in /etc/rc.conf with the following line:
|
|
||||||
|
|
||||||
nagios_enable="YES"
|
|
||||||
|
|
||||||
Configuration templates are available in %%PREFIX%%/etc/nagios as
|
|
||||||
*.cfg-sample files. Copy them to *.cfg files where required and
|
|
||||||
edit to suit your needs.
|
|
||||||
|
|
||||||
If you don't already have a web server running, you will need to
|
|
||||||
install and configure one to finish off your Nagios installation.
|
|
||||||
When used with Apache, the following should be sufficient to publish
|
|
||||||
the web component of Nagios (modify the allow list to suit):
|
|
||||||
|
|
||||||
<Directory %%PREFIX%%/%%NAGIOSWWWDIR%%>
|
|
||||||
Order deny,allow
|
|
||||||
Deny from all
|
|
||||||
Allow from 127.0.0.1
|
|
||||||
php_flag engine on
|
|
||||||
php_admin_value open_basedir %%PREFIX%%/%%NAGIOSWWWDIR%%/:%%NAGIOSDIR%%/
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory %%PREFIX%%/%%NAGIOSWWWDIR%%/cgi-bin>
|
|
||||||
Options ExecCGI
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
ScriptAlias %%NAGIOSCGIURL%%/ %%PREFIX%%/%%NAGIOSWWWDIR%%/cgi-bin/
|
|
||||||
Alias %%NAGIOSHTMURL%%/ %%PREFIX%%/%%NAGIOSWWWDIR%%/
|
|
||||||
EOT
|
|
||||||
type: install
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
Nagios is a host and service monitor designed to inform you of network
|
|
||||||
problems before your clients, end-users or managers do. The monitoring
|
|
||||||
daemon runs intermittent checks on hosts and services you specify
|
|
||||||
using external "plugins" which return status information to Nagios.
|
|
||||||
When problems are encountered, the daemon can send notifications out
|
|
||||||
to administrative contacts in a variety of different ways (email,
|
|
||||||
instant message, SMS, etc.). Current status information, historical
|
|
||||||
logs, and reports can all be accessed via a web browser.
|
|
||||||
@ -1,383 +0,0 @@
|
|||||||
bin/nagios
|
|
||||||
bin/nagiostats
|
|
||||||
%%EMBEDDED_PERL%%bin/p1.pl
|
|
||||||
etc/nagios/cgi.cfg-sample
|
|
||||||
etc/nagios/nagios.cfg-sample
|
|
||||||
etc/nagios/objects/commands.cfg-sample
|
|
||||||
etc/nagios/objects/contacts.cfg-sample
|
|
||||||
etc/nagios/objects/localhost.cfg-sample
|
|
||||||
etc/nagios/objects/printer.cfg-sample
|
|
||||||
etc/nagios/objects/switch.cfg-sample
|
|
||||||
etc/nagios/objects/templates.cfg-sample
|
|
||||||
etc/nagios/objects/timeperiods.cfg-sample
|
|
||||||
etc/nagios/resource.cfg-sample
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/avail.cgi
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/cmd.cgi
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/config.cgi
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/extinfo.cgi
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/histogram.cgi
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/history.cgi
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/notifications.cgi
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/outages.cgi
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/showlog.cgi
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/status.cgi
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/statusmap.cgi
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/statuswml.cgi
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/summary.cgi
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/tac.cgi
|
|
||||||
%%NAGIOSWWWDIR%%/cgi-bin/trends.cgi
|
|
||||||
@sample %%NAGIOSWWWDIR%%/config.inc.php.sample
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/A1.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/A2.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/A3.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/A4.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/A5.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/A6.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/A7.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/B1.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/C1.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/D1.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/E1.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/F1.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/G1.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/G2.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/G3.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/G4.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/G5.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/G6.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/H1.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/H2.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/H3.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/H4.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/H5.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/H6.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/H7.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/H8.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/I1.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/I2.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/I3.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/I4.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/I5.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/I6.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/I7.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/I8.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/I9.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/J1.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/K1.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/L1.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/L10.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/L11.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/L12.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/L13.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/L2.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/L3.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/L4.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/L5.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/L6.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/L7.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/L8.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/L9.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/M1.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/M2.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/M3.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/M4.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/M5.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/M6.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/N1.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/N2.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/N3.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/N4.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/N5.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/N6.html
|
|
||||||
%%NAGIOSWWWDIR%%/contexthelp/N7.html
|
|
||||||
%%NAGIOSWWWDIR%%/images/Nagios-clearbg.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/NagiosEnterprises-whitebg-112x46.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/ack.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/action-graph.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/action-nagios.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/action-orig.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/action.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/b_first2.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/b_last2.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/b_next2.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/b_prev2.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/command.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/comment.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/contexthelp1.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/contexthelp2.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/critical.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/delay.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/delete.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/detail.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/disabled.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/down.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/downtime.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/empty.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/enabled.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/extinfo.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/favicon.ico
|
|
||||||
%%NAGIOSWWWDIR%%/images/flapping.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/globe-support-150x150.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/graph.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/greendot.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/histogram.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/history.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/hostevent.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/info.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/left.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logofullsize.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/aix.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/aix.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/aix.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/aix.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/amiga.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/amiga.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/amiga.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/amiga.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/apple.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/apple.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/apple.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/apple.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/beos.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/beos.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/beos.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/beos.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/bluetooth.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/caldera.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/caldera.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/caldera.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/caldera.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/cat1900.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/cat2900.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/cat5000.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/database.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/database.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/debian.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/debian.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/debian.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/debian.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/desktop-server.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/desktop-server.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/ethernet_card.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/fax.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/fax.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/firewall.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/firewall.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/freebsd40.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/freebsd40.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/freebsd40.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/freebsd40.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/globe.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/graph.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/hp-printer40.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/hp-printer40.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/hp-printer40.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/hp-printer40.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/hpux.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/hpux.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/hpux.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/hpux.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/hub.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/hub.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/internet.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/internet.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/internet_device.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/ip-pbx.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/ip-pbx.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/irix.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/irix.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/irix.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/irix.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/linux40.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/linux40.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/linux40.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/linux40.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/logo.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/mac40.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/mac40.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/mac40.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/mac40.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/mainframe.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/mainframe.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/mandrake.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/mandrake.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/mandrake.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/mandrake.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/monitor.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/nagios.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/nagios.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/nagiosvrml.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/next.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/next.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/next.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/next.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/ng-switch40.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/ng-switch40.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/ng-switch40.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/ng-switch40.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/notebook.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/notebook.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/novell40.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/novell40.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/novell40.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/novell40.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/openbsd.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/openbsd.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/openbsd.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/openbsd.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/printer.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/printer.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/rack-server.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/rack-server.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/redhat.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/redhat.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/redhat.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/redhat.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/router.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/router.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/router40.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/router40.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/router40.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/router40.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/san.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/san.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/satellite.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/server.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/signal.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/slackware.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/slackware.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/slackware.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/slackware.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/stampede.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/stampede.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/stampede.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/stampede.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/station.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/storm.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/storm.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/storm.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/storm.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/sun40.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/sun40.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/sun40.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/sun40.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/sunlogo.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/sunlogo.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/sunlogo.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/sunlogo.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/switch.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/switch.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/switch40.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/switch40.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/switch40.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/switch40.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/thin-client.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/thin-client.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/turbolinux.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/turbolinux.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/turbolinux.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/turbolinux.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/ultrapenguin.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/ultrapenguin.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/ultrapenguin.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/ultrapenguin.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/unicos.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/unicos.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/unicos.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/unicos.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/unknown.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/unknown.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/webcamera.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/wifi.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/wifi.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/wifi_modem.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/win40.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/win40.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/win40.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/win40.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/workstation.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/workstation.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/workstation.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/workstation_locked.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/yellowdog.gd2
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/yellowdog.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/yellowdog.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/logos/yellowdog.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/logrotate.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/ndisabled.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/noack.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/notes.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/notify.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/orangedot.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/passiveonly.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/recovery.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/redudancy.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/redundancy.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/restart.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/right.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/sblogo.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/serviceevent.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/sflogo.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/splunk1.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/splunk2.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/start.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/status.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/status2.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/status3.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/status4.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/stop.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/tacdisabled.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/tacdisabled.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/tacenabled.jpg
|
|
||||||
%%NAGIOSWWWDIR%%/images/tacenabled.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/thermcrit.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/thermok.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/thermwarn.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/trends.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/trendshost.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/trendssvc.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/unknown.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/up.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/warning.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/weblogo1.png
|
|
||||||
%%NAGIOSWWWDIR%%/images/zoom1.gif
|
|
||||||
%%NAGIOSWWWDIR%%/images/zoom2.gif
|
|
||||||
%%NAGIOSWWWDIR%%/includes/rss/extlib/Snoopy.class.inc
|
|
||||||
%%NAGIOSWWWDIR%%/includes/rss/rss_cache.inc
|
|
||||||
%%NAGIOSWWWDIR%%/includes/rss/rss_fetch.inc
|
|
||||||
%%NAGIOSWWWDIR%%/includes/rss/rss_parse.inc
|
|
||||||
%%NAGIOSWWWDIR%%/includes/rss/rss_utils.inc
|
|
||||||
%%NAGIOSWWWDIR%%/includes/jquery-1.7.1.min.js
|
|
||||||
%%NAGIOSWWWDIR%%/includes/utils.inc.php
|
|
||||||
%%NAGIOSWWWDIR%%/index.php
|
|
||||||
%%NAGIOSWWWDIR%%/js/jquery-1.7.1.min.js
|
|
||||||
%%NAGIOSWWWDIR%%/main.php
|
|
||||||
%%NAGIOSWWWDIR%%/robots.txt
|
|
||||||
%%NAGIOSWWWDIR%%/rss-corefeed.php
|
|
||||||
%%NAGIOSWWWDIR%%/rss-newsfeed.php
|
|
||||||
%%NAGIOSWWWDIR%%/side.php
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/avail.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/checksanity.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/cmd.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/common.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/config.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/extinfo.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/histogram.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/history.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/ministatus.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/notifications.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/outages.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/showlog.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/status.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/statusmap.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/summary.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/tac.css
|
|
||||||
%%NAGIOSWWWDIR%%/stylesheets/trends.css
|
|
||||||
@dir libexec/nagios
|
|
||||||
@dir %%NAGIOSWWWDIR%%/ssi
|
|
||||||
@dir(%%NAGIOSUSER%%,%%NAGIOSGROUP%%,775) %%NAGIOSDIR%%/archives
|
|
||||||
@dir(%%NAGIOSUSER%%,%%NAGIOSGROUP%%,775) %%NAGIOSDIR%%/checkresults
|
|
||||||
@dir(%%NAGIOSUSER%%,%%WWWGRP%%,775) %%NAGIOSDIR%%/rw
|
|
||||||
@dir(%%NAGIOSUSER%%,%%NAGIOSGROUP%%,775) %%NAGIOSDIR%%
|
|
||||||
@postunexec if [ -d %%NAGIOSDIR%% ]; then echo "==> If you are permanently removing this port, you should do a ``rm -rf %%NAGIOSDIR%%`` to remove any files left behind."; fi
|
|
||||||
@postunexec if [ -d %%ETCDIR%% ]; then echo "==> If you are permanently removing this port, you should do a ``rm -rf %%ETCDIR%%`` to remove any configuration files."; fi
|
|
||||||
@ -1,40 +0,0 @@
|
|||||||
PORTNAME= akhq
|
|
||||||
DISTVERSION= 0.25.1
|
|
||||||
DISTVERSIONSUFFIX= -all
|
|
||||||
CATEGORIES= net java
|
|
||||||
MASTER_SITES= https://github.com/tchiotludo/akhq/releases/download/${PORTVERSION}/
|
|
||||||
EXTRACT_SUFX= .jar
|
|
||||||
|
|
||||||
MAINTAINER= freebsd@hackacad.net
|
|
||||||
COMMENT= AKHQ (previously known as KafkaHQ)
|
|
||||||
WWW= https://github.com/tchiotludo/akhq
|
|
||||||
|
|
||||||
LICENSE= APACHE20
|
|
||||||
|
|
||||||
USE_JAVA= yes
|
|
||||||
JAVA_VERSION= 17
|
|
||||||
|
|
||||||
NO_ARCH= yes
|
|
||||||
|
|
||||||
PLIST_FILES= ${JAVASHAREDIR}/${PORTNAME}/${PORTNAME}.jar
|
|
||||||
|
|
||||||
CONFIG_FILES= application.yml
|
|
||||||
|
|
||||||
NO_BUILD= yes
|
|
||||||
NO_EXTRACT= yes
|
|
||||||
|
|
||||||
USE_RC_SUBR= akhq
|
|
||||||
|
|
||||||
do-install:
|
|
||||||
${MKDIR} ${STAGEDIR}${PREFIX}/etc/akhq
|
|
||||||
${MKDIR} ${STAGEDIR}${JAVASHAREDIR}/${PORTNAME}
|
|
||||||
${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${STAGEDIR}${JAVASHAREDIR}/${PORTNAME}/${PORTNAME}.jar
|
|
||||||
${INSTALL_DATA} ${FILESDIR}/application.yml ${STAGEDIR}${PREFIX}/etc/akhq/application.yml.sample
|
|
||||||
${ECHO} "@sample ${PREFIX}/etc/akhq/application.yml.sample" >> ${TMPPLIST}
|
|
||||||
|
|
||||||
post-install:
|
|
||||||
@if [ ! -f ${STAGEDIR}${PREFIX}/etc/akhq/application.yml ]; then \
|
|
||||||
${CP} -p ${STAGEDIR}${PREFIX}/etc/akhq/application.yml.sample ${STAGEDIR}${PREFIX}/etc/akhq/application.yml ; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
TIMESTAMP = 1734718291
|
|
||||||
SHA256 (akhq-0.25.1-all.jar) = 5aec420df890e388ade89c6995e6ed45a37d3cb1ff22f5d9837b1156ff4eaf72
|
|
||||||
SIZE (akhq-0.25.1-all.jar) = 191995582
|
|
||||||
@ -1,40 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# PROVIDE: akhq
|
|
||||||
# REQUIRE: LOGIN
|
|
||||||
# KEYWORD: shutdown
|
|
||||||
|
|
||||||
. /etc/rc.subr
|
|
||||||
|
|
||||||
name=akhq
|
|
||||||
rcvar=akhq_enable
|
|
||||||
|
|
||||||
load_rc_config $name
|
|
||||||
|
|
||||||
: ${akhq_enable:=NO}
|
|
||||||
: ${akhq_config:=/usr/local/etc/akhq/application.yml}
|
|
||||||
: ${akhq_jar:=/usr/local/share/java/akhq/akhq.jar}
|
|
||||||
: ${akhq_java:=/usr/local/bin/java}
|
|
||||||
: ${akhq_user:=www}
|
|
||||||
: ${akhq_pidfile:=/var/run/${name}.pid}
|
|
||||||
|
|
||||||
command="/usr/sbin/daemon"
|
|
||||||
command_args="-P ${akhq_pidfile} -r -f ${akhq_java} -Dmicronaut.config.files=${akhq_config} -jar ${akhq_jar}"
|
|
||||||
|
|
||||||
start_precmd=akhq_startprecmd
|
|
||||||
|
|
||||||
akhq_startprecmd()
|
|
||||||
{
|
|
||||||
# Ensure the directory for the PID file exists
|
|
||||||
if [ ! -d $(dirname ${akhq_pidfile}) ]; then
|
|
||||||
install -d -o ${akhq_user} -m 0750 $(dirname ${akhq_pidfile})
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Ensure the PID file exists with the right permissions
|
|
||||||
if [ ! -e "${akhq_pidfile}" ]; then
|
|
||||||
install -m 0600 -o ${akhq_user} /dev/null ${akhq_pidfile}
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
run_rc_command "$1"
|
|
||||||
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
akhq:
|
|
||||||
connections:
|
|
||||||
local:
|
|
||||||
properties:
|
|
||||||
bootstrap.servers: "localhost:9092"
|
|
||||||
micronaut:
|
|
||||||
server:
|
|
||||||
port: 8080
|
|
||||||
host: "0.0.0.0"
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
Kafka GUI for Apache Kafka to manage topics, topics data,
|
|
||||||
consumers group, schema registry, connect and more...
|
|
||||||
@ -1,55 +0,0 @@
|
|||||||
PORTNAME= freeipa-client
|
|
||||||
DISTVERSION= 4.12.2
|
|
||||||
PORTREVISION= 2
|
|
||||||
CATEGORIES= net
|
|
||||||
MASTER_SITES= https://releases.pagure.org/freeipa/
|
|
||||||
DISTNAME= freeipa-${DISTVERSION}
|
|
||||||
|
|
||||||
MAINTAINER= kiwi@oav.net
|
|
||||||
COMMENT= FreeIPA Client tools
|
|
||||||
WWW= https://www.freeipa.org/
|
|
||||||
|
|
||||||
LICENSE= GPLv3+
|
|
||||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
||||||
|
|
||||||
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
|
|
||||||
${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR}
|
|
||||||
|
|
||||||
LIB_DEPENDS= libcmocka.so:sysutils/cmocka \
|
|
||||||
libcurl.so:ftp/curl \
|
|
||||||
libini_config.so:devel/ding-libs \
|
|
||||||
libjansson.so:devel/jansson \
|
|
||||||
libnspr4.so:devel/nspr \
|
|
||||||
libnss3.so:security/nss \
|
|
||||||
libpopt.so:devel/popt \
|
|
||||||
libpwquality.so:security/libpwquality \
|
|
||||||
libsasl2.so:security/cyrus-sasl2 \
|
|
||||||
libxmlrpc.so:net/xmlrpc-c
|
|
||||||
|
|
||||||
USES= autoreconf gettext gmake gssapi:mit ldap libtool \
|
|
||||||
localbase:ldflags pkgconfig python
|
|
||||||
|
|
||||||
GNU_CONFIGURE= yes
|
|
||||||
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
|
|
||||||
CONFIGURE_ARGS= --disable-dependency-tracking \
|
|
||||||
--disable-server \
|
|
||||||
--with-ipaplatform=freebsd \
|
|
||||||
--without-ipatests \
|
|
||||||
--without-server
|
|
||||||
|
|
||||||
# Don't bytecode python files
|
|
||||||
MAKE_ENV= PYTHONDONTWRITEBYTECODE=1
|
|
||||||
|
|
||||||
# Remove all systemd dependant things
|
|
||||||
EXTRACT_AFTER_ARGS= --exclude client/systemd --exclude daemons/dnssec \
|
|
||||||
--exclude daemons/ipa-otpd --exclude \
|
|
||||||
daemons/ipa-slapi-plugins --exclude init/systemd \
|
|
||||||
--exclude init/tmpfilesd
|
|
||||||
|
|
||||||
PLIST_SUB= DISTVERSION=${DISTVERSION}
|
|
||||||
|
|
||||||
# Make sample configuration file
|
|
||||||
post-install:
|
|
||||||
@${MV} ${STAGEDIR}${PREFIX}/etc/ipa/epn.conf ${STAGEDIR}${PREFIX}/etc/ipa/epn.conf.sample
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
TIMESTAMP = 1725364321
|
|
||||||
SHA256 (freeipa-4.12.2.tar.gz) = dc88f5404e7613eb6530d71142ef43a9f89019d59cdc6ec25b778413258c317f
|
|
||||||
SIZE (freeipa-4.12.2.tar.gz) = 5699673
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
--- asn1/asn1c/INTEGER.c.orig 2024-08-21 15:06:37 UTC
|
|
||||||
+++ asn1/asn1c/INTEGER.c
|
|
||||||
@@ -7,6 +7,7 @@
|
|
||||||
#include <INTEGER.h>
|
|
||||||
#include <asn_codecs_prim.h> /* Encoder and decoder of a primitive type */
|
|
||||||
#include <errno.h>
|
|
||||||
+#include <stdlib.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
* INTEGER basic type description.
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- asn1/asn1c/Makefile.am.orig 2021-11-25 17:34:42 UTC
|
|
||||||
+++ asn1/asn1c/Makefile.am
|
|
||||||
@@ -70,7 +70,7 @@ libasn1c_la_SOURCES = \
|
|
||||||
|
|
||||||
EXTRA_DIST = ipa.asn1
|
|
||||||
|
|
||||||
-AM_CPPFLAGS = -I$(top_srcdir)/util
|
|
||||||
+AM_CPPFLAGS = -I$(top_srcdir)/util -D_GNU_SOURCE
|
|
||||||
|
|
||||||
noinst_LTLIBRARIES=libasn1c.la
|
|
||||||
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
--- asn1/asn1c/NativeEnumerated.c.orig 2024-08-21 15:06:37 UTC
|
|
||||||
+++ asn1/asn1c/NativeEnumerated.c
|
|
||||||
@@ -11,6 +11,7 @@
|
|
||||||
*/
|
|
||||||
#include <asn_internal.h>
|
|
||||||
#include <NativeEnumerated.h>
|
|
||||||
+#include <stdlib.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
* NativeEnumerated basic type description.
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
--- asn1/asn1c/der_encoder.c.orig 2024-08-21 15:06:37 UTC
|
|
||||||
+++ asn1/asn1c/der_encoder.c
|
|
||||||
@@ -4,6 +4,7 @@
|
|
||||||
*/
|
|
||||||
#include <asn_internal.h>
|
|
||||||
#include <errno.h>
|
|
||||||
+#include <stdlib.h>
|
|
||||||
|
|
||||||
static ssize_t der_write_TL(ber_tlv_tag_t tag, ber_tlv_len_t len,
|
|
||||||
asn_app_consume_bytes_f *cb, void *app_key, int constructed);
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- client/Makefile.am.orig 2024-08-21 15:06:37 UTC
|
|
||||||
+++ client/Makefile.am
|
|
||||||
@@ -94,8 +94,6 @@ SUBDIRS = \
|
|
||||||
SUBDIRS = \
|
|
||||||
share \
|
|
||||||
man \
|
|
||||||
- sysconfig \
|
|
||||||
- systemd \
|
|
||||||
$(NULL)
|
|
||||||
# init
|
|
||||||
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
--- client/ipa-getkeytab.c.orig 2023-08-21 14:29:00 UTC
|
|
||||||
+++ client/ipa-getkeytab.c
|
|
||||||
@@ -34,6 +34,13 @@
|
|
||||||
#include <time.h>
|
|
||||||
#include <krb5.h>
|
|
||||||
#include <ldap.h>
|
|
||||||
+typedef unsigned char u_char;
|
|
||||||
+typedef unsigned short u_short;
|
|
||||||
+typedef unsigned int u_int;
|
|
||||||
+typedef unsigned long u_long;
|
|
||||||
+#include <sys/types.h>
|
|
||||||
+#include <netinet/in.h>
|
|
||||||
+#include <arpa/nameser.h>
|
|
||||||
#include <resolv.h>
|
|
||||||
#include <sasl/sasl.h>
|
|
||||||
#include <popt.h>
|
|
||||||
@ -1,112 +0,0 @@
|
|||||||
--- configure.ac.orig 2024-08-21 15:06:37 UTC
|
|
||||||
+++ configure.ac
|
|
||||||
@@ -25,9 +25,12 @@ dnl fail hard when includes statements are missing
|
|
||||||
dnl Enable features like strndup()
|
|
||||||
CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200809L"
|
|
||||||
dnl fail hard when includes statements are missing
|
|
||||||
-CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
|
|
||||||
+dnl Removing this failing hard because on implicit declaration of
|
|
||||||
+dnl alloca() used several plaice in the code.
|
|
||||||
+dnl CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
|
|
||||||
|
|
||||||
AC_PROG_CC_C99
|
|
||||||
+AC_GNU_SOURCE
|
|
||||||
AC_DISABLE_STATIC
|
|
||||||
LT_INIT
|
|
||||||
|
|
||||||
@@ -211,14 +214,7 @@ SAVE_LIBS="$LIBS"
|
|
||||||
dnl - Check for libintl
|
|
||||||
dnl ---------------------------------------------------------------------------
|
|
||||||
SAVE_LIBS="$LIBS"
|
|
||||||
-LIBINTL_LIBS=
|
|
||||||
-AC_CHECK_HEADER(libintl.h, [], [AC_MSG_ERROR([libintl.h not found, please install xgettext])])
|
|
||||||
-AC_SEARCH_LIBS([bindtextdomain], [libintl],[], [])
|
|
||||||
-if test "x$ac_cv_search_bindtextdomain" = "xno" ; then
|
|
||||||
- AC_MSG_ERROR([libintl is not found and your libc does not support gettext, please install xgettext])
|
|
||||||
-elif test "x$ac_cv_search_bindtextdomain" != "xnone required" ; then
|
|
||||||
- LIBINTL_LIBS="$ac_cv_search_bindtextdomain"
|
|
||||||
-fi
|
|
||||||
+LIBINTL_LIBS="-lintl"
|
|
||||||
LIBS="$SAVELIBS"
|
|
||||||
AC_SUBST(LIBINTL_LIBS)
|
|
||||||
|
|
||||||
@@ -249,39 +245,13 @@ dnl --------------------------------------------------
|
|
||||||
AC_SUBST([runstatedir])
|
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
|
||||||
-dnl - Check for systemd directories
|
|
||||||
-dnl ---------------------------------------------------------------------------
|
|
||||||
-
|
|
||||||
-PKG_CHECK_EXISTS([systemd], [], [AC_MSG_ERROR([systemd not found])])
|
|
||||||
-AC_ARG_WITH([systemdsystemunitdir],
|
|
||||||
- AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
|
|
||||||
- [Directory for systemd service files]),
|
|
||||||
- [systemdsystemunitdir=$with_systemdsystemunitdir],
|
|
||||||
- [systemdsystemunitdir=$($PKG_CONFIG --define-variable=prefix='${prefix}' --variable=systemdsystemunitdir systemd)])
|
|
||||||
-AC_SUBST([systemdsystemunitdir])
|
|
||||||
-
|
|
||||||
-AC_ARG_WITH([systemdtmpfilesdir],
|
|
||||||
- AS_HELP_STRING([--with-systemdtmpfilesdir=DIR],
|
|
||||||
- [Directory for systemd-tmpfiles configuration files]),
|
|
||||||
- [systemdtmpfilesdir=$with_systemdtmpfilesdir],
|
|
||||||
- [systemdtmpfilesdir=$($PKG_CONFIG --define-variable=prefix='${prefix}' --variable=tmpfilesdir systemd)])
|
|
||||||
-AC_SUBST([systemdtmpfilesdir])
|
|
||||||
-
|
|
||||||
-AC_ARG_WITH([systemdcatalogdir],
|
|
||||||
- AS_HELP_STRING([--with-systemdcatalogdir=DIR],
|
|
||||||
- [Directory for systemd journal catalog files]),
|
|
||||||
- [systemdcatalogdir=$with_systemdcatalogdir],
|
|
||||||
- [systemdcatalogdir=$($PKG_CONFIG --define-variable=prefix='${prefix}' --variable=catalogdir systemd)])
|
|
||||||
-AC_SUBST([systemdcatalogdir])
|
|
||||||
-
|
|
||||||
-dnl ---------------------------------------------------------------------------
|
|
||||||
dnl - Server-only configuration
|
|
||||||
dnl ---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
-AM_COND_IF([ENABLE_SERVER], [
|
|
||||||
- m4_include(server.m4)
|
|
||||||
-])
|
|
||||||
-AM_CONDITIONAL([USE_SSS_NSS_TIMEOUT], [test "x$ac_cv_have_decl_sss_nss_getpwnam_timeout" = xyes])
|
|
||||||
+dnl AM_COND_IF([ENABLE_SERVER], [
|
|
||||||
+dnl m4_include(server.m4)
|
|
||||||
+dnl ])
|
|
||||||
+dnl AM_CONDITIONAL([USE_SSS_NSS_TIMEOUT], [test "x$ac_cv_have_decl_sss_nss_getpwnam_timeout" = xyes])
|
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
|
||||||
dnl - Check if IPA certauth plugin can be build
|
|
||||||
@@ -625,35 +595,11 @@ AC_CONFIG_FILES([
|
|
||||||
client/Makefile
|
|
||||||
client/share/Makefile
|
|
||||||
client/man/Makefile
|
|
||||||
- client/sysconfig/Makefile
|
|
||||||
- client/systemd/Makefile
|
|
||||||
contrib/completion/Makefile
|
|
||||||
contrib/Makefile
|
|
||||||
- daemons/dnssec/Makefile
|
|
||||||
daemons/Makefile
|
|
||||||
daemons/ipa-kdb/Makefile
|
|
||||||
daemons/ipa-sam/Makefile
|
|
||||||
- daemons/ipa-otpd/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/libotp/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-cldap/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-dns/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-enrollment/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-graceperiod/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-lockout/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-otp-counter/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-otp-lasttoken/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-pwd-extop/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-extdom-extop/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-winsync/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-version/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-uuid/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-modrdn/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-sidgen/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/ipa-range-check/Makefile
|
|
||||||
- daemons/ipa-slapi-plugins/topology/Makefile
|
|
||||||
- init/systemd/Makefile
|
|
||||||
- init/tmpfilesd/Makefile
|
|
||||||
init/Makefile
|
|
||||||
install/Makefile
|
|
||||||
install/certmonger/Makefile
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
--- daemons/Makefile.am.orig 2023-08-21 16:29:00.040643147 +0200
|
|
||||||
+++ daemons/Makefile.am 2023-10-24 17:56:44.164932000 +0200
|
|
||||||
@@ -9,11 +9,8 @@
|
|
||||||
|
|
||||||
SUBDIRS = \
|
|
||||||
. \
|
|
||||||
- dnssec \
|
|
||||||
ipa-kdb \
|
|
||||||
- ipa-slapi-plugins \
|
|
||||||
ipa-sam \
|
|
||||||
- ipa-otpd \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
ipa-version.h: ipa-version.h.in $(top_builddir)/$(CONFIG_STATUS)
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
--- init/Makefile.am.orig 2023-10-24 17:29:14.662539000 +0200
|
|
||||||
+++ init/Makefile.am 2023-10-24 17:29:28.779983000 +0200
|
|
||||||
@@ -2,7 +2,7 @@
|
|
||||||
#
|
|
||||||
AUTOMAKE_OPTIONS = 1.7
|
|
||||||
|
|
||||||
-SUBDIRS = systemd tmpfilesd
|
|
||||||
+#SUBDIRS = systemd tmpfilesd
|
|
||||||
|
|
||||||
dist_sysconfenv_DATA = \
|
|
||||||
ipa-dnskeysyncd \
|
|
||||||
@ -1,4 +0,0 @@
|
|||||||
--- /dev/null 2023-10-25 10:42:48.658581000 +0200
|
|
||||||
+++ ipaplatform/freebsd/__init__.py 2023-10-25 10:42:03.380066000 +0200
|
|
||||||
@@ -0,0 +1 @@
|
|
||||||
+NAME = 'freebsd'
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
--- ipaplatform/setup.py.orig 2023-10-03 12:48:36 UTC
|
|
||||||
+++ ipaplatform/setup.py
|
|
||||||
@@ -37,6 +37,7 @@ if __name__ == '__main__':
|
|
||||||
"ipaplatform.debian",
|
|
||||||
"ipaplatform.fedora",
|
|
||||||
"ipaplatform.fedora_container",
|
|
||||||
+ "ipaplatform.freebsd",
|
|
||||||
"ipaplatform.nixos",
|
|
||||||
"ipaplatform.redhat",
|
|
||||||
"ipaplatform.rhel",
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user