- remove a dist site

- change maintainer, no good having a FreeBSD ports maintainer listed
- use MAKE_FLAGS over patching the Makefile
- remove deprecated variables
- ${WRKDIR} -> ${WRKSRC}
- ${MKDIR} -> ${INSTALL_DATA_DIR}
This commit is contained in:
brad 2000-02-09 18:07:15 +00:00
parent d2d18f8769
commit 9476e41a5a
2 changed files with 11 additions and 51 deletions

View File

@ -1,39 +1,30 @@
# New ports collection makefile for: sharity-light
# Version required: 1.0
# Date created: 14 June 1997
# Whom: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
#
# $OpenBSD: Makefile,v 1.4 2000/01/03 17:57:32 angelos Exp $
# $OpenBSD: Makefile,v 1.5 2000/02/09 18:07:15 brad Exp $
# $FreeBSD: Makefile,v 1.10 1999/01/06 17:11:23 dt Exp $
#
DISTNAME= Sharity-Light.1.2
PKGNAME= sharity-light-1.2
CATEGORIES= net
MASTER_SITES= ftp://ftp.obdev.at/pub/Products/Sharity-Light/ \
ftp://ftp.warpnet.ro/mirrors/ftp.obdev.at/pub/Products/Sharity-Light/ \
http://www.freebsd.org/~dt/distfiles/
ftp://ftp.warpnet.ro/mirrors/ftp.obdev.at/pub/Products/Sharity-Light/
MAINTAINER= dt@FreeBSD.ORG
MAINTAINER= ports@openbsd.org
MAN8= smbmount.8
MAKE_FLAGS= ARCH="" THE_CC="${CC}" CFLAGS="${CFLAGS} -Wall"
post-extract:
@${MKDIR} ${WRKDIR}/unshlight
@${CP} ${FILESDIR}/unshlight.c ${WRKDIR}/unshlight
@${CP} ${FILESDIR}/Makefile.unshlight ${WRKDIR}/unshlight/Makefile
@mkdir -p ${WRKSRC}/unshlight
@cp -f ${FILESDIR}/unshlight.c ${WRKSRC}/unshlight
@cp -f ${FILESDIR}/Makefile.unshlight ${WRKSRC}/unshlight/Makefile
post-build:
cd ${WRKDIR}/unshlight && make
@cd ${WRKSRC}/unshlight && env ${MAKE_ENV} make ${MAKE_FLAGS}
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/Sharity-Light
${INSTALL_PROGRAM} ${WRKSRC}/shlight ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKDIR}/unshlight/unshlight ${PREFIX}/sbin
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/Sharity-Light
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/Sharity-Light/README
${INSTALL_PROGRAM} ${WRKSRC}/unshlight/unshlight ${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/Sharity-Light
${INSTALL_DATA} ${WRKSRC}/FAQ.txt ${PREFIX}/share/doc/Sharity-Light/FAQ
.endif
${INSTALL_MAN} ${WRKSRC}/smbmount.8 ${PREFIX}/man/man8
.include <bsd.port.mk>

View File

@ -1,31 +0,0 @@
--- Makefile.orig Mon Jan 4 19:07:31 1999
+++ Makefile Mon Jan 4 19:08:07 1999
@@ -12,11 +12,11 @@
##############################################################################
# For NEXTSTEP/OPENSTEP:
-CFLAGS = -Wall -O2 -traditional-cpp -g
+#CFLAGS = -Wall -O2 -traditional-cpp -g
# put your architecture here:
-ARCH = -arch i386
-THE_CC = cc
-RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
+#ARCH = -arch i386
+#THE_CC = cc
+#RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
# For Linux: (use static linking because of libc5/libc6 troubles)
#CFLAGS = -Wall -O2 -g
@@ -24,9 +24,9 @@
#RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
# For FreeBSD
-#CFLAGS = -Wall -O2
-#THE_CC = cc
-#RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
+CFLAGS += -Wall
+THE_CC := $(CC)
+RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
# For NetBsd
#CFLAGS = -Wall -O2 -DNETBSD