use sed -i

This commit is contained in:
jasper 2015-07-18 21:11:18 +00:00
parent e73e585bb1
commit a1d748d08d
16 changed files with 39 additions and 39 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.19 2013/10/19 10:02:11 jung Exp $
# $OpenBSD: Makefile,v 1.20 2015/07/18 21:11:18 jasper Exp $
COMMENT= small application for managing a LDAP address book
@ -22,10 +22,10 @@ NO_TEST= Yes
PKG_ARCH= *
pre-install:
@perl -pi -e "s,/usr/bin/python,${MODPY_BIN}," \
sed -i -e "s,/usr/bin/python,${MODPY_BIN}," \
-e "s,/usr/local,${LOCALBASE},g" \
${WRKSRC}/directoryassistant
@perl -pi -e "s,/etc,${SYSCONFDIR}," ${WRKSRC}/directoryassistant*
@perl -pi -e "s,/usr/local,${LOCALBASE},g" ${WRKSRC}/directoryassistant
sed -i "s,/etc,${SYSCONFDIR}," ${WRKSRC}/directoryassistant*
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/directoryassistant ${PREFIX}/bin/

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.193 2015/07/13 07:02:14 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.194 2015/07/18 21:11:18 jasper Exp $
# XXX add libphonenumber support when a cpp release is out
@ -70,11 +70,11 @@ CONFIGURE_ARGS= --with-openldap=${LOCALBASE}
CONFIGURE_ARGS += --disable-uoa
pre-configure:
perl -pi -e 's,/usr/sbin/imapd,${LOCALBASE}/libexec/imapd,g' \
sed -i 's,/usr/sbin/imapd,${LOCALBASE}/libexec/imapd,g' \
${WRKSRC}/camel/providers/imapx/camel-imapx-settings.c \
${WRKSRC}/docs/reference/camel/html/CamelIMAPXSettings.html
# XXX cc1plus: error: unrecognized command line option "-Wnoexcept"
perl -pi -e 's,-Wnoexcept,,' ${WRKSRC}/configure
sed -i 's,-Wnoexcept,,' ${WRKSRC}/configure
post-install:
rm ${PREFIX}/lib/evolution-data-server/*/*.{a,la}

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.69 2015/06/28 19:24:13 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.70 2015/07/18 21:11:18 jasper Exp $
COMMENT= database drivers for Sybase/Microsoft SQL Server
@ -59,7 +59,7 @@ pre-configure:
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
NOCONFIGURE=1 ./autogen.sh
perl -pi -e 's,/etc/odbc.ini,${SYSCONFDIR}/iodbc/odbc.ini,' \
sed -i 's,/etc/odbc.ini,${SYSCONFDIR}/iodbc/odbc.ini,' \
${WRKSRC}/src/odbc/connectparams.c
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.35 2014/11/01 19:29:54 jasper Exp $
# $OpenBSD: Makefile,v 1.36 2015/07/18 21:11:18 jasper Exp $
COMMENT= GNU dbm
@ -29,6 +29,6 @@ CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
TEST_DEPENDS += sysutils/coreutils
post-extract:
perl -pi -e 's,sort,gsort,g' ${WRKSRC}/tests/testsuite
sed -i 's,sort,gsort,g' ${WRKSRC}/tests/testsuite
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.14 2014/05/07 15:42:15 kurt Exp $
# $OpenBSD: Makefile,v 1.15 2015/07/18 21:11:18 jasper Exp $
COMMENT= standards compliant LDAP browser
@ -27,7 +27,7 @@ NO_TEST= Yes
do-configure:
@cp ${FILESDIR}/jxplorer ${WRKSRC}
@perl -pi -e "s,%%PREFIX%%,${PREFIX}," \
@sed -i "s,%%PREFIX%%,${PREFIX}," \
${WRKSRC}/jxplorer \
${WRKSRC}/jxplorer.sh

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.21 2015/03/16 10:04:11 giovanni Exp $
# $OpenBSD: Makefile,v 1.22 2015/07/18 21:11:18 jasper Exp $
COMMENT = MySQL backup scripts
@ -33,7 +33,7 @@ pre-configure:
${SUBST_CMD} ${WRKSRC}/usr/bin/mysql-zrm-verify-backup
${SUBST_CMD} ${WRKSRC}/usr/lib/mysql-zrm/ZRM/MySQL.pm
${SUBST_CMD} ${WRKSRC}/etc/mysql-zrm/mysql-zrm.conf
@perl -pi -e 's,/usr/lib,${TRUEPREFIX}/lib,g;' \
@sed -i -e 's,/usr/lib,${TRUEPREFIX}/lib,g;' \
-e 's,/usr/bin/mysql-,${TRUEPREFIX}/bin/mysql-,g;' \
-e 's,/usr/bin/zrm-,${TRUEPREFIX}/bin/zrm-,g;' \
${WRKSRC}/usr/bin/*zrm*

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.16 2015/02/16 22:57:07 naddy Exp $
# $OpenBSD: Makefile,v 1.17 2015/07/18 21:11:18 jasper Exp $
COMMENT= open-source LDAP software (server, legacy version)
@ -68,7 +68,7 @@ pre-build:
@cd ${WRKBUILD}; ${MAKE_PROGRAM} depend
pre-configure:
@perl -pi -e 's,database bdb,database ldbm,' \
@sed -i 's,database bdb,database ldbm,' \
${WRKSRC}/servers/slapd/slapd.conf
post-install:

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.13 2015/06/05 06:00:21 robert Exp $
# $OpenBSD: Makefile,v 1.14 2015/07/18 21:11:18 jasper Exp $
COMMENT = PostgreSQL log analyzer
@ -25,7 +25,7 @@ MODULES = lang/php
RUN_DEPENDS = lang/php/${MODPHP_VERSION},-gd
pre-configure:
@perl -pi -e 's,/usr/bin/php,${MODPHP_BIN},g;' \
@sed -i -e 's,/usr/bin/php,${MODPHP_BIN},g;' \
-e 's,!!PREFIX!!,${PREFIX},g' \
${WRKSRC}/pgfouine.php ${WRKSRC}/pgfouine_vacuum.php
@find ${WRKSRC} -type d -name CVS | xargs rm -fr

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2015/02/16 22:57:07 naddy Exp $
# $OpenBSD: Makefile,v 1.13 2015/07/18 21:11:18 jasper Exp $
COMMENT= import CSV data and Large Object to PostgreSQL
@ -26,9 +26,9 @@ EGGDIRS= allcols clob cluttered csv errors fixed parallel \
partial reformat serial simple udc
pre-configure:
@perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},' \
@sed -i 's,/usr/bin/env python,${MODPY_BIN},' \
${WRKSRC}/pgloader.py
@perl -pi -e 's,/usr/share/python-support,${MODPY_LIBDIR},' \
@sed -i 's,/usr/share/python-support,${MODPY_LIBDIR},' \
${WRKSRC}/pgloader/options.py
do-install:

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.33 2015/07/17 15:07:51 jasper Exp $
# $OpenBSD: Makefile,v 1.34 2015/07/18 21:11:18 jasper Exp $
PORTROACH= limit:^2
@ -46,7 +46,7 @@ do-configure:
.for s in ${SCRIPTS}
${SUBST_CMD} ${WRKSRC}/ext/files/puppetdb-$s
.endfor
perl -pi -e 's,/bin/bash,${LOCALBASE}/bin/bash,g;' \
sed -i -e 's,/bin/bash,${LOCALBASE}/bin/bash,g;' \
-e 's,/usr/libexec,${LOCALBASE}/libexec,g;' \
${WRKSRC}/ext/files/puppetdb*

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.36 2015/06/04 05:12:30 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.37 2015/07/18 21:11:18 jasper Exp $
SHARED_ONLY= Yes
@ -33,7 +33,7 @@ RUN_DEPENDS-main= ${RUN_DEPENDS} \
devel/py-asn1-modules
pre-configure:
perl -pi -e 's,/opt/openldap-RE24/lib,${LOCALBASE}/lib,;' \
sed -i 's,/opt/openldap-RE24/lib,${LOCALBASE}/lib,;' \
-e 's,/opt/openldap-RE24/include,${LOCALBASE}/include,;' \
-e 's,/usr/include/sasl,${LOCALBASE}/include/sasl,' \
${WRKSRC}/setup.cfg

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.25 2015/04/21 18:40:20 sthen Exp $
# $OpenBSD: Makefile,v 1.26 2015/07/18 21:11:18 jasper Exp $
COMMENT = SQLite3 adapter for Python
@ -26,7 +26,7 @@ BUILD_DEPENDS = textproc/py-sphinx
MODULES = lang/python
pre-configure:
@perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g' ${WRKSRC}/setup.cfg
@sed -i 's|_LOCALBASE_|${LOCALBASE}|g' ${WRKSRC}/setup.cfg
post-build:
cd ${WRKSRC} && \

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.35 2014/01/15 02:24:45 jeremy Exp $
# $OpenBSD: Makefile,v 1.36 2015/07/18 21:11:18 jasper Exp $
COMMENT= ruby interface to Berkeley DB
DISTNAME= bdb-0.6.5
@ -36,7 +36,7 @@ FLAVORS= ruby18 ruby19 ruby20
FLAVOR?= ruby20
pre-install:
@perl -i -pe 's,/usr,${LOCALBASE},' ${WRKSRC}/examples/*.rb
@sed -i 's,/usr,${LOCALBASE},' ${WRKSRC}/examples/*.rb
do-test:
@cd ${WRKSRC} && make test

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.25 2015/06/12 17:57:55 jasper Exp $
# $OpenBSD: Makefile,v 1.26 2015/07/18 21:11:18 jasper Exp $
PORTROACH= limit:^1
@ -29,7 +29,7 @@ TEST_DEPENDS= devel/ruby-mocha,${MODRUBY_FLAVOR}
MODRUBY_TEST= rspec3
pre-configure:
perl -pi -e 's,/var/lib,/var/db,g' \
sed -i 's,/var/lib,/var/db,g' \
${WRKSRC}/lib/hiera/backend.rb \
${WRKSRC}/lib/hiera/util.rb \
${WRKSRC}/spec/unit/util_spec.rb \

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2015/07/16 02:43:27 jasper Exp $
# $OpenBSD: Makefile,v 1.2 2015/07/18 21:11:18 jasper Exp $
COMMENT= simple pluggable hierarchical database
@ -27,7 +27,7 @@ TEST_DEPENDS= devel/ruby-mocha,${MODRUBY_FLAVOR}
MODRUBY_TEST= rspec3
pre-configure:
perl -pi -e 's,/var/lib,/var/db,g' \
sed -i 's,/var/lib,/var/db,g' \
${WRKSRC}/lib/hiera/backend.rb \
${WRKSRC}/lib/hiera/util.rb \
${WRKSRC}/spec/unit/util_spec.rb \

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.20 2013/10/15 02:22:00 jeremy Exp $
# $OpenBSD: Makefile,v 1.21 2015/07/18 21:11:18 jasper Exp $
COMMENT= PostgreSQL tools from Skype
@ -21,7 +21,7 @@ MASTER_SITES= https://github.com/downloads/markokr/skytools/
MODULES= lang/python
BUILD_DEPENDS= databases/postgresql,-server
BUILD_DEPENDS= databases/postgresql,-server
RUN_DEPENDS= databases/py-psycopg2
@ -30,7 +30,7 @@ USE_GMAKE= Yes
USE_GROFF = Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-python=${MODPY_BIN}
CONFIGURE_ARGS= --with-python=${MODPY_BIN}
BINFILES= bulk_loader.py cube_dispatcher.py londiste.py \
pgqadm.py queue_mover.py queue_splitter.py \
@ -40,7 +40,7 @@ BINFILES= bulk_loader.py cube_dispatcher.py londiste.py \
pre-configure:
${SUBST_CMD} ${WRKSRC}/doc/Makefile
@find ${WRKSRC} -name '*.py' \
-exec perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},' {} \;
@perl -pi -e 's,share/doc,share/examples,' ${WRKSRC}/setup.py
-exec sed -i 's,/usr/bin/env python,${MODPY_BIN},' {} \;
@sed -i 's,share/doc,share/examples,' ${WRKSRC}/setup.py
.include <bsd.port.mk>