aboutsummaryrefslogtreecommitdiffstats
path: root/net/mars_nwe/Makefile
blob: aff8dde7587565f9548ce52fe6a16fa3ff341635 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: Boris Popov <bp@FreeBSD.org>
# $FreeBSD$

PORTNAME=   mars_nwe
PORTVERSION=    0.99.b20
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   ftp://www.compu-art.de/mars_nwe/ \
        ftp://ftp.gwdg.de/pub/linux/misc/ncpfs/mars_nwe/ \
        ftp://ftp.butya.kz/pub/mars_nwe/
DISTNAME=   mars_nwe-0.99.pl20
EXTRACT_SUFX=   .tgz

MAINTAINER= araujo@FreeBSD.org
COMMENT=    Netware server emulator for Un*x systems

WRKSRC=     ${WRKDIR}/mars_nwe

PLIST=  ${WRKDIR}/PLIST.DYN

NO_STAGE=   yes
.include <bsd.port.pre.mk>

.if ${OSVERSION} > 900007
BROKEN=     fails to build with new utmpx
.endif

do-install:
    @(cd ${WRKSRC} && ./mk.li install)
    @${INSTALL_DATA} ${WRKSRC}/examples/nw.ini ${PREFIX}/etc/nwserv.conf.example
    @${ECHO} "Please read details in ${WORKDIR}/mars_nwe/doc directory."

pre-install:
    @${CP} ${PKGDIR}/pkg-plist ${WRKDIR}/PLIST.DYN
.if !defined(NOPORSDOCS)
    @${CAT} ${PKGDIR}/pkg-plist.DOC >> ${WRKDIR}/PLIST.DYN
.endif

post-install:
    @${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" \
        ${FILESDIR}/nwserv.sh \
        >${PREFIX}/etc/rc.d/nwserv.sh
    @${CHMOD} 0755 ${PREFIX}/etc/rc.d/nwserv.sh
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}/
    ${RM} -f ${WRKSRC}/doc/*.orig
    ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}/
.endif
    @${ECHO_MSG} "Look in ${DOCSDIR} for documentation."

.include <bsd.port.post.mk>