blob: 835036722c4404bce6c9e9838a964ee922729dcf (
plain)
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
64
65
66
67
68
69
70
71
72
73
74
|
#!/bin/sh
# $Id$
ENCAP_PKGNAME=m4-1.4.4
PATH=$PATH:/usr/local/bin
export PATH
cat > ${ENCAP_PKGNAME}.ep << EOF
<?xml version="1.0"?>
<encap_profile
profile_ver="1.0"
pkgspec="m4-1.4.4"
>
<environment
variable="CC"
value="gcc"
type="set"
/>
<environment
variable="PATH"
value="/usr/local/bin:"
type="prepend"
/>
<environment
variable="PATH"
value=":/usr/sfw/bin:/usr/ccs/bin"
type="append"
/>
<source
url="http://www.pobox.com/users/dclark/mirror/m4/m4-1.4.4.tar.gz
http://ftp.gnu.org/gnu/m4/m4-1.4.4.tar.gz"
>
</source>
<prepackage type="set">
test -d var || mkdir var
test -d var/encap || mkdir var/encap
touch var/encap/${ENCAP_PKGNAME}
</prepackage>
<encapinfo>
description m4 - GNU implementation of the traditional Unix macro processor
</encapinfo>
</encap_profile>
EOF
cat > m4-fake << EOF
#!/bin/sh
cat \$4
EOF
chmod 755 m4-fake
( ${MKENCAP} -m ${PWD}/m4-fake -b -DUP ${ENCAP_PKGNAME}.ep || true ) \
> ${ENCAP_PKGNAME}.log 2>&1
( ${MKENCAP} -m ${PWD}/m4-fake -b -T ${ENCAP_PKGNAME}.ep || true ) \
>> ${ENCAP_PKGNAME}.log 2>&1
( ${MKENCAP} -m ${PWD}/m4-fake -b -CBI ${ENCAP_PKGNAME}.ep ) \
>> ${ENCAP_PKGNAME}.log 2>&1
rm m4-fake
rm ${ENCAP_PKGNAME}.ep
exit 0
|