593fc61850
- update 2.661 and keep up with www/MT - take maintainership Submitted by: Jedi@idej.org
11 lines
358 B
Bash
11 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
|