1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/chinese/MT/pkg-install
Yen-Ming Lee 593fc61850 - apply patches from Jedi
- update 2.661 and keep up with www/MT
- take maintainership

Submitted by:	Jedi@idej.org
2004-02-04 08:56:00 +00:00

12 lines
358 B
Bash

#!/bin/sh
DIFF=${PKG_PREFIX}/www/data/mt/mt.diff
CGIDIR=${PKG_PREFIX}/www/cgi-bin/mt
if [ "$2" = "POST-INSTALL" ]; then
cat ${DIFF} | patch -d ${CGIDIR} --forward --quiet -E -p1
find ${CGIDIR} -name "*.orig" -delete
elif [ "$2" = "DEINSTALL" ]; then
cat ${DIFF} | patch -d ${CGIDIR} --reverse --quiet -E -p1
find ${CGIDIR} -name "*.orig" -delete
fi