ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/emulators/linux_base-c7/Makefile
Revision: 24974
Committed: Wed Feb 13 02:47:00 2019 UTC (5 years, 3 months ago) by laffer1
Content type: text/plain
File size: 5934 byte(s)
Log Message:
update linux emulation ports in emulators

File Contents

# Content
1 # $MidnightBSD$
2
3 PORTNAME= c7
4 PORTVERSION= ${LINUX_DIST_VER}
5 CATEGORIES= emulators linux
6 PKGNAMEPREFIX= linux_base-
7 BIN_DISTNAMES= centos-release-7-4.1708.el7.centos \
8 bash-4.2.46-29.el7_4 \
9 bzip2-1.0.6-13.el7 \
10 coreutils-8.22-18.el7 \
11 e2fsprogs-1.42.9-10.el7 \
12 elfutils-0.168-8.el7 \
13 filesystem-3.2-21.el7 \
14 findutils-4.5.11-5.el7 \
15 glibc-common-2.17-196.el7_4.2 \
16 grep-2.20-3.el7 \
17 info-5.1-4.el7 \
18 keyutils-1.5.8-3.el7 \
19 less-458-9.el7 \
20 ncurses-5.9-14.20130511.el7_4 \
21 sed-4.2.2-5.el7 \
22 setserial-2.17-33.el7 \
23 which-2.20-7.el7
24 LIB_DISTNAMES= bzip2-libs-1.0.6-13.el7 \
25 compat-db47-4.7.25-28.el7 \
26 compat-libstdc++-33-3.2.3-72.el7 \
27 e2fsprogs-libs-1.42.9-10.el7 \
28 freetype-2.4.11-15.el7 \
29 gamin-0.1.10-16.el7 \
30 gdbm-1.10-8.el7 \
31 glib2-2.50.3-3.el7 \
32 glibc-2.17-196.el7_4.2 \
33 gmp-6.0.0-15.el7 \
34 keyutils-libs-1.5.8-3.el7 \
35 krb5-libs-1.15.1-8.el7 \
36 libacl-2.2.51-12.el7 \
37 libattr-2.4.46-12.el7 \
38 libblkid-2.23.2-43.el7_4.2 \
39 libcap-2.22-9.el7 \
40 libcom_err-1.42.9-10.el7 \
41 libdb-5.3.21-21.el7_4 \
42 libffi-3.0.13-18.el7 \
43 libgcc-4.8.5-16.el7_4.1 \
44 libidn-1.28-4.el7 \
45 libmount-2.23.2-43.el7_4.2 \
46 libselinux-2.5-11.el7 \
47 libsepol-2.5-6.el7 \
48 libstdc++-4.8.5-16.el7_4.1 \
49 libuuid-2.23.2-43.el7_4.2 \
50 ncurses-libs-5.9-14.20130511.el7_4 \
51 nss-softokn-freebl-3.28.3-8.el7_4 \
52 pcre-8.32-17.el7 \
53 popt-1.13-16.el7 \
54 readline-6.2-10.el7 \
55 redhat-lsb-core-4.1-27.el7.centos.1 \
56 slang-2.2.4-11.el7 \
57 util-linux-2.23.2-43.el7_4.2 \
58 xz-libs-5.2.2-1.el7 \
59 zlib-1.2.7-17.el7
60 SHARE_DISTNAMES=basesystem-10.0-7.el7.centos \
61 ncurses-base-5.9-14.20130511.el7_4 \
62 setup-2.8.71-7.el7
63 SRC_DISTFILES= acl-2.2.51-12.el7${SRC_SUFX}:SOURCE \
64 attr-2.4.46-12.el7${SRC_SUFX}:SOURCE \
65 basesystem-10.0-7.el7.centos${SRC_SUFX}:SOURCE \
66 bash-4.2.46-29.el7_4${SRC_SUFX}:SOURCE \
67 bzip2-1.0.6-13.el7${SRC_SUFX}:SOURCE \
68 centos-release-7-4.1708.el7.centos${SRC_SUFX}:SOURCE \
69 compat-db-4.7.25-28.el7${SRC_SUFX}:SOURCE \
70 compat-gcc-32-3.2.3-72.el7${SRC_SUFX}:SOURCE \
71 coreutils-8.22-18.el7${SRC_SUFX}:SOURCE \
72 e2fsprogs-1.42.9-10.el7${SRC_SUFX}:SOURCE \
73 elfutils-0.168-8.el7${SRC_SUFX}:SOURCE \
74 filesystem-3.2-21.el7${SRC_SUFX}:SOURCE \
75 findutils-4.5.11-5.el7${SRC_SUFX}:SOURCE \
76 freetype-2.4.11-15.el7${SRC_SUFX}:SOURCE \
77 gamin-0.1.10-16.el7${SRC_SUFX}:SOURCE \
78 gcc-4.8.5-16.el7_4.1${SRC_SUFX}:SOURCE \
79 gdbm-1.10-8.el7${SRC_SUFX}:SOURCE \
80 glib2-2.50.3-3.el7${SRC_SUFX}:SOURCE \
81 glibc-2.17-196.el7_4.2${SRC_SUFX}:SOURCE \
82 gmp-6.0.0-15.el7${SRC_SUFX}:SOURCE \
83 grep-2.20-3.el7${SRC_SUFX}:SOURCE \
84 keyutils-1.5.8-3.el7${SRC_SUFX}:SOURCE \
85 krb5-1.15.1-8.el7${SRC_SUFX}:SOURCE \
86 less-458-9.el7${SRC_SUFX}:SOURCE \
87 libcap-2.22-9.el7${SRC_SUFX}:SOURCE \
88 libdb-5.3.21-21.el7_4${SRC_SUFX}:SOURCE \
89 libffi-3.0.13-18.el7${SRC_SUFX}:SOURCE \
90 libidn-1.28-4.el7${SRC_SUFX}:SOURCE \
91 libselinux-2.5-11.el7${SRC_SUFX}:SOURCE \
92 libsepol-2.5-6.el7${SRC_SUFX}:SOURCE \
93 ncurses-5.9-14.20130511.el7_4${SRC_SUFX}:SOURCE \
94 nss-softokn-3.28.3-8.el7_4${SRC_SUFX}:SOURCE \
95 pcre-8.32-17.el7${SRC_SUFX}:SOURCE \
96 popt-1.13-16.el7${SRC_SUFX}:SOURCE \
97 readline-6.2-10.el7${SRC_SUFX}:SOURCE \
98 redhat-lsb-4.1-27.el7.centos.1${SRC_SUFX}:SOURCE \
99 sed-4.2.2-5.el7${SRC_SUFX}:SOURCE \
100 setserial-2.17-33.el7${SRC_SUFX}:SOURCE \
101 setup-2.8.71-7.el7${SRC_SUFX}:SOURCE \
102 slang-2.2.4-11.el7${SRC_SUFX}:SOURCE \
103 texinfo-5.1-4.el7${SRC_SUFX}:SOURCE \
104 util-linux-2.23.2-43.el7_4.2${SRC_SUFX}:SOURCE \
105 which-2.20-7.el7${SRC_SUFX}:SOURCE \
106 xz-5.2.2-1.el7${SRC_SUFX}:SOURCE \
107 zlib-1.2.7-17.el7${SRC_SUFX}:SOURCE
108 EXTRACT_ONLY= ${DISTFILES:N*${SRC_SUFX}*:Nfilesystem-*:C/:[^:]+$//}
109
110 MAINTAINER= ports@MidnightBSD.org
111 COMMENT= Base set of packages needed in Linux mode (Linux CentOS ${LINUX_DIST_VER})
112
113 LICENSE= agg
114
115 PLIST_SUB= LINUXBASE=${LINUXBASE} SYSCTLMIB=${SYSCTLMIB}
116 USES= linux:c7
117 USE_LINUX= # empty
118 USE_LINUX_RPM= yes
119
120 OPTIONS_DEFINE= DOCS NLS
121 OPTIONS_SUB= yes
122
123 REMOVE_DIRS= boot home media mnt proc root run sys tmp var/log var/tmp
124 REMOVE_FILES= bin/df bin/su etc/exports etc/group etc/gshadow etc/motd \
125 etc/passwd etc/printcap etc/protocols etc/services etc/shadow
126
127 .include <bsd.port.pre.mk>
128
129 .if ${LINUX_ARCH} == x86_64 && ${OPSYS} == FreeBSD && ${OSVERSION} >= 11000105
130 SYSCTLMIB= kern.features.linux64
131 .else
132 SYSCTLMIB= compat.linux.osrelease
133 .endif
134
135 post-extract:
136 # These directories become symbolic links when the filesystem distfile is
137 # extracted. Other distfiles cannot be extracted when these are links so the
138 # filesystem distfile must be extracted last.
139 .for d in bin lib lib64 sbin
140 @(cd ${WRKSRC} && if [ -e ${d} -a ! -L ${d} ]; then \
141 ${FIND} ${d} | ${CPIO} -dumpl --quiet usr && ${RM} -r ${d}; fi)
142 .endfor
143 @(cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
144 ${DISTDIR}/${DIST_SUBDIR}/filesystem-3.2-21.el7${EXTRACT_SUFX_${LINUX_ARCH:S/x86_64/amd64/}} \
145 ${EXTRACT_AFTER_ARGS})
146 .if ${LINUX_ARCH} == i386
147 @${CHMOD} u+w ${WRKSRC}/usr/lib/pm-utils
148 .elif ${LINUX_ARCH} == x86_64
149 @${CHMOD} u+w ${WRKSRC}/usr/lib64/pm-utils
150 .endif
151
152 post-patch:
153 @${RM} -r ${REMOVE_DIRS:S|^|${WRKSRC}/|}
154 @${RM} ${REMOVE_FILES:S|^|${WRKSRC}/|}
155 @${FIND} ${WRKSRC}/usr -type d -empty -not -path '*/lib*/gio/*' -delete
156 @${BRANDELF} -t Linux ${WRKSRC}/usr/lib/ld-2.17.so
157 .if ${LINUX_ARCH} == x86_64
158 @${BRANDELF} -t Linux ${WRKSRC}/usr/lib64/ld-2.17.so
159 .endif
160
161 post-install:
162 ${TOUCH} ${STAGEDIR}${PREFIX}/etc/mtab
163 ${MV} ${STAGEDIR}${PREFIX}/etc/krb5.conf \
164 ${STAGEDIR}${PREFIX}/etc/krb5.conf.sample
165 ${MV} ${STAGEDIR}${PREFIX}/etc/nsswitch.conf \
166 ${STAGEDIR}${PREFIX}/etc/nsswitch.conf.sample
167 ${MV} ${STAGEDIR}${PREFIX}/usr/lib/locale/locale-archive.tmpl \
168 ${STAGEDIR}${PREFIX}/usr/lib/locale/locale-archive
169 ${LN} -sf ${LOCALBASE}/share/icons ${STAGEDIR}${PREFIX}/usr/share/icons
170 ${LN} -sf /var/run ${STAGEDIR}${PREFIX}/run
171 ${LN} -sf /var/tmp ${STAGEDIR}${PREFIX}/usr/tmp
172
173 .include <bsd.port.post.mk>

Properties

Name Value
svn:eol-style native
svn:keywords MidnightBSD=%H
svn:mime-type text/plain