View | Details | Raw Unified | Return to bug 265105 | Differences between
and this patch

Collapse All | Expand All

(-)b/textproc/refdb/Makefile (-90 / +49 lines)
Lines 1-131 Link Here
1
PORTNAME=	refdb
1
PORTNAME=	refdb
2
PORTVERSION=	0.9.9
2
PORTVERSION=	1.0.3
3
DISTVERSIONSUFFIX=	-1
4
PORTREVISION=	11
5
CATEGORIES=	textproc
3
CATEGORIES=	textproc
6
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-src/${PORTNAME}-src-${PORTVERSION}-1
4
MASTER_SITES=	https://sourceforge.net/projects/${PORTNAME}/files/latest/download/
7
5
8
MAINTAINER=	ohartman@zedat.fu-berlin.de
6
MAINTAINER=	port@freebsd.org
9
COMMENT=	Bibliographic reference database
7
COMMENT=	Bibliographic reference database
10
8
11
BROKEN_FreeBSD_13=	ld: error: duplicate symbol: thecommandlist
9
LICENSE=	GPLv2+
12
BROKEN_FreeBSD_14=	ld: error: duplicate symbol: thecommandlist
10
LICENSE_FILE=	${WRKSRC}/COPYING
13
11
14
LIB_DEPENDS=	libexpat.so:textproc/expat2 \
12
BUILD_DEPENDS=	${RUN_DEPENDS} \
15
		libbtparse.so:textproc/btparse \
13
		svnversion:devel/subversion
16
		libdbi.so:databases/libdbi
14
15
LIB_DEPENDS=	libbtparse.so:textproc/btparse \
16
		libdbi.so:databases/libdbi \
17
		libexpat.so:textproc/expat2 \
18
		libltdl.so:devel/libltdl
19
20
RUN_DEPENDS=	fop>=0:textproc/fop \
21
		libxslt>=0:textproc/libxslt \
22
		p5-MARC-Record>=0:textproc/p5-MARC-Record \
23
		p5-MARC-XML>=0:textproc/p5-MARC-XML \
24
		p5-XML-Parser>=0:textproc/p5-XML-Parser \
25
		xmlcatmgr>=0:textproc/xmlcatmgr
26
27
USES=		autoreconf gettext gmake iconv libtool localbase \
28
		pathfix perl5 php:web pkgconfig readline shebangfix
