$NetBSD$

--- systray/Makefile.orig	2005-05-31 15:31:27.000000000 +0000
+++ systray/Makefile
@@ -41,8 +41,8 @@ endif
 
 ifeq (0,$(STATIC_PLUGINS))
 install: 
-	install -d  $(PREFIX)/share/fbpanel/plugins
-	install -m 644 $(TARGET) $(PREFIX)/share/fbpanel/plugins
+	${BSD_INSTALL_LIB_DIR} $(PREFIX)/share/fbpanel/plugins
+	${BSD_INSTALL_LIB} $(TARGET) $(PREFIX)/share/fbpanel/plugins
 
 uninstall:
 	$(RM) $(PREFIX)/share/fbpanel/plugins/$(TARGET)
