2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE_URL
:=@APACHE
/subversion
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_HASH
:=949efd451a09435f7e8573574c71c7b71b194d844890fa49cd61d2262ea1a440
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
22 PKG_MACRO_PATHS
:=build
/ac-macros
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/nls.mk
29 define Package
/subversion
/Default
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
/
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.
46 define Package
/subversion-libs
47 $(call Package
/subversion
/Default
)
48 TITLE
:=subversion libs
51 define Package
/subversion-libs
/description
52 $(call Package
/subversion
/Default
/description
)
53 This package contains the Subversion libraries.
56 define Package
/subversion-client
57 $(call Package
/subversion
/Default
)
58 DEPENDS
:=+subversion-libs
59 TITLE
:=subversion client tools
62 define Package
/subversion-client
/description
63 $(call Package
/subversion
/Default
/description
)
64 This package contains the Subversion client tools.
67 define Package
/subversion-server
68 $(call Package
/subversion
/Default
)
69 DEPENDS
:=+subversion-libs
70 TITLE
:=subversion server
73 define Package
/subversion-server
/description
74 $(call Package
/subversion
/Default
/description
)
75 This package contains the Subversion server.
78 define Package
/subversion-server
/conffiles
79 /etc
/config
/subversion
84 --without-berkeley-db \
88 --with-utf8proc
=internal \
89 $(call autoconf_bool
,INTL_FULL
,nls
)
91 TARGET_LDFLAGS
+= $(if
$(INTL_FULL
),-lintl
)
93 define Package
/subversion-libs
/install
94 $(INSTALL_DIR
) $(1)/usr
/lib
95 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsvn_
*.so.
* $(1)/usr
/lib
/
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
/
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
112 define Package
/subversion-server
/prerm
114 ps | grep
'\(/svnserve$\| svnserve\)' | grep
-cvq grep
>/dev
/null
&& /etc
/init.d
/subversion stop
115 /etc
/init.d
/subversion disable
118 $(eval
$(call BuildPackage
,subversion-libs
))
119 $(eval
$(call BuildPackage
,subversion-client
))
120 $(eval
$(call BuildPackage
,subversion-server
))