-
-$(IPKG_SERVER): $(PKG_BUILD_DIR)/kismet_server
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_SERVER) kismet-server.control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- mkdir -p $(IDIR_SERVER)/etc
- cp ./files/ap_manuf $(IDIR_SERVER)/etc/
- cp ./files/client_manuf $(IDIR_SERVER)/etc/
- cp ./files/kismet.conf $(IDIR_SERVER)/etc/
- echo '/etc/kismet.conf' > $(IDIR_SERVER)/CONTROL/conffiles
- echo '/etc/ap_manuf' >> $(IDIR_SERVER)/CONTROL/conffiles
- echo '/etc/client_manuf' >> $(IDIR_SERVER)/CONTROL/conffiles
- mkdir -p $(IDIR_SERVER)/usr/sbin
- cp $< $(IDIR_SERVER)/usr/sbin/
- $(STRIP) $(IDIR_SERVER)/usr/sbin/*
- mkdir -p $(PACKAGE_DIR)
- $(IPKG_BUILD) $(IDIR_SERVER) $(PACKAGE_DIR)
-
-$(INFO_SERVER): $(IPKG_SERVER)
- $(IPKG) install $(IPKG_SERVER)
-
-$(IPKG_DRONE): $(PKG_BUILD_DIR)/kismet_drone
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_DRONE) kismet-drone.control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- mkdir -p $(IDIR_DRONE)/etc
- cp ./files/kismet_drone.conf $(IDIR_DRONE)/etc/
- echo '/etc/kismet_drone.conf' > $(IDIR_DRONE)/CONTROL/conffiles
- mkdir -p $(IDIR_DRONE)/usr/sbin
- cp $< $(IDIR_DRONE)/usr/sbin/
- $(STRIP) $(IDIR_DRONE)/usr/sbin/*
- mkdir -p $(PACKAGE_DIR)
- $(IPKG_BUILD) $(IDIR_DRONE) $(PACKAGE_DIR)
-
-$(INFO_DRONE): $(IPKG_DRONE)
- $(IPKG) install $(IPKG_DRONE)
-
-$(IPKG_CLIENT): $(PKG_BUILD_DIR)/kismet_client
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_CLIENT) kismet-client.control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- mkdir -p $(IDIR_CLIENT)/etc
- cp ./files/ap_manuf $(IDIR_CLIENT)/etc/
- cp ./files/client_manuf $(IDIR_CLIENT)/etc/
- cp ./files/kismet.conf $(IDIR_CLIENT)/etc/
- cp ./files/kismet_ui.conf $(IDIR_CLIENT)/etc/
- echo '/etc/kismet.conf' > $(IDIR_CLIENT)/CONTROL/conffiles
- echo '/etc/kismet_ui.conf' >> $(IDIR_CLIENT)/CONTROL/conffiles
- echo '/etc/ap_manuf' >> $(IDIR_CLIENT)/CONTROL/conffiles
- echo '/etc/client_manuf' >> $(IDIR_CLIENT)/CONTROL/conffiles
- mkdir -p $(IDIR_CLIENT)/usr/sbin
- cp $< $(IDIR_CLIENT)/usr/sbin/
- $(STRIP) $(IDIR_CLIENT)/usr/sbin/*
- mkdir -p $(PACKAGE_DIR)
- $(IPKG_BUILD) $(IDIR_CLIENT) $(PACKAGE_DIR)
-
-$(INFO_CLIENT): $(IPKG_CLIENT)
- $(IPKG) install $(IPKG_CLIENT)
-
-source: $(DL_DIR)/$(PKG_SOURCE)
-prepare: $(PKG_BUILD_DIR)/.prepared
-compile: $(COMPILE_TARGETS)
-install: $(INSTALL_TARGETS)
-
-clean:
- rm -rf $(PKG_BUILD_DIR) $(IPKG_KISMET)
+ touch $@
+
+$(IPKG_KISMET_CLIENT):
+ install -d -m0755 $(IDIR_KISMET_CLIENT)/etc/kismet/
+ install -m0644 ./files/ap_manuf $(IDIR_KISMET_CLIENT)/etc/kismet/
+ install -m0644 ./files/client_manuf $(IDIR_KISMET_CLIENT)/etc/kismet/
+ install -m0644 ./files/kismet.conf $(IDIR_KISMET_CLIENT)/etc/kismet/
+ install -m0644 ./files/kismet_ui.conf $(IDIR_KISMET_CLIENT)/etc/kismet/
+ install -d -m0755 $(IDIR_KISMET_CLIENT)/usr/sbin
+ cp -fpR $(PKG_BUILD_DIR)/kismet_client $(IDIR_KISMET_CLIENT)/usr/sbin/
+ $(RSTRIP) $(IDIR_KISMET_CLIENT)
+ $(IPKG_BUILD) $(IDIR_KISMET_CLIENT) $(PACKAGE_DIR)
+
+$(IPKG_KISMET_DRONE):
+ install -d -m0755 $(IDIR_KISMET_DRONE)/etc/kismet/
+ install -m0644 ./files/kismet_drone.conf $(IDIR_KISMET_DRONE)/etc/kismet/
+ install -d -m0755 $(IDIR_KISMET_DRONE)/usr/sbin
+ cp -fpR $(PKG_BUILD_DIR)/kismet_drone $(IDIR_KISMET_DRONE)/usr/sbin/
+ $(RSTRIP) $(IDIR_KISMET_DRONE)
+ $(IPKG_BUILD) $(IDIR_KISMET_DRONE) $(PACKAGE_DIR)
+
+$(IPKG_KISMET_SERVER):
+ install -d -m0755 $(IDIR_KISMET_SERVER)/etc/kismet/
+ install -m0644 ./files/ap_manuf $(IDIR_KISMET_SERVER)/etc/kismet/
+ install -m0644 ./files/client_manuf $(IDIR_KISMET_SERVER)/etc/kismet/
+ install -m0644 ./files/kismet.conf $(IDIR_KISMET_SERVER)/etc/kismet/
+ mkdir -p $(IDIR_KISMET_SERVER)/usr/sbin
+ cp -fpR $(PKG_BUILD_DIR)/kismet_server $(IDIR_KISMET_SERVER)/usr/sbin/
+ $(RSTRIP) $(IDIR_KISMET_SERVER)
+ $(IPKG_BUILD) $(IDIR_KISMET_SERVER) $(PACKAGE_DIR)
+
+mostlyclean:
+ $(MAKE) -C $(PKG_BUILD_DIR) clean
+ rm -f $(PKG_BUILD_DIR)/.built