mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
593fc61850
- update 2.661 and keep up with www/MT - take maintainership Submitted by: Jedi@idej.org
12 lines
358 B
Bash
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
|