blob: 48bbcf85e5b33429aecb23732dad0620fe5fc6d9 (
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
52
53
54
55
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: Linux eDonkey server
# Date created: 18 December 2001
# Whom: Yen-Ming Lee <leeym@leeym.com> & Mario S F Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= edonkey
PORTVERSION= 16.39
CATEGORIES= net linux
MASTER_SITES= http://www.edonkey2000.com/files/
PKGNAMEPREFIX= linux-
PKGNAMESUFFIX= -server
DISTNAME= dserver
EXTRACT_SUFX= .gz
EXTRACT_ONLY=
MAINTAINER= lioux@FreeBSD.org
ONLY_FOR_ARCHS= i386
USE_LINUX= yes
NO_WRKSUBDIR= yes
NO_BUILD= yes
STRIP=
#
PKGDEINSTALL= ${PKGINSTALL}
STRIP_CMD= ${LINUXBASE}/usr/bin/strip
.if exists(/usr/bin/brandelf)
BRANDELF?= /usr/bin/brandelf
.else
BRANDELF?= brandelf
.endif
BINARY_NAME= dserver
RC_SAMPLE= edonkey2000-server.sh.sample
post-extract:
@${GZCAT} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} > ${WRKSRC}/${BINARY_NAME}
post-patch:
@${SED} -e "s|%%PREFIX%%|${PREFIX}|" \
-e "s|%%LOCALBASE%%|${LOCALBASE}|" ${FILESDIR}/${RC_SAMPLE} \
> ${WRKDIR}/${RC_SAMPLE}
do-install:
# pre-install work: create user ids, ...
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
${PKGINSTALL} ${PKGNAME} PRE-INSTALL
@${INSTALL_PROGRAM} ${WRKDIR}/${BINARY_NAME} ${PREFIX}/sbin
@${INSTALL_SCRIPT} ${WRKSRC}/${RC_SAMPLE} ${PREFIX}/etc/rc.d
@${INSTALL_DATA} ${FILESDIR}/donkey.ini ${PREFIX}/etc/edonkey2000
.include <bsd.port.pre.mk>
pre-install:
.if exists(${STRIP_CMD})
@${STRIP_CMD} ${WRKSRC}/${BINARY_NAME}
.endif
@${BRANDELF} -t Linux ${WRKSRC}/${BINARY_NAME}
.include <bsd.port.post.mk>
|