Changeset 4259


Ignore:
Timestamp:
2006-07-24T17:24:27+02:00 (12 years ago)
Author:
nico
Message:

port gnupg (gpg) to buildroot-ng

Location:
packages/utils/gnupg
Files:
2 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • packages/utils/gnupg/Makefile

    r3716 r4259  
     1#  
     2# Copyright (C) 2006 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
    17# $Id$ 
    28 
     
    612PKG_VERSION:=1.4.2.1 
    713PKG_RELEASE:=1 
    8 PKG_MD5SUM:=2d59ed50d92f69994dbfbe00fe1612e4 
    914 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
    1017PKG_SOURCE_URL:=ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/gnupg \ 
    1118        ftp://ftp.gnupg.org/gcrypt/gnupg 
    12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
     19PKG_MD5SUM:=2d59ed50d92f69994dbfbe00fe1612e4 
    1320PKG_CAT:=bzcat 
    1421 
    15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     22include $(INCLUDE_DIR)/package.mk 
    1623 
    17 include $(TOPDIR)/package/rules.mk 
     24define Package/gnupg 
     25  SECTION:=utils 
     26  CATEGORY:=Utilities 
     27  TITLE:=GNU Privacy Guard 
     28  DESCRIPTION:=GNU Privacy Guard (GnuPG).\\\ 
     29    GPG is an encryption program. 
     30  URL:=http://www.gnupg.org/ 
     31endef 
    1832 
    19 $(eval $(call PKG_template,GPG,gpg,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    20  
    21 $(PKG_BUILD_DIR)/.configured: 
     33define Build/Configure 
    2234        (cd $(PKG_BUILD_DIR); rm -rf config.cache; \ 
    2335                $(TARGET_CONFIGURE_OPTS) \ 
     
    6375                        --disable-regex \ 
    6476        ); 
    65         touch $@ 
     77endef 
    6678 
    67 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured 
     79define Build/Compile 
    6880        $(MAKE) -C $(PKG_BUILD_DIR) \ 
    6981                CC=$(TARGET_CC) 
    70         touch $@ 
     82endef 
    7183 
    72 $(IPKG_GPG):  
    73         mkdir -p $(IDIR_GPG)/usr/bin 
    74         $(CP) $(PKG_BUILD_DIR)/g10/gpg $(IDIR_GPG)/usr/bin/ 
    75         $(RSTRIP) $(IDIR_GPG) 
    76         $(IPKG_BUILD) $(IDIR_GPG) $(PACKAGE_DIR) 
     84define Package/gnupg/install 
     85        install -d -m0755 $(1)/usr/bin 
     86        install -m0755 $(PKG_BUILD_DIR)/g10/gpg $(1)/usr/bin/ 
     87endef 
     88 
     89$(eval $(call BuildPackage,gnupg)) 
Note: See TracChangeset for help on using the changeset viewer.