lockfile-progs: convert to gentargets and bump to 0.1.15
authorMartin Banky <martin.banky@gmail.com>
Sun, 26 Sep 2010 07:14:08 +0000 (00:14 -0700)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 29 Sep 2010 20:35:43 +0000 (22:35 +0200)
[Peter: no strip, remove unused _BINARY var]
Signed-off-by: Martin Banky <Martin.Banky@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/lockfile-progs/lockfile-progs-0.1.11-sus3v-legacy.patch [deleted file]
package/lockfile-progs/lockfile-progs-0.1.15-sus3v-legacy.patch [new file with mode: 0644]
package/lockfile-progs/lockfile-progs.mk

diff --git a/CHANGES b/CHANGES
index 907eab1db9702720d9a0aaf2b3b1ff61810261d2..0ce74e4a427079f8863685f90fd46f0dd8f446ad 100644 (file)
--- a/CHANGES
+++ b/CHANGES
        libcgi, libcurl, libdaemon, libdnet, liberation, libevent,
        libglade, libgtk2, libiconv, libidn, libmms, libnl, liboil,
        libpcap, libpng, libtool, libungif, libxml2, libxslt,
-       lighttpd, lite, lm-sensors, logrotate, m4, mdadm, mesa3d,
-       metacity, mtd-utils, mysql_client, nano, nbd, ncftp, neon,
-       netperf, netsnmp, ng-spice-rework, ntfsprogs, ntp, openntpd,
-       openssh, openvpn, oprofile, pango, patch, pcre, php,
-       pkg-config, prboom, radvd, rdesktop, ruby, qt, samba, sawman,
-       sdl_mixer, sdl_sound, setserial, shared-mime-info, speex,
-       sqlite, squashfs, strace, sylpheed, taglib, tcpdump, thttpd,
-       tiff, tn5250, udev, udpcast, usbmount, usbutils, vsftpd, vtun,
-       which, wpa_supplicant,
+       lighttpd, lite, lm-sensors, lockfile-progs, logrotate, m4,
+       mdadm, mesa3d, metacity, mtd-utils, mysql_client, nano, nbd,
+       ncftp, neon, netperf, netsnmp, ng-spice-rework, ntfsprogs,
+       ntp, openntpd, openssh, openvpn, oprofile, pango, patch, pcre,
+       php, pkg-config, prboom, radvd, rdesktop, ruby, qt, samba,
+       sawman, sdl_mixer, sdl_sound, setserial, shared-mime-info,
+       speex, sqlite, squashfs, strace, sylpheed, taglib, tcpdump,
+       thttpd, tiff, tn5250, udev, udpcast, usbmount, usbutils,
+       vsftpd, vtun, which, wpa_supplicant,
        xdriver_xf86-input-{acecad,aiptek,evdev,joystick,keyboard},
        xdriver-xf86-input-{mouse,synaptics,vmmouse,void},
        xdriver-xf86-video-{apm,ark,ast,ati,chips,cirrus,dummy,fbdev},
diff --git a/package/lockfile-progs/lockfile-progs-0.1.11-sus3v-legacy.patch b/package/lockfile-progs/lockfile-progs-0.1.11-sus3v-legacy.patch
deleted file mode 100644 (file)
index 8cf552e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- /lockfile-progs.orig.c     2007-10-11 10:32:09.000000000 -0300
-+++ /lockfile-progs.c  2007-10-11 10:32:28.000000000 -0300
-@@ -93,7 +93,7 @@
-     { NULL, 0, NULL, 0 }
-   };
--  char *cmd_name = rindex(argv[0], '/');
-+  char *cmd_name = strrchr(argv[0], '/');
-   int mail_cmd_p = 0;
-   if(cmd_name != NULL) {
diff --git a/package/lockfile-progs/lockfile-progs-0.1.15-sus3v-legacy.patch b/package/lockfile-progs/lockfile-progs-0.1.15-sus3v-legacy.patch
new file mode 100644 (file)
index 0000000..8cf552e
--- /dev/null
@@ -0,0 +1,11 @@
+--- /lockfile-progs.orig.c     2007-10-11 10:32:09.000000000 -0300
++++ /lockfile-progs.c  2007-10-11 10:32:28.000000000 -0300
+@@ -93,7 +93,7 @@
+     { NULL, 0, NULL, 0 }
+   };
+-  char *cmd_name = rindex(argv[0], '/');
++  char *cmd_name = strrchr(argv[0], '/');
+   int mail_cmd_p = 0;
+   if(cmd_name != NULL) {
index 3925ca3c697ec9d3d213cf4d2f79bb391a546439..c7b55652aa9d471021e0f5527aaa71d85191b329 100644 (file)
@@ -3,42 +3,21 @@
 # lockfile-progs
 #
 #############################################################
-LOCKFILE_PROGS_VERSION=0.1.11-0.1
-LOCKFILE_PROGS_SOURCE:=lockfile-progs_$(LOCKFILE_PROGS_VERSION).tar.gz
-LOCKFILE_PROGS_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/l/lockfile-progs/
-LOCKFILE_PROGS_CAT:=$(ZCAT)
-LOCKFILE_PROGS_DIR:=$(BUILD_DIR)/lockfile-progs-0.1.11
-LOCKFILE_PROGS_BINARY:=usr/bin/lockfile-create
+LOCKFILE_PROGS_VERSION = 0.1.15
+LOCKFILE_PROGS_SOURCE = lockfile-progs_$(LOCKFILE_PROGS_VERSION).tar.gz
+LOCKFILE_PROGS_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/l/lockfile-progs/
 
-$(DL_DIR)/$(LOCKFILE_PROGS_SOURCE):
-        $(call DOWNLOAD,$(LOCKFILE_PROGS_SITE),$(LOCKFILE_PROGS_SOURCE))
+define LOCKFILE_PROGS_BUILD_CMDS
+       $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
+endef
 
-lockfile-progs-source: $(DL_DIR)/$(LOCKFILE_PROGS_SOURCE)
+define LOCKFILE_PROGS_INSTALL_TARGET_CMDS
+       cp -a $(@D)/bin/lockfile* $(TARGET_DIR)/usr/bin
+endef
 
-$(LOCKFILE_PROGS_DIR)/.unpacked: $(DL_DIR)/$(LOCKFILE_PROGS_SOURCE)
-       $(LOCKFILE_PROGS_CAT) $(DL_DIR)/$(LOCKFILE_PROGS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
-       toolchain/patch-kernel.sh $(LOCKFILE_PROGS_DIR) package/lockfile-progs/ \*.patch
-       touch $(LOCKFILE_PROGS_DIR)/.unpacked
-
-$(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY): $(LOCKFILE_PROGS_DIR)/.unpacked
-       $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(LOCKFILE_PROGS_DIR)
-       cp -a $(LOCKFILE_PROGS_DIR)/bin/lockfile* $(TARGET_DIR)/usr/bin
-       $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY)
-
-lockfile-progs: liblockfile $(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY)
-
-lockfile-progs-clean:
+define LOCKFILE_PROGS_CLEAN_CMDS
        -rm -f $(TARGET_DIR)/usr/bin/lockfile-*
-       -$(MAKE) -C $(LOCKFILE_PROGS_DIR) clean
-
-lockfile-progs-dirclean:
-       rm -rf $(LOCKFILE_PROGS_DIR)
+       -$(MAKE) -C $(@D) clean
+endef
 
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(BR2_PACKAGE_LOCKFILE_PROGS),y)
-TARGETS+=lockfile-progs
-endif
+$(eval $(call GENTARGETS,package,lockfile-progs))