pkgsrc/net/yale-tftpd/Makefile
he 4b48e335d6 Update patches for this package so that it builds with -Werror and
-Wall with the gcc in NetBSD 5.1, i.e. gcc 4.1.3.  Fixes prompted
by reports that a build outside of pkgsrc for "64-bit Linux" (amd64)
but using this set of patches, gets a segfault, and this fixes that
problem.  Bump pkgrevision.
2012-01-25 09:56:08 +00:00

37 lines
998 B
Makefile

# $NetBSD: Makefile,v 1.21 2012/01/25 09:56:08 he Exp $
DISTNAME= yale-tftpd-3.0
PKGREVISION= 6
CATEGORIES= net
MASTER_SITES= ftp://ftp.cert.dfn.de/pub/tools/net/yale-tftpd/
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Enhanced tftpd(8) from Yale University and cisco Systems
PKG_DESTDIR_SUPPORT= user-destdir
USE_BSD_MAKEFILE= yes
WRKSRC= ${WRKDIR}
CFLAGS.DragonFly+= -DHAVE_STRERROR
CFLAGS.FreeBSD+= -DHAVE_STRERROR
CFLAGS.Linux+= -DHAVE_STRERROR
CFLAGS.SunOS+= -DHAVE_STRERROR -DBROKEN_TH_STUFF
LDFLAGS.SunOS+= -lsocket -lnsl
USE_LANGUAGES= c
SUBST_CLASSES+= ytftpdman
SUBST_STAGE.ytftpdman= post-configure
SUBST_MESSAGE.ytftpdman= Fixing pathnames references
SUBST_FILES.ytftpdman= tftpd.8
SUBST_SED.ytftpdman= -e 's|@ETCDIR@|${PKG_SYSCONFDIR}|g'
SUBST_SED.ytftpdman+= -e 's|@PREFIX@|${PREFIX}|g'
INSTALLATION_DIRS= libexec ${PKGMANDIR}/cat8 ${PKGMANDIR}/man8
# code is not clean enough for gcc-4.5
BUILDLINK_TRANSFORM+= rm:-Werror
.include "../../mk/bsd.pkg.mk"