Solaris/SUNWapoc.spec
changeset 4001 786bcfe981bc
parent 4000 2175011061ad
child 4002 a095b252e7ea
--- a/Solaris/SUNWapoc.spec	Mon Sep 20 06:37:25 2004 +0000
+++ b/Solaris/SUNWapoc.spec	Mon Sep 20 08:45:08 2004 +0000
@@ -36,32 +36,11 @@
 %description
 Sun Java[tm] Desktop System Configuration Agent
 
-%post
-if [ -f $PKG_INSTALL_ROOT/lib/svc/share/smf_include.sh ] ; then
- . $PKG_INSTALL_ROOT/lib/svc/share/smf_include.sh
- smf_present
- if [ $? -eq 0 ] ; then
-  $PKG_INSTALL_ROOT/usr/sbin/svccfg import $PKG_INSTALL_ROOT/usr/lib/apoc/apocd.xml
- fi
-fi
-
 %preun
 if [ "${PKG_INSTALL_ROOT}" = "/" ] ; then
  $PKG_INSTALL_ROOT/usr/lib/apoc/apocd disable
 fi
 
-%postun
-if [ -f $PKG_INSTALL_ROOT/lib/svc/share/smf_include.sh ] ; then
- . $PKG_INSTALL_ROOT/lib/svc/share/smf_include.sh
- smf_present
- if [ $? -eq 0 ] ; then
-  $PKG_INSTALL_ROOT/usr/sbin/svccfg export svc:/network/apocd/udp > /dev/null 2>&1
-  if [ $? -eq 0 ] ; then
-   $PKG_INSTALL_ROOT/usr/sbin/svccfg delete -f svc:/network/apocd/udp
-  fi
- fi
-fi
-
 %files
 %defattr(0644, root, other)
 %dir %attr(0755,root,bin) /usr/lib
@@ -74,7 +53,6 @@
 /usr/share/lib/apoc/db.jar
 
 %attr(0744,root,other) /usr/lib/apoc/apocd
-%attr(0755,root,other) /usr/lib/apoc/apocd.xml
 %attr(0755,root,other) /usr/lib/apoc/libFileAccess.so
 %attr(0755,root,other) /usr/lib/apoc/libdb-3.2.so
 %attr(0755,root,other) /usr/lib/apoc/libdb_java-3.2.so