|
|
@ -55,18 +55,18 @@ define SAMBA36_AUTOGEN_SH |
|
|
|
endef |
|
|
|
SAMBA36_PRE_CONFIGURE_HOOKS += SAMBA36_AUTOGEN_SH |
|
|
|
|
|
|
|
samba36: $(SAMBA36_DEPENDENCIES) $(DL_DIR)/$(SAMBA36_SOURCE) | $(TARGET_DIR) |
|
|
|
$(REMOVE)/$(PKG_DIR) |
|
|
|
$(UNTAR)/$(PKG_SOURCE) |
|
|
|
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR)) |
|
|
|
$(call TARGET_CONFIGURE) |
|
|
|
$(CHDIR)/$($(PKG)_DIR)/$($(PKG)_SUBDIR); \
|
|
|
|
$(MAKE); \
|
|
|
|
$(MAKE) install DESTDIR=$(TARGET_DIR) |
|
|
|
define SAMBA36_INSTALL_FILES |
|
|
|
$(INSTALL) -d $(TARGET_localstatedir)/samba/locks |
|
|
|
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/smb3.conf $(TARGET_sysconfdir)/samba/smb.conf |
|
|
|
$(INSTALL_EXEC) -D $(PKG_FILES_DIR)/samba3.init $(TARGET_sysconfdir)/init.d/samba |
|
|
|
$(UPDATE-RC.D) samba defaults 75 25 |
|
|
|
endef |
|
|
|
SAMBA36_POST_INSTALL_HOOKS += SAMBA36_INSTALL_FILES |
|
|
|
|
|
|
|
define SAMBA36_TARGET_CLEANUP |
|
|
|
$(TARGET_RM) $(addprefix $(TARGET_bindir)/,testparm findsmb smbtar smbclient smbpasswd) |
|
|
|
$(REMOVE)/$(PKG_DIR) |
|
|
|
$(call TOUCH) |
|
|
|
endef |
|
|
|
SAMBA36_TARGET_FINALIZE_HOOKS += SAMBA36_TARGET_CLEANUP |
|
|
|
|
|
|
|
samba36: | $(TARGET_DIR) |
|
|
|
$(call autotools-package) |
|
|
|