aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>2001-11-21 08:42:18 +0800
committermax <max@FreeBSD.org>2001-11-21 08:42:18 +0800
commit2911a809b69250782af88050bfb57d914e627548 (patch)
treeadd1159d13a75c16086933e94265ea5948c2168d /japanese
parentff1841fd96d0975a85b26cae1ec6ffb652dcf51b (diff)
downloadfreebsd-ports-gnome-2911a809b69250782af88050bfb57d914e627548.tar.gz
freebsd-ports-gnome-2911a809b69250782af88050bfb57d914e627548.tar.zst
freebsd-ports-gnome-2911a809b69250782af88050bfb57d914e627548.zip
Adjust post-install and pkg-plist so that all necessary directories
are created with proper mode/ownership at installation time, and thus, possible to pkg_delete cleanly.
Diffstat (limited to 'japanese')
-rw-r--r--japanese/Canna/Makefile9
-rw-r--r--japanese/Canna/pkg-plist12
-rw-r--r--japanese/canna-lib/Makefile9
-rw-r--r--japanese/canna-lib/pkg-plist12
-rw-r--r--japanese/canna-server/Makefile9
-rw-r--r--japanese/canna-server/pkg-plist12
6 files changed, 36 insertions, 27 deletions
diff --git a/japanese/Canna/Makefile b/japanese/Canna/Makefile
index 15212209c8a4..638e71989ab0 100644
--- a/japanese/Canna/Makefile
+++ b/japanese/Canna/Makefile
@@ -48,13 +48,16 @@ MLINKS= uilibs.3 XKanjiControl.3 uilibs.3 XLookupKanjiString.3 \
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/canna.sh
-pre-install:
+post-install:
${MKDIR} /var/run/canna
${CHOWN} bin:bin /var/run/canna
+.for f in user user/user group
+ ${MKDIR} ${PREFIX}/lib/canna/dic/$f
+ ${CHOWN} bin:bin ${PREFIX}/lib/canna/dic/$f
+ ${CHMOD} 775 ${PREFIX}/lib/canna/dic/$f
+.endfor
@${SED} -e "s;@PREFIX@;${PREFIX};g" ${FILESDIR}/canna.sh.in \
>${WRKDIR}/canna.sh
-
-post-install:
if [ ! -f ${STARTUP_SCRIPT} ]; then \
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
${INSTALL_SCRIPT} ${WRKDIR}/canna.sh ${STARTUP_SCRIPT}; \
diff --git a/japanese/Canna/pkg-plist b/japanese/Canna/pkg-plist
index b3b48620199c..5b2eecaf85e5 100644
--- a/japanese/Canna/pkg-plist
+++ b/japanese/Canna/pkg-plist
@@ -111,15 +111,15 @@ sbin/cannaserver
sbin/cannakill
@exec mkdir /var/run/canna
@exec chown bin.bin /var/run/canna
-@exec chown bin.bin %D/lib/canna/dic/canna
-@exec chmod 775 %D/lib/canna/dic/canna
-@exec chown bin.bin %D/lib/canna/dic
-@exec chmod 775 %D/lib/canna/dic
-@exec chown bin.bin %D/lib/canna/dic/user/user %D/lib/canna/dic/user
-@exec chmod 775 %D/lib/canna/dic/user/user %D/lib/canna/dic/user
+@exec mkdir -p %D/lib/canna/dic/user/user %D/lib/canna/dic/group
+@exec chown bin.bin %D/lib/canna/dic/user/user %D/lib/canna/dic/user %D/lib/canna/dic/group
+@exec chmod 775 %D/lib/canna/dic/user/user %D/lib/canna/dic/user %D/lib/canna/dic/group
@unexec /bin/rmdir /var/run/canna
@dirrm lib/canna/sample/src
@dirrm lib/canna/sample
+@dirrm lib/canna/dic/user/user
+@dirrm lib/canna/dic/user
+@dirrm lib/canna/dic/group
@dirrm lib/canna/dic/canna
@dirrm lib/canna/dic
@dirrm lib/canna
diff --git a/japanese/canna-lib/Makefile b/japanese/canna-lib/Makefile
index 15212209c8a4..638e71989ab0 100644
--- a/japanese/canna-lib/Makefile
+++ b/japanese/canna-lib/Makefile
@@ -48,13 +48,16 @@ MLINKS= uilibs.3 XKanjiControl.3 uilibs.3 XLookupKanjiString.3 \
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/canna.sh
-pre-install:
+post-install:
${MKDIR} /var/run/canna
${CHOWN} bin:bin /var/run/canna
+.for f in user user/user group
+ ${MKDIR} ${PREFIX}/lib/canna/dic/$f
+ ${CHOWN} bin:bin ${PREFIX}/lib/canna/dic/$f
+ ${CHMOD} 775 ${PREFIX}/lib/canna/dic/$f
+.endfor
@${SED} -e "s;@PREFIX@;${PREFIX};g" ${FILESDIR}/canna.sh.in \
>${WRKDIR}/canna.sh
-
-post-install:
if [ ! -f ${STARTUP_SCRIPT} ]; then \
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
${INSTALL_SCRIPT} ${WRKDIR}/canna.sh ${STARTUP_SCRIPT}; \
diff --git a/japanese/canna-lib/pkg-plist b/japanese/canna-lib/pkg-plist
index b3b48620199c..5b2eecaf85e5 100644
--- a/japanese/canna-lib/pkg-plist
+++ b/japanese/canna-lib/pkg-plist
@@ -111,15 +111,15 @@ sbin/cannaserver
sbin/cannakill
@exec mkdir /var/run/canna
@exec chown bin.bin /var/run/canna
-@exec chown bin.bin %D/lib/canna/dic/canna
-@exec chmod 775 %D/lib/canna/dic/canna
-@exec chown bin.bin %D/lib/canna/dic
-@exec chmod 775 %D/lib/canna/dic
-@exec chown bin.bin %D/lib/canna/dic/user/user %D/lib/canna/dic/user
-@exec chmod 775 %D/lib/canna/dic/user/user %D/lib/canna/dic/user
+@exec mkdir -p %D/lib/canna/dic/user/user %D/lib/canna/dic/group
+@exec chown bin.bin %D/lib/canna/dic/user/user %D/lib/canna/dic/user %D/lib/canna/dic/group
+@exec chmod 775 %D/lib/canna/dic/user/user %D/lib/canna/dic/user %D/lib/canna/dic/group
@unexec /bin/rmdir /var/run/canna
@dirrm lib/canna/sample/src
@dirrm lib/canna/sample
+@dirrm lib/canna/dic/user/user
+@dirrm lib/canna/dic/user
+@dirrm lib/canna/dic/group
@dirrm lib/canna/dic/canna
@dirrm lib/canna/dic
@dirrm lib/canna
diff --git a/japanese/canna-server/Makefile b/japanese/canna-server/Makefile
index 15212209c8a4..638e71989ab0 100644
--- a/japanese/canna-server/Makefile
+++ b/japanese/canna-server/Makefile
@@ -48,13 +48,16 @@ MLINKS= uilibs.3 XKanjiControl.3 uilibs.3 XLookupKanjiString.3 \
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/canna.sh
-pre-install:
+post-install:
${MKDIR} /var/run/canna
${CHOWN} bin:bin /var/run/canna
+.for f in user user/user group
+ ${MKDIR} ${PREFIX}/lib/canna/dic/$f
+ ${CHOWN} bin:bin ${PREFIX}/lib/canna/dic/$f
+ ${CHMOD} 775 ${PREFIX}/lib/canna/dic/$f
+.endfor
@${SED} -e "s;@PREFIX@;${PREFIX};g" ${FILESDIR}/canna.sh.in \
>${WRKDIR}/canna.sh
-
-post-install:
if [ ! -f ${STARTUP_SCRIPT} ]; then \
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
${INSTALL_SCRIPT} ${WRKDIR}/canna.sh ${STARTUP_SCRIPT}; \
diff --git a/japanese/canna-server/pkg-plist b/japanese/canna-server/pkg-plist
index b3b48620199c..5b2eecaf85e5 100644
--- a/japanese/canna-server/pkg-plist
+++ b/japanese/canna-server/pkg-plist
@@ -111,15 +111,15 @@ sbin/cannaserver
sbin/cannakill
@exec mkdir /var/run/canna
@exec chown bin.bin /var/run/canna
-@exec chown bin.bin %D/lib/canna/dic/canna
-@exec chmod 775 %D/lib/canna/dic/canna
-@exec chown bin.bin %D/lib/canna/dic
-@exec chmod 775 %D/lib/canna/dic
-@exec chown bin.bin %D/lib/canna/dic/user/user %D/lib/canna/dic/user
-@exec chmod 775 %D/lib/canna/dic/user/user %D/lib/canna/dic/user
+@exec mkdir -p %D/lib/canna/dic/user/user %D/lib/canna/dic/group
+@exec chown bin.bin %D/lib/canna/dic/user/user %D/lib/canna/dic/user %D/lib/canna/dic/group
+@exec chmod 775 %D/lib/canna/dic/user/user %D/lib/canna/dic/user %D/lib/canna/dic/group
@unexec /bin/rmdir /var/run/canna
@dirrm lib/canna/sample/src
@dirrm lib/canna/sample
+@dirrm lib/canna/dic/user/user
+@dirrm lib/canna/dic/user
+@dirrm lib/canna/dic/group
@dirrm lib/canna/dic/canna
@dirrm lib/canna/dic
@dirrm lib/canna