pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/anubis



Module Name:    pkgsrc
Committed By:   ryoon
Date:           Sat May 24 14:41:18 UTC 2025

Modified Files:
        pkgsrc/www/anubis: Makefile
        pkgsrc/www/anubis/files: anubis.sh

Log Message:
www/anubis: Read default.env configuration file in rc script

* Remove command line option, define SERVE_ROBOTS_TXT=true
  in default.env instead.
* Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/www/anubis/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/anubis/files/anubis.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/anubis/Makefile
diff -u pkgsrc/www/anubis/Makefile:1.4 pkgsrc/www/anubis/Makefile:1.5
--- pkgsrc/www/anubis/Makefile:1.4      Thu May 22 15:14:14 2025
+++ pkgsrc/www/anubis/Makefile  Sat May 24 14:41:18 2025
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2025/05/22 15:14:14 ryoon Exp $
+# $NetBSD: Makefile,v 1.5 2025/05/24 14:41:18 ryoon Exp $
 
 DISTNAME=      anubis-1.18.0
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    www
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=TecharoHQ/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}

Index: pkgsrc/www/anubis/files/anubis.sh
diff -u pkgsrc/www/anubis/files/anubis.sh:1.1 pkgsrc/www/anubis/files/anubis.sh:1.2
--- pkgsrc/www/anubis/files/anubis.sh:1.1       Thu May 22 15:14:15 2025
+++ pkgsrc/www/anubis/files/anubis.sh   Sat May 24 14:41:18 2025
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: anubis.sh,v 1.1 2025/05/22 15:14:15 ryoon Exp $
+# $NetBSD: anubis.sh,v 1.2 2025/05/24 14:41:18 ryoon Exp $
 #
 # PROVIDE: anubis
 # REQUIRE: DAEMON
@@ -18,9 +18,12 @@ anubis_group="@APACHE_GROUP@"
 start_precmd="anubis_precmd"
 start_cmd="anubis_start"
 start_postcmd="anubis_poststart"
+anubis_environment_file="@PREFIX@/etc/anubis/default.env"
 
 anubis_precmd()
 {
+       export $(@XARGS@ < ${anubis_environment_file})
+
        if [ ! -d @VARBASE@/run/${name} ]; then
                @MKDIR@ @VARBASE@/run/${name}
                @CHOWN@ ${anubis_user}:${anubis_group} @VARBASE@/run/${name}
@@ -29,7 +32,7 @@ anubis_precmd()
 
 anubis_start()
 {
-       @SU@ -m ${anubis_user} -c "${command} -serve-robots-txt" >> @VARBASE@/log/anubis.log 2>&1 &
+       @SU@ -m ${anubis_user} -c "${command}" >> @VARBASE@/log/anubis.log 2>&1 &
 }
 
 anubis_poststart() {



Home | Main Index | Thread Index | Old Index