OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
make plist ignores rcscript

From: Craig Skinner (britvault01ukfsn.org)
Date: Wed May 01 2013 - 12:51:35 CDT


All makes (incl package) were fine until I added an rc script in
[distname]/pkg/

'make fake' installs the rc script just fine in
.../pobj/.../fake...../etc/rc.d/

These lines in pkg/PLIST get a 'does not belong':

....
....
....
cwd ${RCDIR}
mode
owner
group
rcscript ${DISTNAME}'
[or rcscript vgrd]

OR

...
...
....
cwd /
mode
owner
group
rcscript etc/rc.d/${DISTNAME}
[or rcscript etc/rc.d/vgrd]

make plist says:
...
...
Sorting out destdir files
/etc/rc.d/vgrd does not belong

These lines in pkg/PLIST get a 'Bogus element outside of every prefix':

....
....
....
[NOTHING about the rc script]

OR

...
...
cwd /
mode
owner
group
rcscript ${RCDIR}/${DISTNAME}
[or rcscript /etc/rc.d/vgrd]

....
....
Sorting out destdir files
make-plist: Bogus element outside of every prefix: /etc/rc.d/vgrd

I'm running 5.2 stable with today's annon cvs get ports (src still as
per 5.2's tgz)

$ fgrep -i rcscript /usr/sbin/pkg_*
[nothing]

$ fgrep -iR rcscript /usr/ports/infrastructure
[nothing]

$ fgrep -inR rcdir /usr/ports/infrastructure
/usr/ports/infrastructure/mk/bsd.port.mk:361:RCDIR ?= /etc/rc.d
/usr/ports/infrastructure/mk/bsd.port.mk:932: ^RCDIR
/usr/ports/infrastructure/mk/bsd.port.mk:2777:
r=${WRKINST}${RCDIR}/$${i%.rc}; \

Help appreciated,
Craig.