aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-03-25 11:10:39 +0000
committerRenato Botelho <garga@FreeBSD.org>2014-03-25 11:10:39 +0000
commit61f6beb74b524839a0534be0063848d7d76597b4 (patch)
tree5d3d4d615d13043990e79c7eb3d9ca95bfee02b0
parentcd14aa593a8444e56a35725fbe09002a7355cf1c (diff)
downloadports-61f6beb74b524839a0534be0063848d7d76597b4.tar.gz
ports-61f6beb74b524839a0534be0063848d7d76597b4.zip
Notes
-rw-r--r--misc/Makefile1
-rw-r--r--misc/compat10x/Makefile43
-rw-r--r--misc/compat10x/distinfo4
-rw-r--r--misc/compat10x/pkg-descr12
-rw-r--r--misc/compat10x/pkg-plist.amd6412
-rw-r--r--misc/compat10x/pkg-plist.i3865
6 files changed, 77 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index bac14f02a9f0..77d427d45c01 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -47,6 +47,7 @@
SUBDIR += cmatrix
SUBDIR += color-theme.el
SUBDIR += colortail
+ SUBDIR += compat10x
SUBDIR += compat4x
SUBDIR += compat5x
SUBDIR += compat6x
diff --git a/misc/compat10x/Makefile b/misc/compat10x/Makefile
new file mode 100644
index 000000000000..788a48e817e6
--- /dev/null
+++ b/misc/compat10x/Makefile
@@ -0,0 +1,43 @@
+# $FreeBSD$
+
+PORTNAME= compat10x
+PORTVERSION= 10.0.1000510.201403
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= garga/compat
+PKGNAMESUFFIX= -${ARCH}
+DISTNAME= ${PORTNAME}-${ARCH}-${PORTVERSION}
+
+MAINTAINER= garga@FreeBSD.org
+COMMENT= A convenience package to install the compat10x libraries
+
+LICENSE= BSD2CLAUSE
+
+USES= tar:xz
+NO_BUILD= yes
+ONLY_FOR_ARCHS= i386 amd64
+PLIST= ${PKGDIR}/pkg-plist.${ARCH}
+TARGET_DIR= ${PREFIX}/lib/compat
+TARGET32_DIR= ${PREFIX}/lib32/compat
+USE_LDCONFIG= ${TARGET_DIR}
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 1100000
+IGNORE= is for FreeBSD 11.x and newer
+.endif
+
+.if ${ARCH} == amd64
+PLIST_SUB+= LDCONFIG_LIB32="${LDCONFIG} -32"
+USE_LDCONFIG32= ${TARGET32_DIR}
+.endif
+
+do-install:
+ @${MKDIR} -m 0755 ${STAGEDIR}${TARGET_DIR}
+ (cd ${WRKSRC}/lib && ${INSTALL_DATA} *.so.* ${STAGEDIR}${TARGET_DIR})
+.if ${ARCH} == amd64
+ @${MKDIR} ${STAGEDIR}${TARGET32_DIR}
+ (cd ${WRKSRC}/lib32 && ${INSTALL_DATA} *.so.* ${STAGEDIR}${TARGET32_DIR})
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/misc/compat10x/distinfo b/misc/compat10x/distinfo
new file mode 100644
index 000000000000..d6eecd1bb4d4
--- /dev/null
+++ b/misc/compat10x/distinfo
@@ -0,0 +1,4 @@
+SHA256 (compat10x-i386-10.0.1000510.201403.tar.xz) = da6302a271cf5cce1aab42457abe7c4b49d0883831f5bf6087f00ceb06da557c
+SIZE (compat10x-i386-10.0.1000510.201403.tar.xz) = 80840
+SHA256 (compat10x-amd64-10.0.1000510.201403.tar.xz) = 7f1bdec2a2dc2e6c98f3a28e8a6ec621f18b01acecab749320116f9dfbd9e990
+SIZE (compat10x-amd64-10.0.1000510.201403.tar.xz) = 149348
diff --git a/misc/compat10x/pkg-descr b/misc/compat10x/pkg-descr
new file mode 100644
index 000000000000..09ddb1464e27
--- /dev/null
+++ b/misc/compat10x/pkg-descr
@@ -0,0 +1,12 @@
+This package allows you to install the compat10x libraries on your
+system, so you can use legacy binaries that depend on them.
+
+Ports usage example:
+
+--
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 1100000
+LIB_DEPENDS+= libelf.so.1:${PORTSDIR}/misc/compat10x
+.endif
+--
diff --git a/misc/compat10x/pkg-plist.amd64 b/misc/compat10x/pkg-plist.amd64
new file mode 100644
index 000000000000..87519bdc246c
--- /dev/null
+++ b/misc/compat10x/pkg-plist.amd64
@@ -0,0 +1,12 @@
+lib/compat/libcam.so.6
+lib/compat/libdwarf.so.3
+lib/compat/libelf.so.1
+lib/compat/libipx.so.5
+lib32/compat/libcam.so.6
+lib32/compat/libdwarf.so.3
+lib32/compat/libelf.so.1
+lib32/compat/libipx.so.5
+@dirrmtry lib/compat
+@dirrmtry lib32/compat
+@dirrmtry lib32
+@exec %%LDCONFIG_LIB32%% -m %D/lib32/compat
diff --git a/misc/compat10x/pkg-plist.i386 b/misc/compat10x/pkg-plist.i386
new file mode 100644
index 000000000000..a77cb94d19da
--- /dev/null
+++ b/misc/compat10x/pkg-plist.i386
@@ -0,0 +1,5 @@
+lib/compat/libcam.so.6
+lib/compat/libdwarf.so.3
+lib/compat/libelf.so.1
+lib/compat/libipx.so.5
+@dirrmtry lib/compat