subversion: update to 1.14.3
[feed/packages.git] / net / subversion / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=subversion
9 PKG_VERSION:=1.14.3
10 PKG_RELEASE:=1
11
12 PKG_SOURCE_URL:=@APACHE/subversion
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_HASH:=949efd451a09435f7e8573574c71c7b71b194d844890fa49cd61d2262ea1a440
15
16 PKG_MAINTAINER:=Aleksey Vasilenko <aleksey.vasilenko@gmail.com>
17 PKG_LICENSE:=Apache-2.0
18 PKG_LICENSE_FILES:=LICENSE
19 PKG_CPE_ID:=cpe:/a:apache:subversion
20
21 PKG_FIXUP:=autoreconf
22 PKG_MACRO_PATHS:=build/ac-macros
23 PKG_BUILD_PARALLEL:=1
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/nls.mk
28
29 define Package/subversion/Default
30 SECTION:=net
31 CATEGORY:=Network
32 SUBMENU:=Version Control Systems
33 TITLE:=A compelling replacement for CVS
34 DEPENDS:=+PACKAGE_unixodbc:unixodbc +libaprutil +libmagic +libsqlite3 $(ICONV_DEPENDS) $(INTL_DEPENDS)
35 URL:=https://subversion.apache.org/
36 endef
37
38 define Package/subversion/Default/description
39 Subversion is a free/open-source version control system. That is,
40 Subversion manages files and directories, and the changes made to them,
41 over time. This allows you to recover older versions of your data, or
42 examine the history of how your data changed. In this regard, many
43 people think of a version control system as a sort of time machine.
44 endef
45
46 define Package/subversion-libs
47 $(call Package/subversion/Default)
48 TITLE:=subversion libs
49 endef
50
51 define Package/subversion-libs/description
52 $(call Package/subversion/Default/description)
53 This package contains the Subversion libraries.
54 endef
55
56 define Package/subversion-client
57 $(call Package/subversion/Default)
58 DEPENDS:=+subversion-libs
59 TITLE:=subversion client tools
60 endef
61
62 define Package/subversion-client/description
63 $(call Package/subversion/Default/description)
64 This package contains the Subversion client tools.
65 endef
66
67 define Package/subversion-server
68 $(call Package/subversion/Default)
69 DEPENDS:=+subversion-libs
70 TITLE:=subversion server
71 endef
72
73 define Package/subversion-server/description
74 $(call Package/subversion/Default/description)
75 This package contains the Subversion server.
76 endef
77
78 define Package/subversion-server/conffiles
79 /etc/config/subversion
80 endef
81
82 CONFIGURE_ARGS += \
83 --without-swig \
84 --without-berkeley-db \
85 --without-apxs \
86 --without-sasl \
87 --with-lz4=internal \
88 --with-utf8proc=internal \
89 $(call autoconf_bool,INTL_FULL,nls)
90
91 TARGET_LDFLAGS += $(if $(INTL_FULL),-lintl)
92
93 define Package/subversion-libs/install
94 $(INSTALL_DIR) $(1)/usr/lib
95 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsvn_*.so.* $(1)/usr/lib/
96 endef
97
98 define Package/subversion-client/install
99 $(INSTALL_DIR) $(1)/usr/bin
100 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{svn,svnversion,svnsync} $(1)/usr/bin/
101 endef
102
103 define Package/subversion-server/install
104 $(INSTALL_DIR) $(1)/usr/bin
105 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svn{look,admin,dumpfilter,serve} $(1)/usr/bin/
106 $(INSTALL_DIR) $(1)/etc/config
107 $(INSTALL_CONF) ./files/subversion.config $(1)/etc/config/subversion
108 $(INSTALL_DIR) $(1)/etc/init.d
109 $(INSTALL_BIN) ./files/subversion.init $(1)/etc/init.d/subversion
110 endef
111
112 define Package/subversion-server/prerm
113 #!/bin/sh
114 ps | grep '\(/svnserve$\| svnserve\)' | grep -cvq grep >/dev/null && /etc/init.d/subversion stop
115 /etc/init.d/subversion disable
116 endef
117
118 $(eval $(call BuildPackage,subversion-libs))
119 $(eval $(call BuildPackage,subversion-client))
120 $(eval $(call BuildPackage,subversion-server))