Lines 5-43
Link Here
|
5 |
# $FreeBSD: ports/shells/wapsh/Makefile,v 1.11 2005/02/21 01:19:33 kris Exp $ |
5 |
# $FreeBSD: ports/shells/wapsh/Makefile,v 1.11 2005/02/21 01:19:33 kris Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= wapsh |
8 |
PORTNAME= wapsh |
9 |
PORTVERSION= 1.0 |
9 |
PORTVERSION= 1.0.1 |
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= shells |
11 |
CATEGORIES= shells |
11 |
MASTER_SITES= http://www.exolution.de/geschaeft/produkte/wapsh/ |
12 |
MASTER_SITES= http://www.exolution.de/wapsh/ |
12 |
DISTNAME= ${PORTNAME}_${PORTVERSION} |
13 |
DISTNAME= ${PORTNAME}_${PORTVERSION} |
13 |
|
14 |
|
14 |
MAINTAINER= shaun@inerd.com |
15 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= A system to allow remote shell logins via a WAP phone or web browser |
16 |
COMMENT= A system to allow remote shell logins via a WAP phone or web browser |
16 |
|
17 |
|
17 |
USE_RC_SUBR= htshd.sh |
18 |
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/} |
18 |
|
19 |
|
19 |
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/} |
20 |
USERGUIDEDOCS= Image10.jpg Image11.jpg Image12.jpg Image13.jpg \ |
20 |
|
21 |
Image14.jpg Image15.jpg Image16.jpg Image17.jpg \ |
21 |
WWWOWN?= www |
22 |
Image18.jpg Image19.jpg Image20.jpg Image21.jpg \ |
22 |
WWWGRP?= www |
23 |
Image22.jpg Image23.jpg Image24.jpg Image25.gif \ |
23 |
WWWDIR?= www/data/${PORTNAME} |
24 |
Image26.jpg Image27.jpg Image28.jpg Image29.jpg \ |
24 |
DATADIR= ${PREFIX}/${WWWDIR} |
25 |
Image30.jpg Image31.jpg Image32.jpg Image33.jpg \ |
25 |
SUB_FILES= pkg-message |
26 |
Image34.jpg Image35.jpg Image36.jpg Image37.jpg \ |
26 |
|
27 |
Image38.jpg Image39.jpg Image4.gif Image40.jpg \ |
27 |
USERGUIDEDOCS= Image10.jpg Image11.jpg Image12.jpg Image13.jpg \ |
28 |
Image41.jpg Image42.jpg Image43.jpg Image44.jpg \ |
28 |
Image14.jpg Image15.jpg Image16.jpg Image17.jpg \ |
29 |
Image45.jpg Image46.jpg Image47.jpg Image48.jpg \ |
29 |
Image18.jpg Image19.jpg Image20.jpg Image21.jpg \ |
30 |
Image49.jpg Image5.gif Image50.gif Image51.jpg \ |
30 |
Image22.jpg Image23.jpg Image24.jpg Image25.gif \ |
31 |
Image52.jpg Image53.gif Image54.jpg Image55.jpg \ |
31 |
Image26.jpg Image27.jpg Image28.jpg Image29.jpg \ |
32 |
Image56.jpg Image6.jpg Image7.jpg Image8.jpg \ |
32 |
Image30.jpg Image31.jpg Image32.jpg Image33.jpg \ |
33 |
Image9.jpg index.html |
33 |
Image34.jpg Image35.jpg Image36.jpg Image37.jpg \ |
34 |
|
34 |
Image38.jpg Image39.jpg Image4.gif Image40.jpg \ |
35 |
HTDOCS= command.php command_html.inc command_wml.inc \ |
35 |
Image41.jpg Image42.jpg Image43.jpg Image44.jpg \ |
36 |
common.inc common_html.inc common_wml.inc \ |
36 |
Image45.jpg Image46.jpg Image47.jpg Image48.jpg \ |
37 |
controls_wml.php displayfuncs.inc getloginhosts.inc \ |
37 |
Image49.jpg Image5.gif Image50.gif Image51.jpg \ |
38 |
history_edit_wml.php history_html.php history_wml.php \ |
38 |
Image52.jpg Image53.gif Image54.jpg Image55.jpg \ |
39 |
login_html.php login_wml.php scroll_wml.php \ |
39 |
Image56.jpg Image6.jpg Image7.jpg Image8.jpg \ |
40 |
shortcuts_wml.php |
40 |
Image9.jpg index.html |
|
|
41 |
|
42 |
HTDOCS= command.php command_html.inc command_wml.inc \ |
43 |
common.inc common_html.inc common_wml.inc \ |
44 |
controls_wml.php displayfuncs.inc getloginhosts.inc \ |
45 |
history_edit_wml.php history_html.php history_wml.php \ |
46 |
login_html.php login_wml.php scroll_wml.php \ |
47 |
shortcuts_wml.php index.html |
41 |
|
48 |
|
42 |
post-patch: |
49 |
post-patch: |
43 |
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/htshd/htshd.c > ${WRKDIR}/foo && \ |
50 |
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/htshd/htshd.c > ${WRKDIR}/foo && \ |
Lines 47-52
Link Here
|
47 |
(cd ${WRKSRC}/htshd && ${CC} ${CFLAGS} -o htshd htshd.c -lcrypt \ |
54 |
(cd ${WRKSRC}/htshd && ${CC} ${CFLAGS} -o htshd htshd.c -lcrypt \ |
48 |
-lutil -DUSE_DEV_RANDOM=1 -DHAVE_SETENV) |
55 |
-lutil -DUSE_DEV_RANDOM=1 -DHAVE_SETENV) |
49 |
|
56 |
|
|
|
57 |
pre-install: |
58 |
@${ECHO_MSG} "----------------------------------------------------------------" |
59 |
@${ECHO_MSG} "Set WWWDIR to the location of your web server's document root," |
60 |
@${ECHO_MSG} "relative to ${PREFIX}" |
61 |
@${ECHO_MSG} "" |
62 |
@${ECHO_MSG} "${PORTNAME} will be installed under ${PREFIX}/\$$WWWDIR/" |
63 |
@${ECHO_MSG} "" |
64 |
@${ECHO_MSG} "The current value of WWWDIR is: ${WWWDIR}" |
65 |
@${ECHO_MSG} "" |
66 |
@${ECHO_MSG} "Press CTRL+C now to change it." |
67 |
@${ECHO_MSG} "----------------------------------------------------------------" |
68 |
@sleep 2 |
69 |
|
50 |
do-install: |
70 |
do-install: |
51 |
${INSTALL_PROGRAM} ${WRKSRC}/htshd/htshd ${PREFIX}/sbin |
71 |
${INSTALL_PROGRAM} ${WRKSRC}/htshd/htshd ${PREFIX}/sbin |
52 |
|
72 |
|
Lines 59-68
Link Here
|
59 |
fi |
79 |
fi |
60 |
.endfor |
80 |
.endfor |
61 |
|
81 |
|
62 |
${MKDIR} ${PREFIX}/share/wapsh/htdocs |
82 |
${MKDIR} ${DATADIR} |
63 |
.for H in ${HTDOCS} |
83 |
.for H in ${HTDOCS} |
64 |
${INSTALL_DATA} ${WRKSRC}/htdocs/$H ${PREFIX}/share/wapsh/htdocs |
84 |
${INSTALL_DATA} ${WRKSRC}/htdocs/$H ${DATADIR} |
65 |
.endfor |
85 |
.endfor |
|
|
86 |
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DATADIR} |
66 |
|
87 |
|
67 |
.if !defined(NOPORTDOCS) |
88 |
.if !defined(NOPORTDOCS) |
68 |
${MKDIR} ${DOCSDIR}/admin_guide |
89 |
${MKDIR} ${DOCSDIR}/admin_guide |
Lines 87-96
Link Here
|
87 |
@${ECHO} "updating /etc/services" |
108 |
@${ECHO} "updating /etc/services" |
88 |
@${CP} /etc/services /etc/services.bak |
109 |
@${CP} /etc/services /etc/services.bak |
89 |
@(${GREP} -v ^htsh /etc/services.bak; ${ECHO_CMD} "htsh 3001/tcp # htsh/wapsh server") > /etc/services |
110 |
@(${GREP} -v ^htsh /etc/services.bak; ${ECHO_CMD} "htsh 3001/tcp # htsh/wapsh server") > /etc/services |
90 |
@if [ ! -f ${PREFIX}/etc/rc.d/htshd.sh ]; then \ |
111 |
@${CAT} ${PKGMESSAGE} |
91 |
${ECHO} "===> Installing ${PREFIX}/etc/rc.d/htshd.sh startup file."; \ |
|
|
92 |
${INSTALL_SCRIPT} ${FILESDIR}/htshd.sh ${PREFIX}/etc/rc.d/htshd.sh; \ |
93 |
fi |
94 |
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGMESSAGE} |
95 |
|
112 |
|
96 |
.include <bsd.port.mk> |
113 |
.include <bsd.port.mk> |