123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- #
- # Copyright (C) 2007-2016 OpenWrt.org
- #
- # This is free software, licensed under the GNU General Public License v2.
- # See /LICENSE for more information.
- #
- include $(TOPDIR)/rules.mk
- PKG_NAME:=subversion
- PKG_RELEASE:=2
- PKG_VERSION:=1.9.7
- PKG_SOURCE_URL:=@APACHE/subversion
- PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
- PKG_HASH:=c3b118333ce12e501d509e66bb0a47bcc34d053990acab45559431ac3e491623
- PKG_LICENSE:=Apache-2.0
- PKG_LICENSE_FILES:=LICENSE
- PKG_MAINTAINER:=
- PKG_FIXUP:=autoreconf
- PKG_MACRO_PATHS:=build/ac-macros
- include $(INCLUDE_DIR)/package.mk
- include $(INCLUDE_DIR)/nls.mk
- define Package/subversion/Default
- SECTION:=net
- CATEGORY:=Network
- SUBMENU:=Version Control Systems
- TITLE:=A compelling replacement for CVS
- DEPENDS:=+zlib +libsqlite3 +PACKAGE_unixodbc:unixodbc +libapr +libaprutil +libmagic \
- $(ICONV_DEPENDS) $(INTL_DEPENDS)
- URL:=http://subversion.apache.org/
- endef
- define Package/subversion/Default/description
- Subversion is a free/open-source version control system. That is,
- Subversion manages files and directories, and the changes made to them,
- over time. This allows you to recover older versions of your data, or
- examine the history of how your data changed. In this regard, many
- people think of a version control system as a sort of time machine.
- endef
- define Package/subversion-libs
- $(call Package/subversion/Default)
- TITLE:=subversion libs
- endef
- define Package/subversion-libs/description
- $(call Package/subversion/Default/description)
- This package contains the Subversion libraries.
- endef
- define Package/subversion-client
- $(call Package/subversion/Default)
- DEPENDS:=+subversion-libs
- TITLE:=subversion client tools
- endef
- define Package/subversion-client/description
- $(call Package/subversion/Default/description)
- This package contains the Subversion client tools.
- endef
- define Package/subversion-server
- $(call Package/subversion/Default)
- DEPENDS:=+subversion-libs
- TITLE:=subversion server
- endef
- define Package/subversion-server/description
- $(call Package/subversion/Default/description)
- This package contains the Subversion server.
- endef
- define Package/subversion-server/conffiles
- /etc/config/subversion
- endef
- TARGET_CFLAGS += $(FPIC)
- TARGET_CPPFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
- APU_LIBS=$(shell $(STAGING_DIR)/usr/bin/apu-1-config --link-libtool --libs)
- CONFIGURE_ARGS += \
- --with-apr="$(STAGING_DIR)/usr/bin/apr-1-config" \
- --with-apr-util="$(STAGING_DIR)/usr/bin/apu-1-config" \
- --with-libmagic="$(STAGING_DIR)/usr" \
- --disable-mod-activation \
- --without-ruby-sitedir \
- --without-swig \
- --without-jikes \
- --without-junit \
- --without-berkeley-db \
- --without-apxs \
- --without-sasl
- ifdef $(INTL_FULL)
- CONFIGURE_ARGS += --enable-nls
- else
- CONFIGURE_ARGS += --disable-nls
- endif
- CONFIGURE_VARS += \
- LDFLAGS="$(TARGET_LDFLAGS) $(APU_LIBS) -lcrypt -lm \
- -lz -lpthread $(if $(INTL_FULL),-lintl)"
- CPPFLAGS="$(TARGET_CPPFLAGS)"
- define Build/Compile
- $(MAKE) -C $(PKG_BUILD_DIR) \
- DESTDIR="$(PKG_INSTALL_DIR)" \
- all local-install
- endef
- define Package/subversion-libs/install
- $(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsvn_*.so.* $(1)/usr/lib/
- endef
- define Package/subversion-client/install
- $(INSTALL_DIR) $(1)/usr/bin
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{svn,svnversion,svnsync} $(1)/usr/bin/
- endef
- define Package/subversion-server/install
- $(INSTALL_DIR) $(1)/usr/bin
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svn{look,admin,dumpfilter,serve} $(1)/usr/bin/
- $(INSTALL_DIR) $(1)/etc/config
- $(INSTALL_CONF) ./files/subversion.config $(1)/etc/config/subversion
- $(INSTALL_DIR) $(1)/etc/init.d
- $(INSTALL_BIN) ./files/subversion.init $(1)/etc/init.d/subversion
- endef
- define Package/subversion-server/prerm
- #!/bin/sh
- ps | grep '\(/svnserve$\| svnserve\)' | grep -cvq grep >/dev/null && /etc/init.d/subversion stop
- /etc/init.d/subversion disable
- endef
- $(eval $(call BuildPackage,subversion-libs))
- $(eval $(call BuildPackage,subversion-client))
- $(eval $(call BuildPackage,subversion-server))
|