www/webtrees21: Add new port

webtrees is the web's leading online collaborative genealogy application.
webtrees works from standard GEDCOM files, and is therefore compatible
with every major desktop application.  webtrees aims to be efficient and
effective by using the right combination of third-party tools, design
techniques and open standards.

WWW: http://webtrees.net/

PR:		267463
This commit is contained in:
Krzysztof 2023-01-16 18:27:16 +01:00 committed by Mikael Urankar
parent 82f3677256
commit 19aa315a3a
7 changed files with 9443 additions and 0 deletions

View File

@ -2387,6 +2387,7 @@
SUBDIR += webstone-ssl
SUBDIR += webtrees
SUBDIR += webtrees20
SUBDIR += webtrees21
SUBDIR += wget2
SUBDIR += wgetpaste
SUBDIR += wiki-tui

36
www/webtrees21/Makefile Normal file
View File

@ -0,0 +1,36 @@
PORTNAME= webtrees
PORTVERSION= 2.1.7
CATEGORIES= www
MASTER_SITES= https://github.com/fisharebest/${PORTNAME}/releases/download/${PORTVERSION}/
PKGNAMESUFFIX= 21
MAINTAINER= ports@bsdserwis.com
COMMENT= Online genealogy viewer (for PHP 7.4-8.1)
WWW= https://webtrees.net/
LICENSE= GPLv3+
USES= cpe php shebangfix zip
USE_PHP= calendar dom filter gd json pcre pdo_mysql session simplexml xml
SHEBANG_FILES= webtrees/vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php
WWWDIR= ${PREFIX}/www/webtrees${PKGNAMESUFFIX}
EXTRACT_AFTER_ARGS= -d ${WRKSRC}
NO_ARCH= yes
NO_BUILD= yes
SUB_FILES= pkg-message pkg-deinstall
SUB_LIST= VERSION_SUFFIX=${PKGNAMESUFFIX}
do-install:
-${MKDIR} ${STAGEDIR}${WWWDIR}
@cd ${WRKSRC}/${PORTNAME} && ${COPYTREE_BIN} . ${STAGEDIR}${WWWDIR}
@(cd ${WRKSRC}/${PORTNAME}; ${FIND} . -not -type d) | ${SORT} | \
${SED} -ne 's,^${PORTNAME}/,${WWWDIR_REL}/,p' >> ${TMPPLIST}
@${ECHO_CMD} \
'@postexec ${CHOWN} -R ${WWWOWN}:${WWWGRP} %D/${WWWDIR_REL}/data' \
>> ${TMPPLIST}
.include <bsd.port.mk>

3
www/webtrees21/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1667220461
SHA256 (webtrees-2.1.7.zip) = 47ac8c5ad92f177a3be39bf498419f910767fe790ff3ce1d29ed0f65780ac116
SIZE (webtrees-2.1.7.zip) = 32269631

View File

@ -0,0 +1,26 @@
#!/bin/sh
case "$2" in
POST-DEINSTALL)
if [ -d %%WWWDIR%%/data ]; then
cat <<!
=========================================================================
There remains some webtrees local configuration in %%WWWDIR%%/data.
If you plan on reinstalling webtrees, leave this configuration there and
it will be reused by the new version.
If you are completely uninstalling webtrees, please delete this directory
and %%WWWDIR%% by hand.
You may want to save your GEDCOM file(s) from the MySQL server, too. To
do that, you will need to reinstall webtrees, log on as an administrator
and select:
My Page >> GEDCOM Administration >> Download
This will let you save your family tree data in a foo.ged GEDCOM file
which you can upload into most other ancestry software or websites.
=========================================================================
!
fi
;;
esac

View File

@ -0,0 +1,38 @@
[
{ type: install
message: <<EOM
The following configuration will need to be done prior to using
webtrees for the first time:
1. For installation on the apache web server, add the following to your
apache site configuration, and restart the web server:
Alias /webtrees%%VERSION_SUFFIX%% %%WWWDIR%%/
### Add the AcceptPathInfo directive only for Apache 2.0.30
### or later.
AcceptPathInfo On
<Directory %%WWWDIR%%>
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
2. Webtrees uses a MySQL database. Configure a MySQL webtrees user
and database using commands such as (substitute PASSWD for something
of your own choosing):
mysql> create user webtrees%%VERSION_SUFFIX%%@localhost identified by PASSWD;
mysql> create database webtrees%%VERSION_SUFFIX%%;
mysql> grant all on webtrees%%VERSION_SUFFIX%%.* to webtrees%%VERSION_SUFFIX%%@localhost;
3. Configure webtrees by browsing to the webtrees URL:
http://your.server.com/webtrees%%VERSION_SUFFIX%%/
and you should be taken to the setup wizard, which will lead you
through setting up webtrees: asking for the database server, database
user and database name, and then assist you in creating a webtrees
admin account, etc.
EOM
}
]

5
www/webtrees21/pkg-descr Normal file
View File

@ -0,0 +1,5 @@
webtrees is the web's leading online collaborative genealogy
application. webtrees works from standard GEDCOM files, and is
therefore compatible with every major desktop application. webtrees
aims to be efficient and effective by using the right combination
of third-party tools, design techniques and open standards.

9334
www/webtrees21/pkg-plist Normal file

File diff suppressed because it is too large Load Diff