1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/sysutils/bsdadminscripts/Makefile
Eygene Ryabinkin 03ceb9d488 Allow pkg_libchk to work from non-CSH shells
/bin/sh does not set OSTYPE, so this variable is inherited from the
shell from which pkg_libchk is invoked.  From all standard shells in
the base system, only csh and tcsh do set this variable, so when
pkg_libchk is invoked from sh (that is not invoked from csh-like
shell), this variable will be empty.  Moreover, bash sets OSTYPE to
freebsdX.Y, so grepping on output of 'readelf -e' wont work either.

'uname -s' provides much more reliable way to get the name of the
operating system and all *BSD ELF ABI types inside readelf correspond
to the 'uname -s':
{{{
    case ELFOSABI_NETBSD:       return "UNIX - NetBSD";
    case ELFOSABI_FREEBSD:      return "UNIX - FreeBSD";
    case ELFOSABI_OPENBSD:      return "UNIX - OpenBSD";
}}}

PR: ports/158967
Approved-by: Dominic Fandrey <kamikaze@bsdforen.de> (maintainer), erwin (mentor)
Feature-safe: yes
2011-07-18 10:06:50 +00:00

51 lines
1.2 KiB
Makefile

# New ports collection makefile for: bsdadminscripts
# Date created: 15 May 2006
# Whom: Dominic Fandrey <lon_kamikaze@gmx.de>
#
# $FreeBSD$
#
PORTNAME= bsdadminscripts
PORTVERSION= 6.1.1
PORTREVISION= 1
CATEGORIES= sysutils ports-mgmt
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
MAINTAINER= kamikaze@bsdforen.de
COMMENT= A collection of administration scripts
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
NO_BUILD= yes
MANCOMPRESSED= yes
.if defined(NOPORTDOCS)
NOPORTDOCS= -nodoc
.else
MAN1= bsdadminscripts.1 \
buildflags.mk.1 buildflags.conf.1 buildflags.awk.1 \
distviper.1 \
pkg_libchk.1 \
pkg_upgrade.1 \
pkg_validate.1 \
portconfig.1 \
rcstart.1 \
uma.1
RC_SCRIPTS= stop restart status onestart onestop onerestart onestatus
PORT_SCRIPTS= build clean fetch package \
config-recursive fetch-recursive
MLINKS+= ${RC_SCRIPTS:S,^,rc,:S,$,.1,:S,^,rcstart.1 ,} \
${PORT_SCRIPTS:S,^,port,:S,$,.1,:S,^,portconfig.1 ,}
.endif
plist: patch
@cd ${WRKSRC}; ./plist.sh -nodoc > ${PLIST}
@${ECHO} "@dirrm ${DATADIR_REL}" >> ${PLIST}
do-install:
@cd ${WRKSRC}; ./install.sh \
-prefix=${PREFIX} -ports=${PORTSDIR} -distdir=${DISTDIR} \
-datadir=${DATADIR} ${NOPORTDOCS}
.include <bsd.port.mk>