Changeset 19168


Ignore:
Timestamp:
2010-01-16T14:47:33+01:00 (8 years ago)
Author:
jow
Message:

[package] openldap: add slapd.conf to the package and mark it as config file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/openldap/Makefile

    r19122 r19168  
    1010PKG_NAME:=openldap 
    1111PKG_VERSION:=2.4.19 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz 
     
    7474endef 
    7575 
     76define Package/openldap-server/conffiles 
     77/etc/openldap/slapd.conf 
     78endef 
     79 
    7680TARGET_CFLAGS += $(FPIC) 
    7781 
     
    107111define Build/InstallDev 
    108112        $(INSTALL_DIR) $(1)/usr/include 
    109         $(CP) $(PKG_INSTALL_DIR)/usr/include/{lber,ldap}*.h $(1)/usr/include/ 
     113        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/{lber,ldap}*.h $(1)/usr/include/ 
    110114        $(INSTALL_DIR) $(1)/usr/lib/ 
    111         $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.{a,so*} $(1)/usr/lib/ 
     115        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.{a,so*} $(1)/usr/lib/ 
    112116endef 
    113117 
    114118define Package/libopenldap/install 
    115119        $(INSTALL_DIR) $(1)/etc/openldap 
    116         $(CP) $(PKG_INSTALL_DIR)/etc/openldap/ldap.conf $(1)/etc/openldap/ 
     120        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/openldap/ldap.conf $(1)/etc/openldap/ 
    117121        $(INSTALL_DIR) $(1)/usr/lib 
    118         $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.so.* $(1)/usr/lib/ 
     122        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.so.* $(1)/usr/lib/ 
    119123endef 
    120124         
     
    128132        $(INSTALL_BIN) ./files/ldap.init $(1)/etc/init.d/ldap 
    129133        $(INSTALL_DIR) $(1)/etc/openldap/schema 
    130         $(CP) $(PKG_INSTALL_DIR)/etc/openldap/schema/* $(1)/etc/openldap/schema/ 
     134        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/openldap/schema/* $(1)/etc/openldap/schema/ 
     135        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/openldap/slapd.conf $(1)/etc/openldap/ 
    131136        $(INSTALL_DIR) $(1)/usr/sbin 
    132137        # OpenLDAP installs slapd into libexecdir, not sbindir: 
Note: See TracChangeset for help on using the changeset viewer.