Changeset 15669


Ignore:
Timestamp:
2009-05-07T15:18:44+02:00 (9 years ago)
Author:
jow
Message:

This patch adds a new package "flock" that allows to manage file locks
from shell scripts. It provides more functionality than the busybox
"lock" command, i.e. locking existing file descriptors and non-blocking
operation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/util-linux-ng/Makefile

    r14433 r15669  
    11# 
    2 # Copyright (C) 2007-2008 OpenWrt.org 
     2# Copyright (C) 2007-2009 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    8989endef 
    9090 
     91define Package/flock 
     92$(call Package/util-linux/Default) 
     93  TITLE:=Manage file locks from shell scripts 
     94endef 
     95 
     96define Package/flock/description 
     97  This package contains a utility for managing file locks from shell scripts. 
     98endef 
     99 
    91100define Build/Compile 
    92101        $(MAKE) -C $(PKG_BUILD_DIR)/disk-utils mkswap 
     
    94103        $(MAKE) -C $(PKG_BUILD_DIR)/fdisk fdisk cfdisk 
    95104        $(MAKE) -C $(PKG_BUILD_DIR)/hwclock hwclock 
     105        $(MAKE) -C $(PKG_BUILD_DIR)/sys-utils flock 
    96106endef 
    97107 
     
    127137endef 
    128138 
     139define Package/flock/install 
     140        $(INSTALL_DIR) $(1)/usr/bin 
     141        $(INSTALL_BIN) $(PKG_BUILD_DIR)/sys-utils/flock $(1)/usr/bin/ 
     142endef 
     143 
    129144$(eval $(call BuildPackage,fdisk)) 
    130145$(eval $(call BuildPackage,cfdisk)) 
     
    133148$(eval $(call BuildPackage,swap-utils)) 
    134149$(eval $(call BuildPackage,hwclock)) 
     150$(eval $(call BuildPackage,flock)) 
Note: See TracChangeset for help on using the changeset viewer.