Skip to content

Commit

Permalink
net-mgmt/nagios: Avoid deprecated @exec/@unexec
Browse files Browse the repository at this point in the history
Utilize USES=localbase while I am here

Approved by:	portmgr (blanket)
  • Loading branch information
5u623l20 committed Nov 18, 2023
1 parent 4f698c4 commit 0eae561
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions net-mgmt/nagios/Makefile
Expand Up @@ -15,7 +15,7 @@ LIB_DEPENDS= libltdl.so:devel/libltdl \

PORTSCOUT= limit:^3.

USES= cpe perl5 php
USES= cpe localbase perl5 php
USE_PERL5= build
USE_RC_SUBR= nagios

Expand All @@ -39,10 +39,6 @@ CONFIGURE_ARGS= --with-command-user=${NAGIOSUSER} \
ac_cv_lib_iconv_main=no
CONFIGURE_ENV= PERL=${PERL}

CPPFLAGS+= -I${LOCALBASE}/include
CFLAGS+= ${CPPFLAGS}
LIBS+= -L${LOCALBASE}/lib

MAKE_JOBS_UNSAFE= yes

INSTALL_TARGET= install install-commandmode install-config
Expand Down
4 changes: 2 additions & 2 deletions net-mgmt/nagios/pkg-plist
Expand Up @@ -379,5 +379,5 @@ etc/nagios/resource.cfg-sample
@dir(%%NAGIOSUSER%%,%%NAGIOSGROUP%%,775) %%NAGIOSDIR%%/checkresults
@dir(%%NAGIOSUSER%%,%%WWWGRP%%,775) %%NAGIOSDIR%%/rw
@dir(%%NAGIOSUSER%%,%%NAGIOSGROUP%%,775) %%NAGIOSDIR%%
@unexec if [ -d %%NAGIOSDIR%% ]; then echo "==> If you are permanently removing this port, you should do a ``rm -rf %%NAGIOSDIR%%`` to remove any files left behind."; fi
@unexec if [ -d %%ETCDIR%% ]; then echo "==> If you are permanently removing this port, you should do a ``rm -rf %%ETCDIR%%`` to remove any configuration files."; fi
@postunexec if [ -d %%NAGIOSDIR%% ]; then echo "==> If you are permanently removing this port, you should do a ``rm -rf %%NAGIOSDIR%%`` to remove any files left behind."; fi
@postunexec if [ -d %%ETCDIR%% ]; then echo "==> If you are permanently removing this port, you should do a ``rm -rf %%ETCDIR%%`` to remove any configuration files."; fi

0 comments on commit 0eae561

Please sign in to comment.