8a72a4dacb
Drop share/man and share/doc directories.
113 lines
3.9 KiB
Makefile
113 lines
3.9 KiB
Makefile
# $OpenBSD: Makefile,v 1.24 2014/01/31 13:51:18 ajacoutot Exp $
|
|
|
|
COMMENT= Linux compatibility package based on Fedora Core ${FEDORA_V}
|
|
|
|
PKGNAME= fedora_base-${FEDORA_V}.0
|
|
REVISION= 4
|
|
|
|
SHARED_LIBS += cap 2.10
|
|
SHARED_LIBS += blkid 1.0
|
|
SHARED_LIBS += com_err 2.1
|
|
SHARED_LIBS += e2p 2.3
|
|
SHARED_LIBS += ext2fs 2.4
|
|
SHARED_LIBS += ss 2.0
|
|
SHARED_LIBS += uuid 1.2
|
|
|
|
RPMS= basesystem-10.0-1.noarch.rpm \
|
|
coreutils-6.12-20.fc10.i386.rpm:0 \
|
|
db4-4.7.25-7.fc10.i386.rpm:0 \
|
|
e2fsprogs-libs-1.41.4-6.fc10.i386.rpm:0 \
|
|
elfutils-0.142-1.fc10.i386.rpm:0 \
|
|
fedora-release-10-1.noarch.rpm \
|
|
filesystem-2.4.19-1.fc10.i386.rpm \
|
|
freetype-2.3.7-3.fc10.i386.rpm:0 \
|
|
glibc-2.9-3.i386.rpm:0 \
|
|
glibc-common-2.9-3.i386.rpm:0 \
|
|
info-4.12-4.fc10.i386.rpm \
|
|
keyutils-libs-1.2-3.fc9.i386.rpm \
|
|
libacl-2.2.47-3.fc10.i386.rpm \
|
|
libattr-2.4.43-2.fc10.i386.rpm:0 \
|
|
libcap-2.10-2.fc10.i386.rpm \
|
|
libgcc-4.3.2-7.i386.rpm \
|
|
libidn-0.6.14-8.i386.rpm \
|
|
libselinux-2.0.78-1.fc10.i386.rpm:0 \
|
|
libsepol-2.0.33-1.fc10.i386.rpm \
|
|
libstdc++-4.3.2-7.i386.rpm \
|
|
setserial-2.17-22.fc9.i386.rpm \
|
|
setup-2.7.4-4.fc10.noarch.rpm:0 \
|
|
fontconfig-2.6.0-3.fc10.i386.rpm \
|
|
expat-2.0.1-8.fc10.i386.rpm:0 \
|
|
zlib-1.2.3-18.fc9.i386.rpm \
|
|
libfontenc-1.0.4-6.fc10.i386.rpm \
|
|
libICE-1.0.4-4.fc10.i386.rpm \
|
|
libSM-1.1.0-2.fc10.i386.rpm \
|
|
libX11-1.1.5-4.fc10.i386.rpm:0 \
|
|
libXau-1.0.4-1.fc10.i386.rpm \
|
|
libXaw-1.0.4-3.fc10.i386.rpm \
|
|
libxcb-1.1.91-8.fc10.i386.rpm:0 \
|
|
libXcomposite-0.4.0-5.fc10.i386.rpm \
|
|
libXcursor-1.1.9-3.fc10.i386.rpm \
|
|
libXdamage-1.1.1-4.fc9.i386.rpm \
|
|
libXdmcp-1.0.2-6.fc10.i386.rpm \
|
|
libXevie-1.0.2-4.fc10.i386.rpm \
|
|
libXext-1.0.4-1.fc9.i386.rpm \
|
|
libXfixes-4.0.3-4.fc10.i386.rpm \
|
|
libXfont-1.3.3-1.fc10.i386.rpm \
|
|
libXft-2.1.13-1.fc10.i386.rpm \
|
|
libXi-1.1.3-4.fc9.i386.rpm \
|
|
libXinerama-1.0.3-2.fc10.i386.rpm \
|
|
libxkbfile-1.0.4-5.fc9.i386.rpm \
|
|
libXmu-1.0.4-1.fc9.i386.rpm \
|
|
libXpm-3.5.7-4.fc9.i386.rpm \
|
|
libXrandr-1.2.3-1.fc10.i386.rpm \
|
|
libXrender-0.9.4-3.fc9.i386.rpm \
|
|
libXres-1.0.3-5.fc10.i386.rpm \
|
|
libXScrnSaver-1.1.3-1.fc10.i386.rpm \
|
|
libXt-1.0.5-1.fc10.i386.rpm \
|
|
libXtst-1.0.3-3.fc9.i386.rpm \
|
|
libXv-1.0.4-1.fc10.i386.rpm \
|
|
libXvMC-1.0.4-5.fc10.i386.rpm \
|
|
libXxf86dga-1.0.2-3.fc10.i386.rpm \
|
|
libXxf86misc-1.0.1-6.fc10.i386.rpm \
|
|
libXxf86vm-1.0.2-1.fc10.i386.rpm \
|
|
sqlite-3.5.9-4.fc10.i386.rpm:0
|
|
|
|
REMOVE_DIRS= boot dev home initrd media root tmp var/log var/run var/tmp \
|
|
usr/local usr/tmp usr/share/fonts usr/share/man usr/share/doc
|
|
|
|
REMOVE_FILES= bin/df bin/su etc/exports etc/group etc/localtime \
|
|
etc/motd etc/passwd etc/printcap etc/services \
|
|
etc/protocols usr/bin/fc-cache usr/bin/sqlite3
|
|
|
|
ADD_DIRS= usr/X11R6/share usr/X11R6/man usr/X11R6/lib/tls \
|
|
usr/X11R6/include usr/X11R6/bin
|
|
|
|
PATCH_LIST=
|
|
|
|
post-install:
|
|
# fix fontconfig search path and cache directory
|
|
cd ${FEDORADIR}/etc/fonts && ${PATCH} -p0 -s --posix < \
|
|
${PATCHDIR}/patch-etc_fonts_fonts_conf
|
|
mkdir ${FEDORADIR}/dev; \
|
|
ln -s /dev/console ${FEDORADIR}/dev/tty0; \
|
|
ln -s /dev/ttyC0 ${FEDORADIR}/dev/tty1; \
|
|
ln -s /dev/ttyC1 ${FEDORADIR}/dev/tty2; \
|
|
ln -s /dev/ttyC2 ${FEDORADIR}/dev/tty3; \
|
|
ln -s /dev/ttyC3 ${FEDORADIR}/dev/tty4; \
|
|
ln -s /dev/ttyC4 ${FEDORADIR}/dev/tty5; \
|
|
ln -s /dev/sound ${FEDORADIR}/dev/dsp; \
|
|
ln -s /dev/null ${FEDORADIR}/dev/null
|
|
|
|
# fix up the loader
|
|
cd ${FEDORADIR} && ${PATCH} -p0 --forward --quiet -E < \
|
|
${FILESDIR}/patch-ldd
|
|
echo -e '/lib\n/usr/lib\n${X11BASE}/lib' >> \
|
|
${FEDORADIR}/etc/ld.so.conf
|
|
touch ${FEDORADIR}/etc/ld.so.cache
|
|
mv ${FEDORADIR}/sbin/ldconfig ${FEDORADIR}/sbin/ldconfig.bin
|
|
${INSTALL_SCRIPT} ${FILESDIR}/ldconfig ${FEDORADIR}/sbin
|
|
cp -p ${FEDORADIR}/lib/ld-2.9.so ${FEDORADIR}/usr/bin/ld-2.9-elf.so
|
|
perl ${FILESDIR}/fix-ldd.pl ${FEDORADIR}/usr/bin/ld-2.9-elf.so
|
|
|
|
.include <bsd.port.mk>
|