diff options
author | François Andriot <albator78@libertysurf.fr> | 2014-09-18 20:21:01 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2014-09-18 20:21:01 +0200 |
commit | 369f2528ee942e6c1ed3634d3fac02be370e052f (patch) | |
tree | 241d924d27da6d5451306d376507677a9beb7d7c /openbsd | |
parent | e5f968aaea318274fddfb51d2fd2a99a47ce5758 (diff) | |
download | tde-packaging-369f2528ee942e6c1ed3634d3fac02be370e052f.tar.gz tde-packaging-369f2528ee942e6c1ed3634d3fac02be370e052f.zip |
Openbsd: add initial support
Diffstat (limited to 'openbsd')
-rw-r--r-- | openbsd/14.0.0/3rdparty/Makefile | 6 | ||||
-rw-r--r-- | openbsd/14.0.0/3rdparty/htdig/Makefile | 40 | ||||
-rw-r--r-- | openbsd/14.0.0/3rdparty/htdig/distinfo | 2 | ||||
-rw-r--r-- | openbsd/14.0.0/3rdparty/htdig/patches/patch-config-xss | 24 | ||||
-rw-r--r-- | openbsd/14.0.0/3rdparty/htdig/patches/patch-htsearch_Collection.h | 14 | ||||
-rw-r--r-- | openbsd/14.0.0/3rdparty/htdig/pkg/DESCR | 11 | ||||
-rw-r--r-- | openbsd/14.0.0/3rdparty/htdig/pkg/PFRAG.shared | 13 | ||||
-rw-r--r-- | openbsd/14.0.0/3rdparty/htdig/pkg/PLIST | 217 | ||||
-rw-r--r-- | openbsd/14.0.0/trinity.port.mk | 79 |
9 files changed, 406 insertions, 0 deletions
diff --git a/openbsd/14.0.0/3rdparty/Makefile b/openbsd/14.0.0/3rdparty/Makefile new file mode 100644 index 000000000..cb03b2dc3 --- /dev/null +++ b/openbsd/14.0.0/3rdparty/Makefile @@ -0,0 +1,6 @@ + + + SUBDIR = + SUBDIR += htdig + +.include <bsd.port.subdir.mk> diff --git a/openbsd/14.0.0/3rdparty/htdig/Makefile b/openbsd/14.0.0/3rdparty/htdig/Makefile new file mode 100644 index 000000000..8b2d4ca3b --- /dev/null +++ b/openbsd/14.0.0/3rdparty/htdig/Makefile @@ -0,0 +1,40 @@ +# Created by: Bill Fumerola <billf@chc-chimes.com> +# $FreeBSD$ + +PORTNAME= htdig +PORTVERSION= 3.2.0.b6 +PORTREVISION= 5 +CATEGORIES= textproc www x11/trinity +MASTER_SITES= http://downloads.sourceforge.net/project/htdig/htdig/3.2.0b6/ +DISTNAME= htdig-3.2.0b6 + +MAINTAINER= ports@FreeBSD.org +COMMENT= WWW indexing and searching system + +PERMIT_PACKAGE_CDROM= Yes + +CONFIGURE_STYLE=gnu +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-config-dir=${PREFIX}/etc/htdig \ + --with-default-config-file=${PREFIX}/etc/htdig/htdig.conf \ + --with-common-dir=${PREFIX}/share/htdig/common \ + --with-database-dir=${PREFIX}/share/htdig/database \ + --with-cgi-bin-dir=${PREFIX}/www/cgi-bin \ + --with-search-dir=${PREFIX}/www/data \ + --with-image-dir=${PREFIX}/www/icons/htdig \ + --with-image-url-prefix=/icons/htdig \ + --with-ssl +USES= libtool +USE_LDCONFIG= yes + +OPTIONS_DEFINE= APACHE DOCS +OPTIONS_DEFAULT= APACHE + +APACHE_USE= APACHE=22+ +APACHE_CONFIGURE_ON= --with-apache=${LOCALBASE}/sbin +APACHE_PLIST_DIRSTRY= www/cgi-bin www/data www/icons + +PORTDOCS= * + + +.include <bsd.port.mk> diff --git a/openbsd/14.0.0/3rdparty/htdig/distinfo b/openbsd/14.0.0/3rdparty/htdig/distinfo new file mode 100644 index 000000000..f137bc830 --- /dev/null +++ b/openbsd/14.0.0/3rdparty/htdig/distinfo @@ -0,0 +1,2 @@ +SHA256 (htdig-3.2.0b6.tar.gz) = bang7oYn1TAvVoWhs+XeXx5ujfTAqSwMoAeWvKnlRsg= +SIZE (htdig-3.2.0b6.tar.gz) = 3104936 diff --git a/openbsd/14.0.0/3rdparty/htdig/patches/patch-config-xss b/openbsd/14.0.0/3rdparty/htdig/patches/patch-config-xss new file mode 100644 index 000000000..32a044a7b --- /dev/null +++ b/openbsd/14.0.0/3rdparty/htdig/patches/patch-config-xss @@ -0,0 +1,24 @@ +--- htsearch/htsearch.cc.orig Fri May 28 06:15:24 2004 ++++ htsearch/htsearch.cc Mon Sep 12 23:16:06 2005 +@@ -211,8 +211,7 @@ + } + if (access((char*)configFile, R_OK) < 0) + { +- reportError(form("Unable to read configuration file '%s'", +- configFile.get())); ++ reportError("Unable to read configuration file"); + } + config->Read(configFile); + +--- htsearch/qtest.cc.orig Fri May 28 06:15:25 2004 ++++ htsearch/qtest.cc Mon Sep 12 23:19:49 2005 +@@ -132,8 +132,7 @@ + + if (access((char*)configFile, R_OK) < 0) + { +- reportError(form("Unable to find configuration file '%s'", +- configFile.get())); ++ reportError("Unable to find configuration file"); + } + + config->Read(configFile); diff --git a/openbsd/14.0.0/3rdparty/htdig/patches/patch-htsearch_Collection.h b/openbsd/14.0.0/3rdparty/htdig/patches/patch-htsearch_Collection.h new file mode 100644 index 000000000..d2b25ad32 --- /dev/null +++ b/openbsd/14.0.0/3rdparty/htdig/patches/patch-htsearch_Collection.h @@ -0,0 +1,14 @@ +--- htsearch/Collection.h.orig Fri May 28 06:15:24 2004 ++++ htsearch/Collection.h Mon Dec 18 00:17:56 2006 +@@ -36,9 +36,9 @@ + const char *docExcerpt); + ~Collection(); + +- void Collection::Open(); ++ void Open(); + +- void Collection::Close(); ++ void Close(); + + char *getWordFile() { return wordFile.get(); } + DocumentRef *getDocumentRef(int id); diff --git a/openbsd/14.0.0/3rdparty/htdig/pkg/DESCR b/openbsd/14.0.0/3rdparty/htdig/pkg/DESCR new file mode 100644 index 000000000..55ed9559f --- /dev/null +++ b/openbsd/14.0.0/3rdparty/htdig/pkg/DESCR @@ -0,0 +1,11 @@ + The ht://Dig system is a complete world wide web indexing and +searching system for a domain or intranet. This system is not meant +to replace the need for powerful internet-wide search systems like +Yahoo! or Google. Instead it is meant to cover the needs for a +single company, campus, or even a sub section of a web site. + + As opposed to some WAIS-based or web-server based search engines, +ht://Dig can span many web servers as long as they all understand +the HTTP 1.0 protocol. + +WWW: http://www.htdig.org/ diff --git a/openbsd/14.0.0/3rdparty/htdig/pkg/PFRAG.shared b/openbsd/14.0.0/3rdparty/htdig/pkg/PFRAG.shared new file mode 100644 index 000000000..556b9e326 --- /dev/null +++ b/openbsd/14.0.0/3rdparty/htdig/pkg/PFRAG.shared @@ -0,0 +1,13 @@ +@comment $OpenBSD$ +lib/htdig/libcommon-3.2.0.so +lib/htdig/libcommon.so +lib/htdig/libfuzzy-3.2.0.so +lib/htdig/libfuzzy.so +lib/htdig/libht-3.2.0.so +lib/htdig/libht.so +lib/htdig/libhtnet-3.2.0.so +lib/htdig/libhtnet.so +lib/htdig/libhtword-3.2.0.so +lib/htdig/libhtword.so +lib/htdig_db/libhtdb-3.2.0.so +lib/htdig_db/libhtdb.so diff --git a/openbsd/14.0.0/3rdparty/htdig/pkg/PLIST b/openbsd/14.0.0/3rdparty/htdig/pkg/PLIST new file mode 100644 index 000000000..94438e0bb --- /dev/null +++ b/openbsd/14.0.0/3rdparty/htdig/pkg/PLIST @@ -0,0 +1,217 @@ +@comment $OpenBSD$ +%%SHARED%% +bin/HtFileType +@bin bin/htdb_dump +@bin bin/htdb_load +@bin bin/htdb_stat +@bin bin/htdig +@bin bin/htdump +@bin bin/htfuzzy +@bin bin/htload +@bin bin/htmerge +@bin bin/htnotify +@bin bin/htpurge +@bin bin/htstat +bin/rundig +etc/ +etc/htdig/ +etc/htdig/HtFileType-magic.mime +etc/htdig/cookies.txt +etc/htdig/htdig.conf +etc/htdig/mime.types +include/htdig/ +include/htdig/Configuration.h +include/htdig/Connection.h +include/htdig/DB2_db.h +include/htdig/Database.h +include/htdig/Dictionary.h +include/htdig/HtCodec.h +include/htdig/HtCookie.h +include/htdig/HtCookieInFileJar.h +include/htdig/HtCookieJar.h +include/htdig/HtCookieMemJar.h +include/htdig/HtDateTime.h +include/htdig/HtFTP.h +include/htdig/HtFile.h +include/htdig/HtHTTP.h +include/htdig/HtHTTPBasic.h +include/htdig/HtHTTPSecure.h +include/htdig/HtHeap.h +include/htdig/HtMaxMin.h +include/htdig/HtNNTP.h +include/htdig/HtPack.h +include/htdig/HtRandom.h +include/htdig/HtRegex.h +include/htdig/HtRegexList.h +include/htdig/HtRegexReplace.h +include/htdig/HtRegexReplaceList.h +include/htdig/HtTime.h +include/htdig/HtVector.h +include/htdig/HtVectorGeneric.h +include/htdig/HtVectorGenericCode.h +include/htdig/HtVector_String.h +include/htdig/HtVector_int.h +include/htdig/HtWordCodec.h +include/htdig/HtWordType.h +include/htdig/IntObject.h +include/htdig/List.h +include/htdig/Object.h +include/htdig/ParsedString.h +include/htdig/Queue.h +include/htdig/QuotedStringList.h +include/htdig/SSLConnection.h +include/htdig/Stack.h +include/htdig/StringList.h +include/htdig/StringMatch.h +include/htdig/Transport.h +include/htdig/WordBitCompress.h +include/htdig/WordCaseIsAStatements.h +include/htdig/WordContext.h +include/htdig/WordCursor.h +include/htdig/WordDB.h +include/htdig/WordDBCompress.h +include/htdig/WordDBInfo.h +include/htdig/WordDBPage.h +include/htdig/WordKey.h +include/htdig/WordKeyInfo.h +include/htdig/WordList.h +include/htdig/WordMonitor.h +include/htdig/WordRecord.h +include/htdig/WordRecordInfo.h +include/htdig/WordReference.h +include/htdig/WordStat.h +include/htdig/WordType.h +include/htdig/ber.h +include/htdig/clib.h +include/htdig/good_strtok.h +include/htdig/gregex.h +include/htdig/htString.h +include/htdig/htconfig.h +include/htdig/lib.h +include/htdig/libdefs.h +include/htdig/md5.h +include/htdig/mhash_md5.h +include/htdig/myqsort.h +include/htdig_db/ +include/htdig_db/btree.h +include/htdig_db/btree_auto.h +include/htdig_db/btree_ext.h +include/htdig_db/common_ext.h +include/htdig_db/crdel_auto.h +include/htdig_db/db.h +include/htdig_db/db_am.h +include/htdig_db/db_auto.h +include/htdig_db/db_config.h +include/htdig_db/db_dispatch.h +include/htdig_db/db_ext.h +include/htdig_db/db_int.h +include/htdig_db/db_join.h +include/htdig_db/db_page.h +include/htdig_db/db_shash.h +include/htdig_db/db_swap.h +include/htdig_db/debug.h +include/htdig_db/env_ext.h +include/htdig_db/hash.h +include/htdig_db/hash_auto.h +include/htdig_db/hash_ext.h +include/htdig_db/lock.h +include/htdig_db/lock_ext.h +include/htdig_db/log.h +include/htdig_db/log_auto.h +include/htdig_db/log_ext.h +include/htdig_db/mp.h +include/htdig_db/mp_ext.h +include/htdig_db/mutex.h +include/htdig_db/mutex_ext.h +include/htdig_db/os.h +include/htdig_db/os_ext.h +include/htdig_db/os_jump.h +include/htdig_db/qam.h +include/htdig_db/qam_auto.h +include/htdig_db/qam_ext.h +include/htdig_db/queue.h +include/htdig_db/region.h +include/htdig_db/shqueue.h +include/htdig_db/txn.h +include/htdig_db/txn_auto.h +include/htdig_db/txn_ext.h +include/htdig_db/xa.h +include/htdig_db/xa_ext.h +lib/htdig/ +lib/htdig/libcommon.a +lib/htdig/libcommon.la +lib/htdig/libfuzzy.a +lib/htdig/libfuzzy.la +lib/htdig/libht.a +lib/htdig/libht.la +lib/htdig/libhtnet.a +lib/htdig/libhtnet.la +lib/htdig/libhtword.a +lib/htdig/libhtword.la +lib/htdig_db/ +lib/htdig_db/libhtdb.a +lib/htdig_db/libhtdb.la +@man man/man1/htdig-pdfparser.1 +@man man/man1/htdig.1 +@man man/man1/htdump.1 +@man man/man1/htfuzzy.1 +@man man/man1/htload.1 +@man man/man1/htmerge.1 +@man man/man1/htnotify.1 +@man man/man1/htpurge.1 +@man man/man1/htsearch.1 +@man man/man1/htstat.1 +@man man/man1/rundig.1 +@man man/man8/htdigconfig.8 +share/htdig/ +share/htdig/common/ +share/htdig/common/bad_words +share/htdig/common/english.0 +share/htdig/common/english.aff +share/htdig/common/footer.html +share/htdig/common/header.html +share/htdig/common/long.html +share/htdig/common/nomatch.html +share/htdig/common/short.html +share/htdig/common/synonyms +share/htdig/common/syntax.html +share/htdig/common/wrapper.html +share/htdig/database/ +www/ +www/cgi-bin/ +@bin www/cgi-bin/htsearch +@bin www/cgi-bin/qtest +www/data/ +www/data/search.html +www/icons/ +www/icons/htdig/ +www/icons/htdig/button1.gif +www/icons/htdig/button1.png +www/icons/htdig/button10.gif +www/icons/htdig/button10.png +www/icons/htdig/button2.gif +www/icons/htdig/button2.png +www/icons/htdig/button3.gif +www/icons/htdig/button3.png +www/icons/htdig/button4.gif +www/icons/htdig/button4.png +www/icons/htdig/button5.gif +www/icons/htdig/button5.png +www/icons/htdig/button6.gif +www/icons/htdig/button6.png +www/icons/htdig/button7.gif +www/icons/htdig/button7.png +www/icons/htdig/button8.gif +www/icons/htdig/button8.png +www/icons/htdig/button9.gif +www/icons/htdig/button9.png +www/icons/htdig/buttonl.gif +www/icons/htdig/buttonl.png +www/icons/htdig/buttonr.gif +www/icons/htdig/buttonr.png +www/icons/htdig/htdig.gif +www/icons/htdig/htdig.png +www/icons/htdig/star.gif +www/icons/htdig/star.png +www/icons/htdig/star_blank.gif +www/icons/htdig/star_blank.png diff --git a/openbsd/14.0.0/trinity.port.mk b/openbsd/14.0.0/trinity.port.mk new file mode 100644 index 000000000..ffd076b9f --- /dev/null +++ b/openbsd/14.0.0/trinity.port.mk @@ -0,0 +1,79 @@ +### General information + +TDE_VERSION= 14.0.0 +TDE_PREFIX= /opt/trinity + +HOMEPAGE= http://www.trinitydesktop.org/ +MAINTAINER= François Andriot <francois.andriot@free.fr> + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes + +FLAVORS=debug +FLAVOR?= + +### General build options + +PKG_CONFIG_PATH=/opt/trinity/lib/pkgconfig:/usr/X11R6/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig + +BUILD_DEPENDS= devel/gmake \ + devel/cmake \ + textproc/gsed \ + shells/bash + +### CMAKE related build options + +CMAKE_INCLUDE_PATH=/usr/include:/usr/local/include:/usr/X11R6/include +CMAKE_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/X11R6/lib + +# Build Flags +TDE_FLAGS=${CXXFLAGS} \ + -I${WRKDIST}/libltdl -I/usr/X11R6/include -I/usr/local/include \ + -L/usr/X11R6/lib -L/usr/local/lib \ + -Wl,-lc + +.if ${FLAVOR:Mdebug} +CMAKE_BUILD_TYPE=Debug +TDE_FLAGS+= -g +.else +CMAKE_BUILD_TYPE=RelWithDebInfo +TDE_FLAGS+= -DNDEBUG +.endif + +# Custom configure commands +TDE_CMAKE_CONFIGURE=\ + export CMAKE_INCLUDE_PATH="${CMAKE_INCLUDE_PATH}"; \ + export CMAKE_LIBRARY_PATH="${CMAKE_LIBRARY_PATH}"; \ + export PATH="${TDE_PREFIX}/bin:${PATH}"; \ + export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"; \ + cd ${WRKDIST} && mkdir build && cd build && cmake .. \ + -DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" \ + -DCMAKE_C_FLAGS="${TDE_FLAGS}" \ + -DCMAKE_CXX_FLAGS="${TDE_FLAGS} -Wl,-lstdc++" \ + -DCMAKE_SKIP_RPATH=OFF \ + -DCMAKE_INSTALL_RPATH="${TDE_PREFIX}/lib" \ + -DCMAKE_VERBOSE_MAKEFILE=ON \ + -DCMAKE_EXTRA_INCLUDE_FILES="pthread.h" \ + \ + -DTDEDIR="${TDE_PREFIX}" \ + -DCMAKE_INSTALL_PREFIX="${TDE_PREFIX}" \ + -DBIN_INSTALL_DIR="${TDE_PREFIX}/bin" \ + -DSHARE_INSTALL_PREFIX="${TDE_PREFIX}/share" \ + -DDOC_INSTALL_DIR="${TDE_PREFIX}/share/doc" \ + -DINCLUDE_INSTALL_DIR="${TDE_PREFIX}/include/tde" \ + -DLIB_INSTALL_DIR="${TDE_PREFIX}/lib" \ + -DPLUGIN_INSTALL_DIR="${TDE_PREFIX}/lib/trinity" \ + -DPKGCONFIG_INSTALL_DIR="${TDE_PREFIX}/lib/pkgconfig" + + +### Custom build targets +tde-cmake-rmbuild: + rm -rf "${WRKDIST}/build" + +tde-cmake-build: + export TDEDIR="${TDE_PREFIX}"; \ + cd "${WRKDIST}/build" && gmake ${MAKE_FLAGS} || gmake + +tde-cmake-install: + export TDEDIR="${TDE_PREFIX}"; \ + cd "${WRKDIST}/build" && gmake install |