29
30
USE_RC_SUBR=	refdbd
31
32
SHEBANG_FILES=	${WRKSRC}/scripts/*
33
34
HAS_CONFIGURE=		yes
35
CONFIGURE_ARGS+=	--with-classpath-root=${LOCALBASE}/share/java/classes \
36
			--with-expat-lib=${LOCALBASE}/lib
17
37
18
USES=		gmake iconv readline perl5 libtool pkgconfig pathfix shebangfix
19
HAS_CONFIGURE=	yes
20
INSTALL_TARGET=	install-strip
38
INSTALL_TARGET=	install-strip
21
PORTDOCS=	*
22
39
23
CFLAGS+=	-I${LOCALBASE}/include
40
CFLAGS+=	-I${LOCALBASE}/include
24
LIBS+=		-lm
41
LIBS+=		-lm
25
42
26
CONFIGURE_ARGS=	--with-expat-lib=${LOCALBASE}/lib \
43
OPTIONS_DEFINE=		DOCS
27
		--with-classpath-root=${PREFIX}/share/java/classes \
44
OPTIONS_DEFAULT=	DOCS PGSQL
28
		--with-refdb-url=http://localhost/refdb
29
XMLCATMGR=	${LOCALBASE}/bin/xmlcatmgr
30
31
OPTIONS_DEFINE=		DOCS CATALOG
32
OPTIONS_SINGLE=		DB
45
OPTIONS_SINGLE=		DB
33
OPTIONS_SINGLE_DB=	MYSQL PGSQL SQLITE
46
OPTIONS_SINGLE_DB=	MYSQL PGSQL SQLITE
34
OPTIONS_EXCLUDE=	CATALOG		# may not be implemented correctly
47
OPTIONS_SUB=		yes
35
CATALOG_DESC=		Install SGML catalog
48
DOCS_BUILD_DEPENDS=	docbook-xsl>0:textproc/docbook-xsl \
36
49
			dtdparse>0:textproc/dtdparse
37
OPTIONS_DEFAULT=	PGSQL
50
DOCS_CONFIGURE_ON=	--without-docbook-xsl-ns \
38
DOCS_BUILD_DEPENDS=	xsltproc:textproc/libxslt \
51
			--without-tei-xsl \
39
			docbook-xsl>=0:textproc/docbook-xsl
52
			--without-tei-xsl-ns
40
53
DOCS_CONFIGURE_OFF=	--disable-docs
41
SHEBANG_FILES=	${WRKSRC}/scripts/*
54
DOCS_CONFIGURE_WITH=	docbook-xsl=${PREFIX}/share/xsl/docbook
42
55
MYSQL_USES=		mysql
43
USE_RC_SUBR=	refdbd
56
MYSQL_CONFIGURE_WITH=	mysql
57
PGSQL_USES=		pgsql
58
PGSQL_CONFIGURE_WITH=	pgsql
59
SQLITE_USES=		sqlite
60
SQLITE_CONFIGURE_WITH=	sqlite3
44
61
45
.include <bsd.port.options.mk>
62
.include <bsd.port.options.mk>
46
63
47
.if ${PORT_OPTIONS:MMYSQL}
64
.if ${PORT_OPTIONS:MMYSQL}
48
USES+=		mysql
49
# If libdbi-drivers has been built without MySQL driver, abort
65
# If libdbi-drivers has been built without MySQL driver, abort
50
.if exists(${LOCALBASE}/lib/dbd) && !exists(${LOCALBASE}/lib/dbd/libdbdmysql.so)
66
.if exists(${LOCALBASE}/lib/dbd) && !exists(${LOCALBASE}/lib/dbd/libdbdmysql.so)
51
IGNORE=		rebuild databases/libdbi-drivers with MySQL support
67
IGNORE=		please rebuild databases/libdbi-drivers with MySQL support
52
.elif !exists(${LOCALBASE}/lib/dbd)
68
.elif !exists(${LOCALBASE}/lib/dbd)
53
BUILD_DEPENDS+=	${LOCALBASE}/lib/dbd:databases/libdbi-drivers
69
BUILD_DEPENDS+=	${LOCALBASE}/lib/dbd:databases/libdbi-drivers
54
.endif
70
.endif
55
CONFIGURE_ARGS+=	--with-db-server=mysql
56
71
57
.elif ${PORT_OPTIONS:MPGSQL}
72
.elif ${PORT_OPTIONS:MPGSQL}
58
USES+=	pgsql
59
# If libdbi-drivers has been built without PostgreSQL driver, abort
73
# If libdbi-drivers has been built without PostgreSQL driver, abort
60
.if exists(${LOCALBASE}/lib/dbd) && !exists(${LOCALBASE}/lib/dbd/libdbdpgsql.so)
74
.if exists(${LOCALBASE}/lib/dbd) && !exists(${LOCALBASE}/lib/dbd/libdbdpgsql.so)
61
IGNORE=		rebuild databases/libdbi-drivers with PostgreSQL support
75
IGNORE=		please rebuild databases/libdbi-drivers with PostgreSQL support
62
.elif !exists(${LOCALBASE}/lib/dbd)
76
.elif !exists(${LOCALBASE}/lib/dbd)
63
BUILD_DEPENDS+=	${LOCALBASE}/lib/dbd:databases/libdbi-drivers
77
BUILD_DEPENDS+=	${LOCALBASE}/lib/dbd:databases/libdbi-drivers
64
.endif
78
.endif
65
CONFIGURE_ARGS+=	--with-db-server=pgsql
66
79
67
.elif ${PORT_OPTIONS:MSQLITE}
80
.elif ${PORT_OPTIONS:MSQLITE}
68
LIB_DEPENDS+=	libsqlite3.so:databases/sqlite3
69
# If libdbi-drivers has been built without SQLite driver, abort
81
# If libdbi-drivers has been built without SQLite driver, abort
70
.if exists(${LOCALBASE}/lib/dbd) && !exists(${LOCALBASE}/lib/dbd/libdbdsqlite3.so)
82
.if exists(${LOCALBASE}/lib/dbd) && !exists(${LOCALBASE}/lib/dbd/libdbdsqlite3.so)
71
IGNORE=		rebuild databases/libdbi-drivers with SQLite support
83
IGNORE=		please rebuild databases/libdbi-drivers with SQLite support
72
.elif !exists(${LOCALBASE}/lib/dbd)
84
.elif !exists(${LOCALBASE}/lib/dbd)
73
BUILD_DEPENDS+=	${LOCALBASE}/lib/dbd:databases/libdbi-drivers
85
BUILD_DEPENDS+=	${LOCALBASE}/lib/dbd:databases/libdbi-drivers
74
.endif
86
.endif
75
CONFIGURE_ARGS+=	--with-db-server=sqlite
76
.endif
77
78
.if ${PORT_OPTIONS:MDOCS}
79
CONFIGURE_ARGS+=	--with-docbook-xsl=${PREFIX}/share/xsl/docbook \
80
			--without-docbook-xsl-ns \
81
			--without-tei-xsl \
82
			--without-tei-xsl-ns
83
.else
84
CONFIGURE_ARGS+=	--disable-docs
85
.endif
86
87
87
.if ${PORT_OPTIONS:MCATALOG}
88
RUN_DEPENDS+=	xmlcatmgr:textproc/xmlcatmgr
89
.endif
90
91
post-patch:
92
	${REINPLACE_CMD} -e 's|$$(PACKAGE)-$$(VERSION)|refdb|g' \
93
		${WRKSRC}/doc/Makefile.in
94
95
post-install:
96
.if ${PORT_OPTIONS:MCATALOG}
97
	@[ -f ${STAGEDIR}${PREFIX}/share/sgml/catalog.ports ] || ${TOUCH} ${STAGEDIR}${PREFIX}/share/sgml/catalog.ports
98
	@${XMLCATMGR} -s -c ${STAGEDIR}${PREFIX}/share/sgml/catalog.ports lookup "${STAGEDIR}${PREFIX}/share/refdb/refdb.cat" > /dev/null || ${XMLCATMGR} -s -c ${STAGEDIR}${PREFIX}/share/sgml/catalog.ports add CATALOG "${STAGEDIR}${PREFIX}/share/refdb/refdb.cat" -- > /dev/null
99
.endif
100
	@${ECHO_MSG} "To complete RefDB installation:"
101
.if ${PORT_OPTIONS:MMYSQL}
102
	@${ECHO_MSG} ""
103
	@${ECHO_MSG} "1. To initialise MySQL, run the following command:"
104
	@${ECHO_MSG} ""
105
	@${ECHO_MSG} "   mysql -u root -e \"CREATE DATABASE refdb\""
106
	@${ECHO_MSG} ""
107
	@${ECHO_MSG} "   Then, for MySQL older than 4.1, run:"
108
	@${ECHO_MSG} ""
109
	@${ECHO_MSG} "   mysql -u root refdb < ${PREFIX}/share/refdb/sql/refdb.dump.mysql"
110
	@${ECHO_MSG} ""
111
	@${ECHO_MSG} "   For MySQL 4.1 and later, run:"
112
	@${ECHO_MSG} ""
113
	@${ECHO_MSG} "   mysql -u root refdb < ${PREFIX}/share/refdb/sql/refdb.dump.mysql41"
114
	@${ECHO_MSG} ""
115
.elif ${PORT_OPTIONS:MPGSQL}
116
	@${ECHO_MSG} ""
117
	@${ECHO_MSG} "1. To initialise PostgreSQL, run the following commands:"
118
	@${ECHO_MSG} ""
119
	@${ECHO_MSG} "   createdb -U pgsql -E UNICODE refdb"
120
	@${ECHO_MSG} "   psql -U pgsql refdb < ${PREFIX}/share/refdb/sql/refdb.dump.pgsql"
121
	@${ECHO_MSG} ""
122
.elif ${PORT_OPTIONS:MSQLITE}
123
	@${ECHO_MSG} ""
124
	@${ECHO_MSG} "1. To initialise SQLite, run the following commands:"
125
	@${ECHO_MSG} ""
126
	@${ECHO_MSG} "   cd ${PREFIX}/share/refdb/db"
127
	@${ECHO_MSG} "   sqlite refdb < ${PREFIX}/share/refdb/sql/refdb.dump.sqlite"
128
	@${ECHO_MSG} ""
129
.endif
88
.endif
130
89
131
.include <bsd.port.mk>
90
.include <bsd.port.mk>
(-)b/textproc/refdb/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (refdb-0.9.9-1.tar.gz) = 99f8146d646e97a32b248f7d5b530119066c2d108a8335f864816eadcfc3dec6
1
TIMESTAMP = 1644836370
2
SIZE (refdb-0.9.9-1.tar.gz) = 3209712
2
SHA256 (refdb-1.0.3.tar.gz) = bd13e788dc4ae7293a4220c0ba65330980fd123c3209b5b59f963ae85e6c26e5
3
SIZE (refdb-1.0.3.tar.gz) = 3500489
(-)b/textproc/refdb/files/patch-configure (+11 lines)
Added Link Here
1
--- configure.orig	2022-08-06 16:56:40 UTC
2
+++ configure
3
@@ -848,7 +848,7 @@ sharedstatedir='${prefix}/com'
4
 datadir='${datarootdir}'
5
 sysconfdir='${prefix}/etc'
6
 sharedstatedir='${prefix}/com'
7
-localstatedir='${prefix}/var'
8
+localstatedir='/var'
9
 includedir='${prefix}/include'
10
 oldincludedir='/usr/include'
11
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
(-)b/textproc/refdb/files/patch-doc_Makefile.in (-33 lines)
Lines 1-33 Link Here
1
--- doc/Makefile.in.orig	2014-09-10 12:40:48 UTC
2
+++ doc/Makefile.in
3
@@ -227,8 +227,8 @@ tei_xsl_ns = @tei_xsl_ns@
4
 trang_cmd = @trang_cmd@
5
 var_dir = @var_dir@
6
 xml_decl = @xml_decl@
7
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/refdb-manual
8
-doc_DATA = refdb-manual.pdf refdb-manual/*
9
+docdir = $(datadir)/doc/refdb
10
+doc_DATA = refdb-manual/*
11
 indexdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/
12
 index_DATA = index.html
13
 citestylexdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/citestylex
14
@@ -779,7 +779,7 @@ uninstall-am: uninstall-citationlistxDAT
15
 	uninstall-xnoteelementsDATA
16
 
17
 
18
-all: refdb-manual.pdf refdb-manual/* citestylex/elements.html risx/elements.html citationlistx/elements.html xnote/elements.html
19
+all: refdb-manual-html citestylex/elements.html risx/elements.html citationlistx/elements.html xnote/elements.html
20
 
21
 ####################################################################
22
 # building the manual
23
@@ -804,9 +804,8 @@ refdb-manual.pdf: $(manual_sources) $(ma
24
 # we have to give Java a little extra memory lest fop will die a horrible death
25
 	JAVA_OPTS=-Xmx256M fop -fo refdb-manual.fo -pdf refdb-manual.pdf
26
 
27
-refdb-manual/*: $(manual_sources) $(manpage_sources) $(png_images) refdb-manual-statustable.xml include/manual-xhtml.xsl
28
+refdb-manual-html: $(manual_sources) $(manpage_sources) $(png_images) refdb-manual-statustable.xml include/manual-xhtml.xsl
29
 	@echo "Creating HTML manual...";
30
-	rm -rf refdb-manual/*
31
 # building outside the source dir won't work here because the docbook
32
 # stylesheets screw up the location of the image files for HTML output
33
 	mkdir -p refdb-manual && cp $(html_extra_files) refdb-manual/ && xsltproc -o refdb-manual/ --nonet --xinclude include/manual-xhtml.xsl refdb-manual.xml
(-)b/textproc/refdb/files/patch-doc__Makefile.am (+79 lines)
Added Link Here
1
--- doc/Makefile.am.orig	2022-08-12 09:25:26 UTC
2
+++ doc/Makefile.am
3
@@ -1,45 +1,45 @@
4
 ## Process this with automake to create Makefile.in
5
 
6
-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/refdb-manual
7
-doc_DATA = refdb-manual.pdf refdb-manual/*
8
+docdir = $(datadir)/doc/refdb
9
+doc_DATA = refdb-manual/*
10
 
11
-indexdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/
12
+indexdir = $(datadir)/doc/refdb/
13
 index_DATA = index.html
14
 
15
-citestylexdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/citestylex
16
+citestylexdir = $(datadir)/doc/refdb/citestylex
17
 citestylex_DATA = citestylex/*.html
18
-citestylexdtdelemdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/citestylex/dtdelem
19
+citestylexdtdelemdir = $(datadir)/doc/refdb/citestylex/dtdelem
20
 citestylexdtdelem_DATA = citestylex/dtdelem/*
21
-citestylexeledescdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/citestylex/ele-desc
22
+citestylexeledescdir = $(datadir)/doc/refdb/citestylex/ele-desc
23
 citestylexeledesc_DATA = $(top_srcdir)/doc/citestylex/ele-desc/*.html
24
-citestylexelementsdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/citestylex/elements
25
+citestylexelementsdir = $(datadir)/doc/refdb/citestylex/elements
26
 citestylexelements_DATA = citestylex/elements/*
27
 
28
-risxdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/risx
29
+risxdir = $(datadir)/doc/refdb/risx
30
 risx_DATA = risx/*.html
31
-risxdtdelemdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/risx/dtdelem
32
+risxdtdelemdir = $(datadir)/doc/refdb/risx/dtdelem
33
 risxdtdelem_DATA = risx/dtdelem/*
34
-risxeledescdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/risx/ele-desc
35
+risxeledescdir = $(datadir)/doc/refdb/risx/ele-desc
36
 risxeledesc_DATA = $(top_srcdir)/doc/risx/ele-desc/*.html
37
-risxelementsdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/risx/elements
38
+risxelementsdir = $(datadir)/doc/refdb/risx/elements
39
 risxelements_DATA = risx/elements/*
40
 
41
-citationlistxdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/citationlistx
42
+citationlistxdir = $(datadir)/doc/refdb/citationlistx
43
 citationlistx_DATA = citationlistx/*.html
44
-citationlistxdtdelemdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/citationlistx/dtdelem
45
+citationlistxdtdelemdir = $(datadir)/doc/refdb/citationlistx/dtdelem
46
 citationlistxdtdelem_DATA = citationlistx/dtdelem/*
47
-citationlistxeledescdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/citationlistx/ele-desc
48
+citationlistxeledescdir = $(datadir)/doc/refdb/citationlistx/ele-desc
49
 citationlistxeledesc_DATA = $(top_srcdir)/doc/citationlistx/ele-desc/*.html
50
-citationlistxelementsdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/citationlistx/elements
51
+citationlistxelementsdir = $(datadir)/doc/refdb/citationlistx/elements
52
 citationlistxelements_DATA = citationlistx/elements/*
53
 
54
-xnotedir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/xnote
55
+xnotedir = $(datadir)/doc/refdb/xnote
56
 xnote_DATA = xnote/*.html
57
-xnotedtdelemdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/xnote/dtdelem
58
+xnotedtdelemdir = $(datadir)/doc/refdb/xnote/dtdelem
59
 xnotedtdelem_DATA = xnote/dtdelem/*
60
-xnoteeledescdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/xnote/ele-desc
61
+xnoteeledescdir = $(datadir)/doc/refdb/xnote/ele-desc
62
 xnoteeledesc_DATA = $(top_srcdir)/doc/xnote/ele-desc/*.html
63
-xnoteelementsdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/xnote/elements
64
+xnoteelementsdir = $(datadir)/doc/refdb/xnote/elements
65
 xnoteelements_DATA = xnote/elements/*
66
 
67
 ####################################################################
68
@@ -87,10 +87,7 @@ include/fotitlepages.xsl: include/fotitlepage.template
69
 
70
 refdb-manual.pdf: $(manual_sources) $(manpage_sources) $(svg_images) refdb-manual-statustable.xml include/fotitlepages.xsl include/manual-fo.xsl
71
 	@echo "Creating PDF manual...";
72
-#	xsltproc -o refdb-manual.fo --nonet --xinclude $(top_srcdir)/doc/include/manual-fo.xsl $(top_srcdir)/doc/refdb-manual.xml
73
-# workaround for a null pointer exception in fop 1.0: disable hyphenation
74
-	@echo "hyphenation temporarily unavailable"
75
-	xsltproc -o refdb-manual.fo --stringparam hyphenate 0 --nonet --xinclude $(top_srcdir)/doc/include/manual-fo.xsl $(top_srcdir)/doc/refdb-manual.xml
76
+	xsltproc -o refdb-manual.fo --nonet --xinclude $(top_srcdir)/doc/include/manual-fo.xsl $(top_srcdir)/doc/refdb-manual.xml
77
 # we have to give Java a little extra memory lest fop will die a horrible death
78
 	JAVA_OPTS=-Xmx256M fop -fo refdb-manual.fo -pdf refdb-manual.pdf
79
 
(-)b/textproc/refdb/files/patch-phpweb-index.php.in (+13 lines)
Added Link Here
1
--- phpweb/index.php.in.orig	2017-03-01 22:44:01 UTC
2
+++ phpweb/index.php.in
3
@@ -504,8 +504,8 @@ switch($thisPage) {
4
      echo "<div class=\"warning\"><p><strong class=\"warning\">" . $warning . "</strong></p></div>\n";
5
      unset($warning);
6
    }
7
-   echo "        <p>Username:<br/><input type=\"text\" name=\"name\" size=\"16\" maxlength=\"16\"/></p>\n";
8
-   echo "        <p>Password:<br/><input type=\"password\" name=\"passwd\" size=\"16\" maxlength=\"16\"/></p>\n";
9
+   echo "        <p>Username (max 16):<br/><input type=\"text\" name=\"name\" size=\"16\" maxlength=\"16\"/></p>\n";
10
+   echo "        <p>Password (max. 128):<br/><input type=\"password\" name=\"passwd\" size=\"16\" maxlength=\"128\"/></p>\n";
11
    echo "        <p>Remember me on this computer <input type=\"checkbox\" name=\"rememberMe\" value=\"rememberMe\"/></p>\n";
12
    echo "        <p><input id=\"loginbutton\" type=\"submit\" name=\"sendQuery\" value=\"Login\"/></p>\n";
13
    echo "    </form>\n";
(-)b/textproc/refdb/files/patch-scripts-refdb.in (-3 / +3 lines)
Lines 1-6 Link Here
1
--- scripts/refdb.in.orig	Fri Aug 25 03:53:55 2006
1
--- scripts/refdb.in.orig	2022-07-12 11:47:34 UTC
2
+++ scripts/refdb.in	Tue Jan 30 11:25:47 2007
2
+++ scripts/refdb.in
3
@@ -44,7 +44,7 @@
3
@@ -43,7 +43,7 @@ REFDBCTL=<prefix>/bin/<program_prefix>refdbctl<program
4
 # true for BSD-UNIX and Unices derived thereof, as well as for the
4
 # true for BSD-UNIX and Unices derived thereof, as well as for the
5
 # Slackware Linux distribution). This setting does not perform any black
5
 # Slackware Linux distribution). This setting does not perform any black
6
 # magic, but it makes the screen messages at startup match the OS style
6
 # magic, but it makes the screen messages at startup match the OS style
(-)b/textproc/refdb/files/patch-scripts-refdb_latex2utf8txt (+69 lines)
Added Link Here
1
--- scripts/refdb_latex2utf8txt.orig	2022-07-12 11:47:34 UTC
2
+++ scripts/refdb_latex2utf8txt
3
@@ -26,8 +26,14 @@ while(<>) {
4
     s/\{\\~A\}|\\~A|\\~\{A\}/Ã/g;
5
     s/\{\\~a\}|\\~a|\\~\{a\}/ã/g;
6
     s/\{\\"a\}|\\"a/ä/g;
7
-    s/\{\\v\{c\}|\{\\v c\}|\\v c/č/g;
8
+    s/\{\\aa\}|\\a\{a\}|\\aa/å/g;
9
+    s/\{\\aA\}|\\a\{A\}|\\aA/Å/g;
10
+    s/\{\\ae\}|\\a\{e\}|\\ae/æ/g;
11
+    s/\{\\AE\}|\\A\{E\}|\\AE/Æ/g;
12
+    s/\{\\v\{c\}|\{\\v c\}|\\vc|\\v c/č/g;
13
+    s/\{\\vC\}|\{\\v C\}|\\v\{C\}|\\v C/Č/g;
14
     s/\{\\'\{c\}|\{\\'c\}|\\'c/ć/g;
15
+    s/\{\\'\{C\}|\{\\'C\}|\\'C/Ć/g;
16
     s/\{\\'e\}|\\'e/é/g;
17
     s/\{\\'E\}|\\'E/É/g;
18
     s/\{\\`e\}|\\`e/è/g;
19
@@ -36,12 +42,17 @@ while(<>) {
20
     s/\{\\^E\}|\\^E/Ê/g;
21
     s/\{\\~e\}|\\~e|\\~\{e\}/ẽ/g;
22
     s/\{\\~E\}|\\~E|\\~\{E\}/Ẽ/g;
23
+    s/\{\\ve\}|\\ve|\\v\{e\}/ě/g;
24
     s/\{\\'\\i\}|\\'\\i/í/g;
25
     s/\{\\'I\}|\\'I/Í/g;
26
     s/\{\\`\\i\}|\\`\\i/ì/g;
27
     s/\{\\`I\}|\\`I/Ì/g;
28
     s/\{\\^\\i\}|\\^\\i/î/g;
29
     s/\{\\^I\}|\\^I/Î/g;
30
+    s/\{\\vj\}|\\v\{j\}|\\v j|\\vj/ǰ/g;
31
+    s/\{\\vJ\}|\\v\{J\}|\\v J|\\vJ/ǰ/g;
32
+    s/\{\\l\}|\\l/ł/g;
33
+    s/\{\\L\}|\\L/Ł/g;
34
     s/\{\\'o\}|\\'o/ó/g;
35
     s/\{\\'O\}|\\'O/Ó/g;
36
     s/\{\\`o\}|\\`o/ò/g;
37
@@ -50,10 +61,18 @@ while(<>) {
38
     s/\{\\"O\}|\\"O/Ö/g;
39
     s/\{\\~o\}|\\~o|\\~\{o\}/õ/g;
40
     s/\{\\~O\}|\\~O|\\~\{O\}/Õ/g;
41
+    s/\{\\~n\}|\\~n|\\~\{n\}/ñ/g;
42
+    s/\{\\~N\}|\\~N|\\~\{N\}/Ñ/g;
43
     s/\{\\^o\}|\\^o/ô/g;
44
     s/\{\\^O\}|\\^O/Ô/g;
45
+    s/\{\o\}|\\o/ø/g;
46
+    s/\{\O\}|\\O/Ø/g;
47
+    s/\{\oe\}|\\oe/œ/g;
48
+    s/\{\OE\}|\\OE/Œ/g;
49
     s/\{\\H o\}|\\H o/ő/g;
50
     s/\{\\H O\}|\\H O/Ő/g;
51
+    s/\{\\vo\}|\\v\{o\}|\\v c/ǒ/g;
52
+    s/\{\\vO\}|\\v\{O\}|\\v O/Ǒ/g;
53
     s/\{\\'u\}|\\'u/ú/g;
54
     s/\{\\'U\}|\\'U/Ú/g;
55
     s/\{\\`u\}|\\`u/ù/g;
56
@@ -67,7 +86,12 @@ while(<>) {
57
     s/\{\\H u\}|\\H u/ű/g;
58
     s/\{\\H U\}|\\H U/Ű/g;
59
     s/\{\\ss\}|\\ss |\\"s/ß/g;
60
-    s/\{\\v\{S\}|\{\\v S\}/Š/g;
61
+    s/\{\\vS\}|\\v\{S\}|\\v S/Š/g;
62
+    s/\{\\vs\}|\\v\{s\}|\\v s/š/g;
63
+    s/\{\\'y\}|\\'\{y\}|\\'y/ý/g;
64
+    s/\{\\vZ\}|\\v\{Z\}|\\v Z/Ž/g;
65
+    s/\{\\vz\}|\\v\{z\}|\\v z/ž/g;
66
+    s/\{\\SS\}|\\SS/ϟϟ/g;
67
     s/\{\\[^ ]+//g;
68
     s/([^\\])\{+/$1/g;
69
     s/([^\\])\}+/$1/g;
(-)b/textproc/refdb/files/refdbd.in (-13 / +15 lines)
Lines 1-6 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
# O. Hartmann, Berlin, 2014
3
# O. Hartmann, 2014 - 2022
4
#
4
#
5
#
5
#
6
# PROVIDE: refdbd
6
# PROVIDE: refdbd
Lines 13-25 Link Here
13
#
13
#
14
# in /etc/rc.conf[.local]
14
# in /etc/rc.conf[.local]
15
# 
15
# 
16
# and optionally set the the following variables upon your environment:
16
# and optionally set the the following variables according to your environment:
17
#
17
#
18
# Choose another PIDFILE as the configured and/or default one:
18
# Choose another PIDFILE as the configured and/or default one:
19
# refdbd_pidfile="/var/run/refdbd.pid"
19
# refdbd_pidfile="/var/run/refdbd.pid"
20
#
20
#
21
# To make the refdbd daemon accessible local only (127.0.0.1):
21
# To make the refdbd daemon accessible local only (127.0.0.1), set:
22
# refdbd_local="YES"
22
# refdbd_local="YES"
23
#
23
24
24
. /etc/rc.subr
25
. /etc/rc.subr
25
26
Lines 29-44 rcvar=refdbd_enable Link Here
29
# read settings, set defaults
30
# read settings, set defaults
30
load_rc_config ${name}
31
load_rc_config ${name}
31
32
33
: ${refdbd_enable:="NO"}
34
: ${refdbd_local:="NO"}
35
32
command="%%PREFIX%%/bin/${name}"
36
command="%%PREFIX%%/bin/${name}"
33
globalconfig="%%PREFIX%%/etc/refdb/refdbdrc"
37
globalconfig="%%PREFIX%%/etc/refdb/refdbdrc"
34
pidfile="/var/run/${name}.pid"
38
pidfile="/var/run/${name}.pid"
35
extra_commands="reload"
39
extra_commands="reload"
36
40
37
load_rc_config ${name}
38
39
: ${refdbd_enable:="NO"}
40
: ${refdbd_local:="NO"}
41
42
if checkyesno refdbd_local; then
41
if checkyesno refdbd_local; then
43
  refdbd_local_flags="-I"
42
  refdbd_local_flags="-I"
44
else
43
else
Lines 55-64 refdbd_prestart() Link Here
55
	if [ "x${refdbd_pidfile}" != "x" ]; then
54
	if [ "x${refdbd_pidfile}" != "x" ]; then
56
		pidfile="${refdbd_pidfile}"
55
		pidfile="${refdbd_pidfile}"
57
56
58
	# ... if not configured via rc.conf[.local],
59
	# read the settings in the configure file. We're only interested in
60
	# nonstandard PID file settings
61
	else
57
	else
58
		# ... if not configured via rc.conf[.local],
59
		# read the settings in the configure file. We're only interested in
60
		# nonstandard PID file settings
61
62
		for config in ${globalconfig}; do
62
		for config in ${globalconfig}; do
63
			while read refdbvar refdbval; do
63
			while read refdbvar refdbval; do
64
				if [ -n "${refdbvar}" ]; then
64
				if [ -n "${refdbvar}" ]; then
Lines 70-77 refdbd_prestart() Link Here
70
		done
70
		done
71
	fi
71
	fi
72
72
73
	piddir=`dirname ${pidfile}`
73
	piddir=$( dirname ${pidfile} )
74
	mkdir -p ${piddir}
74
	if [ ! -d "${piddir}" ] ; then
75
		install -d ${piddir}
76
	fi
75
77
76
	refdbd_pid_flags="-P ${pidfile}"
78
	refdbd_pid_flags="-P ${pidfile}"
77
}
79
}
(-)b/textproc/refdb/pkg-message (+42 lines)
Added Link Here
1
[
2
{	type: install
3
	message: <<EOM
4
5
To complete RefDB installation, perform according to DB selection the following:
6
7
For option MYSQL:
8
9
To initialise MySQL, run the following command:
10
  mysql -u root -e "CREATE DATABASE refdb"
11
  Then, for MySQL older than 4.1, run:
12
  mysql -u root refdb < ${PREFIX}/share/refdb/sql/refdb.dump.mysql
13
14
MySQL 4.1 and later, run:
15
  mysql -u root refdb < ${PREFIX}/share/refdb/sql/refdb.dump.mysql41
16
17
18
For option PGSQL:
19
20
To initialise PostgreSQL, run the following commands:
21
  createdb -U postgres -E UNICODE refdb
22
  psql -U postgres refdb < ${PREFIX}/share/refdb/sql/refdb.dump.pgsql
23
24
or, on older PostgreSQL installations, run
25
26
  createdb -U pgsql -E UNICODE refdb
27
  psql -U pgsql refdb < ${PREFIX}/share/refdb/sql/refdb.dump.pgsql
28
29
30
For option SQLITE:
31
32
To initialise SQLite, run the following commands:
33
  cd ${PREFIX}/share/refdb/db
34
  sqlite refdb < ${PREFIX}/share/refdb/sql/refdb.dump.sqlite
35
36
37
For more informations, please feel free to visit
38
	
39
	http://refdb.sourceforge.net/index.html
40
EOM
41
}
42
]
(-)b/textproc/refdb/pkg-plist (-28 / +61 lines)
Lines 6-13 bin/en2ris Link Here
6
bin/marc2ris
6
bin/marc2ris
7
bin/med2ris
7
bin/med2ris
8
bin/refdb-backup
8
bin/refdb-backup
9
bin/refdb-bug
9
bin/refdb-init
10
bin/refdb-init
10
bin/refdb-ms
11
bin/refdb-ms
12
bin/refdb-pubmed
11
bin/refdb-restore
13
bin/refdb-restore
12
bin/refdb-sruserver
14
bin/refdb-sruserver
13
bin/refdb_dos2unix
15
bin/refdb_dos2unix
Lines 19-28 bin/refdbd Link Here
19
bin/refdbib
21
bin/refdbib
20
bin/refdbjade
22
bin/refdbjade
21
bin/refdbnd
23
bin/refdbnd
24
bin/refdbrtf
22
bin/refdbsru
25
bin/refdbsru
23
bin/refdbxml
26
bin/refdbxml
24
bin/refdbxp
27
bin/refdbxp
28
bin/rtfcitations
25
bin/runbib
29
bin/runbib
30
bin/runbib-missing
26
%%ETCDIR%%/bib2riscgirc.example
31
%%ETCDIR%%/bib2riscgirc.example
27
%%ETCDIR%%/bib2risrc.example
32
%%ETCDIR%%/bib2risrc.example
28
%%ETCDIR%%/db2risrc.example
33
%%ETCDIR%%/db2risrc.example
Lines 38-74 bin/runbib Link Here
38
%%ETCDIR%%/refdbdrc.sqlite3.example
43
%%ETCDIR%%/refdbdrc.sqlite3.example
39
%%ETCDIR%%/refdbibrc.example
44
%%ETCDIR%%/refdbibrc.example
40
%%ETCDIR%%/refdbjaderc.example
45
%%ETCDIR%%/refdbjaderc.example
46
%%ETCDIR%%/refdbrtfrc.example
41
%%ETCDIR%%/refdbsrurc.example
47
%%ETCDIR%%/refdbsrurc.example
42
%%ETCDIR%%/refdbxmlrc.example
48
%%ETCDIR%%/refdbxmlrc.example
43
%%ETCDIR%%/runbibrc.example
49
%%ETCDIR%%/runbibrc.example
44
man/man1/bib2ris-utf8.1.gz
50
share/man/man1/bib2ris-utf8.1.gz
45
man/man1/bib2ris.1.gz
51
share/man/man1/bib2ris.1.gz
46
man/man1/db2ris.1.gz
52
share/man/man1/db2ris.1.gz
47
man/man1/eenc.1.gz
53
share/man/man1/eenc.1.gz
48
man/man1/en2ris.1.gz
54
share/man/man1/en2ris.1.gz
49
man/man1/marc2ris.1.gz
55
share/man/man1/marc2ris.1.gz
50
man/man1/med2ris.1.gz
56
share/man/man1/med2ris.1.gz
51
man/man1/refdb-backup.1.gz
57
share/man/man1/refdb-backup.1.gz
52
man/man1/refdb-bug.1.gz
58
share/man/man1/refdb-bug.1.gz
53
man/man1/refdb-ms.1.gz
59
share/man/man1/refdb-ms.1.gz
54
man/man1/refdb-restore.1.gz
60
share/man/man1/refdb-pubmed.1.gz
55
man/man1/refdb-sruserver.1.gz
61
share/man/man1/refdb-restore.1.gz
56
man/man1/refdb_dos2unix.1.gz
62
share/man/man1/refdb-sruserver.1.gz
57
man/man1/refdb_latex2utf8txt.1.gz
63
share/man/man1/refdb_dos2unix.1.gz
58
man/man1/refdba.1.gz
64
share/man/man1/refdb_latex2utf8txt.1.gz
59
man/man1/refdbc.1.gz
65
share/man/man1/refdba.1.gz
60
man/man1/refdbctl.1.gz
66
share/man/man1/refdbc.1.gz
61
man/man1/refdbd.1.gz
67
share/man/man1/refdbctl.1.gz
62
man/man1/refdbib.1.gz
68
share/man/man1/refdbd.1.gz
63
man/man1/refdbjade.1.gz
69
share/man/man1/refdbib.1.gz
64
man/man1/refdbnd.1.gz
70
share/man/man1/refdbjade.1.gz
65
man/man1/refdbsru.1.gz
71
share/man/man1/refdbnd.1.gz
66
man/man1/refdbxml.1.gz
72
share/man/man1/refdbrtf.1.gz
67
man/man1/refdbxp.1.gz
73
share/man/man1/refdbsru.1.gz
68
man/man1/runbib.1.gz
74
share/man/man1/refdbxml.1.gz
69
man/man8/refdb-init.8.gz
75
share/man/man1/refdbxp.1.gz
70
man/man8/refdb.8.gz
76
share/man/man1/rtfcitations.1.gz
71
man/man8/refdb.sh.8.gz
77
share/man/man1/runbib-missing.1.gz
78
share/man/man1/runbib.1.gz
79
share/man/man8/refdb-init.8.gz
80
share/man/man8/refdb.8.gz
81
share/man/man8/refdb.sh.8.gz
72
%%DATADIR%%/declarations/docbook.dcl
82
%%DATADIR%%/declarations/docbook.dcl
73
%%DATADIR%%/declarations/xml.dcl
83
%%DATADIR%%/declarations/xml.dcl
74
%%DATADIR%%/dsssl/bibdb2tei.dsl
84
%%DATADIR%%/dsssl/bibdb2tei.dsl
Lines 93-98 man/man8/refdb.sh.8.gz Link Here
93
%%DATADIR%%/dtd/xnote.dtd
103
%%DATADIR%%/dtd/xnote.dtd
94
%%DATADIR%%/dtd/xnote.rnc
104
%%DATADIR%%/dtd/xnote.rnc
95
%%DATADIR%%/dtd/xnote.rng
105
%%DATADIR%%/dtd/xnote.rng
106
%%DATADIR%%/examples/Makefile.rtf.template
96
%%DATADIR%%/examples/Makefile.template
107
%%DATADIR%%/examples/Makefile.template
97
%%DATADIR%%/examples/dbtest.sgml
108
%%DATADIR%%/examples/dbtest.sgml
98
%%DATADIR%%/examples/dbtest.short.sgml
109
%%DATADIR%%/examples/dbtest.short.sgml
Lines 122-136 man/man8/refdb.sh.8.gz Link Here
122
%%DATADIR%%/sru/refdbsru.css
133
%%DATADIR%%/sru/refdbsru.css
123
%%DATADIR%%/sru/refdbsru.xsl
134
%%DATADIR%%/sru/refdbsru.xsl
124
%%DATADIR%%/sru/risx.xsl
135
%%DATADIR%%/sru/risx.xsl
136
%%DATADIR%%/styles/AMA.xml
125
%%DATADIR%%/styles/APA.xml
137
%%DATADIR%%/styles/APA.xml
138
%%DATADIR%%/styles/Anesth.Analg.xml
139
%%DATADIR%%/styles/Ann.Biomed.Eng.xml
140
%%DATADIR%%/styles/Ann.Thorac.Surg.xml
141
%%DATADIR%%/styles/Artif.Organs.xml
142
%%DATADIR%%/styles/Biochem.Biophys.Res.Commun.xml
143
%%DATADIR%%/styles/Biochem.Pharmacol.xml
126
%%DATADIR%%/styles/Biomaterials.xml
144
%%DATADIR%%/styles/Biomaterials.xml
145
%%DATADIR%%/styles/Br.J.Pharmacol.xml
146
%%DATADIR%%/styles/CHA-MC.xml
147
%%DATADIR%%/styles/Chicago.xml
148
%%DATADIR%%/styles/Eur.J.Cardiothorac.Surg.xml
127
%%DATADIR%%/styles/Eur.J.Pharmacol.xml
149
%%DATADIR%%/styles/Eur.J.Pharmacol.xml
150
%%DATADIR%%/styles/Harvard.xml
128
%%DATADIR%%/styles/J.Biol.Chem.xml
151
%%DATADIR%%/styles/J.Biol.Chem.xml
152
%%DATADIR%%/styles/J.Pharmacol.Exp.Ther.xml
153
%%DATADIR%%/styles/J.Tissue_Eng.Regen.Med.xml
154
%%DATADIR%%/styles/J.Vasc.Res.xml
155
%%DATADIR%%/styles/MLA.xml
129
%%DATADIR%%/styles/Murdoch.Law.xml
156
%%DATADIR%%/styles/Murdoch.Law.xml
157
%%DATADIR%%/styles/Thromb.Haemost.xml
130
%%DATADIR%%/styles/Tissue_Eng.xml
158
%%DATADIR%%/styles/Tissue_Eng.xml
159
%%DATADIR%%/styles/Turabian.xml
160
%%DATADIR%%/styles/Z.Geburtsh.Neonatol.xml
161
%%DATADIR%%/styles/authoryear-de.xml
131
%%DATADIR%%/styles/bibtex-abbrev.xml
162
%%DATADIR%%/styles/bibtex-abbrev.xml
132
%%DATADIR%%/styles/bibtex-full.xml
163
%%DATADIR%%/styles/bibtex-full.xml
133
%%DATADIR%%/styles/citekey.xml
164
%%DATADIR%%/styles/citekey.xml
165
%%DATADIR%%/styles/ifmbe_proceedings.xml
134
%%DATADIR%%/styles/schemas.xml
166
%%DATADIR%%/styles/schemas.xml
135
%%DATADIR%%/www/css/main.css
167
%%DATADIR%%/www/css/main.css
136
%%DATADIR%%/www/css/navigationlist.css
168
%%DATADIR%%/www/css/navigationlist.css
Lines 176-180 man/man8/refdb.sh.8.gz Link Here
176
%%DATADIR%%/xsl/tei-refdb-xsl/tei-lib/tei-refdblib.xsl
208
%%DATADIR%%/xsl/tei-refdb-xsl/tei-lib/tei-refdblib.xsl
177
@dir %%DATADIR%%/db
209
@dir %%DATADIR%%/db
178
@dir var/lib/refdb/db
210
@dir var/lib/refdb/db
211
@dir var/lib/refdb
179
@dir var/log
212
@dir var/log
180
@dir var/run
213
@dir var/run

Return to bug 265105