View | Details | Raw Unified | Return to bug 142812
Collapse All | Expand All

(-)Makefile (-7 / +5 lines)
Lines 18-32 Link Here
18
NO_BUILD=	yes
18
NO_BUILD=	yes
19
NO_WRKSUBDIR=	yes
19
NO_WRKSUBDIR=	yes
20
20
21
SUB_FILES=	pkg-message wrapper.sh
22
21
# source code version
23
# source code version
22
SOURCE_VERSION=	24.14
24
SOURCE_VERSION=	24.14
23
25
24
post-patch:
25
# prepare wrapper
26
	@${SED} \
27
		-e 's|%%PREFIX%%|${PREFIX}|' ${FILESDIR}/wrapper.sh > \
28
		${WRKDIR}/wrapper.sh
29
30
do-install:
26
do-install:
31
	@${INSTALL_PROGRAM} ${WRKSRC}/mprime ${PREFIX}/bin/mprime-real
27
	@${INSTALL_PROGRAM} ${WRKSRC}/mprime ${PREFIX}/bin/mprime-real
32
	@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mprime
28
	@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mprime
Lines 36-41 Link Here
36
.endif
32
.endif
37
33
38
post-install:
34
post-install:
39
	@${SED} -e 's|/usr/local/|${PREFIX}/|' ${PKGMESSAGE}
35
.if !defined(NOPORTDOCS)
36
	@${CAT} ${PKGMESSAGE}
37
.endif
40
38
41
.include <bsd.port.mk>
39
.include <bsd.port.mk>
(-)pkg-message (-10 lines)
Removed Link Here
1
	ATTENTIONATTENTION:
2
3
Please, make sure that you read
4
/usr/local/share/doc/mprime/license.txt
5
and agree to the licensing terms before running this application.
6
7
Furthermore, read
8
/usr/local/share/doc/mprime/readme.txt
9
It contains important information about both configuring and running
10
mprime.  You will have problems running it if you do not read it.
(-)files/pkg-message.in (+10 lines)
Added Link Here
1
	ATTENTIONATTENTION:
2
3
Please, make sure that you read
4
%%DOCSDIR%%/license.txt
5
and agree to the licensing terms before running this application.
6
7
Furthermore, read
8
%%DOCSDIR%%/readme.txt
9
It contains important information about both configuring and running
10
mprime.  You will have problems running it if you do not read it.
(-)files/wrapper.sh (-23 lines)
Removed Link Here
1
#!/bin/sh
2
3
PREFIX="%%PREFIX%%"
4
PROGRAM="${0}"
5
DIRNAME=${HOME}/.mprime
6
7
if [ ! -d ${DIRNAME} ]
8
then
9
	mkdir -p ${DIRNAME}
10
fi
11
12
if [ ! -h ${DIRNAME}/${PROGRAM##*/} ]
13
then
14
	ln -sf ${PREFIX}/bin/${PROGRAM##*/}-real ${DIRNAME}/${PROGRAM##*/}
15
fi
16
17
echo " ${*} " | grep " \-createdironly " ||
18
{
19
	cd ${DIRNAME} &&
20
	echo Running under ${DIRNAME} &&
21
	exec ./${PROGRAM##*/} "${@}" ||
22
	echo PROBLEM. Cannot create directory ${DIRNAME}, make sure you have the proper permissions to create it and try again
23
}
(-)files/wrapper.sh.in (+23 lines)
Added Link Here
1
#!/bin/sh
2
3
PREFIX="%%PREFIX%%"
4
PROGRAM="${0}"
5
DIRNAME=${HOME}/.mprime
6
7
if [ ! -d ${DIRNAME} ]
8
then
9
	mkdir -p ${DIRNAME}
10
fi
11
12
if [ ! -h ${DIRNAME}/${PROGRAM##*/} ]
13
then
14
	ln -sf ${PREFIX}/bin/${PROGRAM##*/}-real ${DIRNAME}/${PROGRAM##*/}
15
fi
16
17
echo " ${*} " | grep " \-createdironly " ||
18
{
19
	cd ${DIRNAME} &&
20
	echo Running under ${DIRNAME} &&
21
	exec ./${PROGRAM##*/} "${@}" ||
22
	echo PROBLEM. Cannot create directory ${DIRNAME}, make sure you have the proper permissions to create it and try again
23
}

Return to bug 142812