Import patchelf 0.12
PatchELF is a simple utility for modifying existing ELF executables and libraries. In particular, it can do the following: * Change the dynamic loader ("ELF interpreter") of executables * Change the `RPATH` of executables and libraries * Shrink the `RPATH` of executables and libraries * Remove declared dependencies on dynamic libraries (`DT_NEEDED` entries) * Add a declared dependency on a dynamic library (`DT_NEEDED`) * Replace a declared dependency on a dynamic library with another one (`DT_NEEDED`) * Change `SONAME` of a dynamic library OK abieber
This commit is contained in:
parent
7ee2f8ae13
commit
6aad4dd8da
34
sysutils/patchelf/Makefile
Normal file
34
sysutils/patchelf/Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2021/05/27 16:12:16 kn Exp $
|
||||
|
||||
COMMENT = utility for modifying existing ELF executables and libraries
|
||||
|
||||
V = 0.12
|
||||
DISTNAME = patchelf-${V}
|
||||
MASTER_SITES = https://github.com/NixOS/patchelf/releases/download/${V}/
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
|
||||
CATEGORIES = sysutils
|
||||
|
||||
MAINTAINER = Klemens Nanni <kn@openbsd.org>
|
||||
|
||||
# GPLv3
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
WANTLIB += ${COMPILER_LIBCXX} c m
|
||||
|
||||
# -std=c++11
|
||||
COMPILER = base-clang ports-gcc
|
||||
|
||||
SEPARATE_BUILD = Yes
|
||||
USE_GMAKE = Yes
|
||||
|
||||
CONFIGURE_STYLE = simple
|
||||
CONFIGURE_ARGS = --mandir=${PREFIX}/man
|
||||
|
||||
WRKDIST = ${WRKDIR}/${DISTNAME}.20200827.8d3a16e
|
||||
|
||||
# XXX investigate
|
||||
# TOTAL: 29, PASS: 28, FAIL: build-id.sh
|
||||
TEST_TARGET = check
|
||||
|
||||
.include <bsd.port.mk>
|
2
sysutils/patchelf/distinfo
Normal file
2
sysutils/patchelf/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (patchelf-0.12.tar.bz2) = aZoxz1IhHPWtbjWogB62N7x/PEMRcUBCZADWe3ur15I=
|
||||
SIZE (patchelf-0.12.tar.bz2) = 165069
|
11
sysutils/patchelf/pkg/DESCR
Normal file
11
sysutils/patchelf/pkg/DESCR
Normal file
@ -0,0 +1,11 @@
|
||||
PatchELF is a simple utility for modifying existing ELF executables and
|
||||
libraries. In particular, it can do the following:
|
||||
|
||||
* Change the dynamic loader ("ELF interpreter") of executables
|
||||
* Change the `RPATH` of executables and libraries
|
||||
* Shrink the `RPATH` of executables and libraries
|
||||
* Remove declared dependencies on dynamic libraries (`DT_NEEDED` entries)
|
||||
* Add a declared dependency on a dynamic library (`DT_NEEDED`)
|
||||
* Replace a declared dependency on a dynamic library with another one
|
||||
(`DT_NEEDED`)
|
||||
* Change `SONAME` of a dynamic library
|
5
sysutils/patchelf/pkg/PLIST
Normal file
5
sysutils/patchelf/pkg/PLIST
Normal file
@ -0,0 +1,5 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2021/05/27 16:12:16 kn Exp $
|
||||
@bin bin/patchelf
|
||||
@man man/man1/patchelf.1
|
||||
share/doc/patchelf/
|
||||
share/doc/patchelf/README.md
|
Loading…
x
Reference in New Issue
Block a user