CONTENTS


Lastmodified 2022-05-19 (木) 08:29:12


munin and Nextcloud

munin が動作停止しているサーバがあって、そこにはNextcloud が正常稼働している。Nextcloud は、ports では無く手動インストールしているので、迂闊に pkg autoremove すると、停止するなど影響がでかねないので、要注意。ということで、Nextcloud のports がどんなライブラリが必要かというと、

/usr/ports/www/nextcloud/Makefile

ORTNAME=	nextcloud
PORTVERSION=	23.0.4
CATEGORIES=	www
MASTER_SITES=	https://download.nextcloud.com/server/releases/
PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
DIST_SUBDIR=	${PORTNAME}

MAINTAINER=	brnrd@FreeBSD.org
COMMENT=	Personal cloud which runs on your own server

LICENSE=	AGPLv3

I GNORE_WITH_PHP=81

USES=		cpe gettext-runtime php:flavors,web tar:bzip2
USE_PHP=	bcmath bz2 ctype curl dom fileinfo filter gd gmp hash iconv \
		json mbstring pcntl pdo posix session simplexml xml xmlreader \
		xmlwriter xsl zip zlib

となっている。2022年5月6日時点では、Nextcloud 24.0.0 が最新なので、一個前のバージョンの様。でも、良い感じでキャッチアップしてるかも。ports版にしてみようかしらん? ともあれ、munin の動作言語、python 関連は使用していない模様。

手動インストール版のnextcloud 23.0.4 のバックアップを取って、ports 版を上書きし、package delete すれば、依存関係アプリが正確に把握出来るかも?

ports 版 Nextcloud install

portinstall -f www/nextcloud

これで、パッケージ名、nextcloud-php80-23.0.4 がインストールされた。

 # pkg delete nextcloud-php80-23.0.4
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
       nextcloud-php80: 23.0.4

Number of packages to be removed: 1

The operation will free 419 MiB.

Proceed with deinstalling packages? [y/N]:

# pkg info -r nextcloud-php80-23.0.4
nextcloud-php80-23.0.4:

と、依存関係は素っ気ないw。

インストール時の記録からは、以下のパッケージが必要の模様。

===>   nextcloud-php80-23.0.4 depends on package: php80-pecl-APCu>0 - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/include/php/main/php.h - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/bcmath.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/bz2.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/ctype.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/curl.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/dom.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/fileinfo.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/filter.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/gd.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/gmp.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/iconv.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/mbstring.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/pcntl.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/pdo.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/posix.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/session.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/simplexml.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/xml.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/xmlreader.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/xmlwriter.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/xsl.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/zip.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/zlib.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/exif.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/intl.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/ldap.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/pdo_mysql.so - found
===>   nextcloud-php80-23.0.4 depends on file: /usr/local/lib/php/20200930-zts/opcache.so - found
===>   Generating temporary packing list
install  -m 555 /usr/ports/www/nextcloud/work-php80/config.sample.php  /usr/ports/www/nextcloud/work-php80/stage/usr/local/www/nextcloud/config/config.sample.php

いずれにせよ、python のライブラリは不要の模様。ということで、munin が動作しないサーバの、python38 と munin を入れ換えてみる。


Total access 607:本日 1:昨日 0

Counter: 607, today: 1, yesterday: 0

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS