Changeset 27085


Ignore:
Timestamp:
2011-06-01T16:47:21+02:00 (7 years ago)
Author:
bud
Message:

bump version to 2011.4.12,
new package ntfsprogs_ntfs-3g

Location:
packages/utils/ntfs-3g
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/ntfs-3g/Makefile

    r25308 r27085  
    1111PKG_RELEASE:=1 
    1212 
    13 PKG_VERSION:=2011.1.15 
     13# 2011.4.12 integrates ntfsprogs and changed srcfile name 
     14PKG_VERSION:=2011.4.12 
     15# disable next line and do _not_ select ntfsprogs_ntfs-3g to build an older version 
     16PKG_SOURCE:=$(PKG_NAME)_ntfsprogs-$(PKG_VERSION).tgz 
    1417 
    1518## 2010.3.6 needs a recent uclibc 0.9.30.2 or greater 
     
    2023#endif 
    2124 
    22 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz 
     25PATCH_DIR:=./patches-$(PKG_VERSION) 
     26 
     27PKG_SOURCE?=$(PKG_NAME)-$(PKG_VERSION).tgz 
    2328PKG_SOURCE_URL:=http://www.tuxera.com/opensource/ 
    2429 
     
    3035PKG_MD5SUM_2010.10.2:=91405690f25822142cdcb43d03e62d3f 
    3136PKG_MD5SUM_2011.1.15:=15a5cf5752012269fa168c24191f00e2 
     37PKG_MD5SUM_2011.4.12:=9c4ce318373b15332239a77a9d2a39fe 
    3238PKG_MD5SUM:=$(PKG_MD5SUM_$(PKG_VERSION)) 
    3339 
     
    116122endef 
    117123 
     124# TODO: write a proper description 
     125# new in 2001.4.12 
     126define Package/ntfsprogs_ntfs-3g 
     127  $(call Package/ntfs-3g/common) 
     128  TITLE:=ntfsprogs (ntfs-3g) 
     129  DEPENDS+= +ntfs-3g +libgcrypt 
     130endef 
     131 
    118132CONFIGURE_ARGS += \ 
    119133        --enable-shared \ 
     
    129143endif 
    130144 
     145# enable disable ntfsprogs 
     146ifneq ($(CONFIG_PACKAGE_ntfsprogs_ntfs-3g)$(SDK)$(DEVELOPER),) 
     147        CONFIGURE_ARGS += --enable-ntfsprogs 
     148else 
     149        CONFIGURE_ARGS += --disable-ntfsprogs 
     150endif 
     151 
    131152# redefine prepare to extract to our build dir 
     153# apply patches 
    132154define Build/Prepare 
    133155        rm -rf $(PKG_BUILD_DIR)/ 
    134156        mkdir -p $(PKG_BUILD_DIR)/ 
    135157        $(TAR) -xzf $(DL_DIR)/$(PKG_SOURCE) -C $(PKG_BUILD_DIR) --strip 1 
     158        $(Build/Patch) 
    136159endef 
    137160 
     
    154177define Package/ntfs-3g/postinst 
    155178#!/bin/sh 
    156  
    157 if [ -z "$$(grep ^\\ntfs-3g: $${IPKG_INSTROOT}/etc/filesystems)" ]; then 
    158         echo "ntfs-3g" >> $${IPKG_INSTROOT}/etc/filesystems 
     179FILE="$${IPKG_INSTROOT}/etc/filesystems" 
     180ID="ntfs-3g" 
     181 
     182if ! [ -f '/etc/filesystems' ]; then 
     183        echo "Create '$$FILE'." 
     184        touch "$$FILE" 
     185fi 
     186 
     187if ! grep -q -e '^ntfs-3g$$' "$$FILE"; then 
     188        echo "Add '$$ID' to known filesystems." 
     189        echo "$$ID" >> "$$FILE" 
    159190fi 
    160191 
     
    170201define Package/ntfs-3g-low/postinst 
    171202#!/bin/sh 
    172  
    173 if [ -z "$$(grep ^\\lowntfs-3g: $${IPKG_INSTROOT}/etc/filesystems)" ]; then 
    174         echo "lowntfs-3g" >> $${IPKG_INSTROOT}/etc/filesystems 
     203FILE="$${IPKG_INSTROOT}/etc/filesystems" 
     204ID="lowntfs-3g" 
     205 
     206if ! [ -f '/etc/filesystems' ]; then 
     207        echo "Create '$$FILE'." 
     208        touch "$$FILE" 
     209fi 
     210 
     211if ! grep -q -e '^ntfs-3g$$' "$$FILE"; then 
     212        echo "Add '$$ID' to known filesystems." 
     213        echo "$$ID" >> "$$FILE" 
    175214fi 
    176215 
     
    180219        $(INSTALL_DIR) $(1)/usr/bin 
    181220        $(FIND) $(PKG_INSTALL_DIR)/usr/bin/ -type f ! -name ntfs-3g.probe ! -name ntfs-3g -exec $(INSTALL_BIN) {} $(1)/usr/bin/ \; 
     221endef 
     222 
     223define Package/ntfsprogs_ntfs-3g/install 
     224        $(INSTALL_DIR) $(1)/sbin 
     225        $(CP) $(PKG_INSTALL_DIR)/sbin/mkfs.ntfs $(1)/sbin/ 
     226        $(INSTALL_DIR) $(1)/usr/bin 
     227        $(FIND) $(PKG_INSTALL_DIR)/usr/bin/ -type f ! -regex '.*[^/]*ntfs-3g[^/]*' -exec $(INSTALL_BIN) {} $(1)/usr/bin/ \; 
     228        $(INSTALL_DIR) $(1)/usr/sbin 
     229        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/ 
    182230endef 
    183231 
     
    185233$(eval $(call BuildPackage,ntfs-3g-low)) 
    186234$(eval $(call BuildPackage,ntfs-3g-utils)) 
    187  
     235$(eval $(call BuildPackage,ntfsprogs_ntfs-3g)) 
Note: See TracChangeset for help on using the changeset viewer.