2 # Copyright (C) 2009-2018 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=@KERNEL
/software
/scm
/git
/
16 PKG_HASH
:=345056aa9b8084280b1b9fe1374d232dec05a34e8849028a20bfdb56e920dbb5
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/git
/Default
28 SUBMENU
:=Version Control Systems
29 DEPENDS
:=+libopenssl
+libpthread
+librt
+zlib
30 URL
:=http
://git-scm.com
31 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
35 $(call Package
/git
/Default
)
36 TITLE
:=The fast version control system
39 define Package
/git
/description
40 Git is a free
& open source
, distributed version control system
41 designed to handle everything from small to very large projects
42 with speed and efficiency.
45 define Package
/git-http
46 $(call Package
/git
/Default
)
47 DEPENDS
+= +git
+libcurl
48 TITLE
:=Git HTTP commands
51 define Package
/git-http
/description
52 $(call Package
/git
/description
)
54 This package allows git push
/fetch over http
(s
) and ftp
(s
)
57 define Package
/git-gitweb
58 $(call Package
/git
/Default
)
59 TITLE
:=Git repository web interface
60 DEPENDS
+= +git
+perlbase-essential
+perlbase-file
+perlbase-fcntl
+perlbase-encode
+perlbase-digest
+perlbase-time
+perl-cgi
63 define Package
/git-gitweb
/description
64 $(call Package
/git
/description
)
65 This package builds the gitweb web interface for git repositories
68 define Package
/git-gitweb
/conffiles
74 CFLAGS
="$(TARGET_CFLAGS)" \
75 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
76 LDFLAGS
="$(TARGET_LDFLAGS)" \
77 NO_EXPAT
="YesPlease" \
78 NO_MKSTEMPS
="YesPlease" \
79 NO_GETTEXT
="YesPlease" \
80 NO_UNIX_SOCKETS
="YesPlease" \
81 NO_ICONV
="YesPlease" \
84 NO_PYTHON
="YesPlease" \
85 NO_TCLTK
="YesPlease" \
86 NO_INSTALL_HARDLINKS
="yes" \
87 gitwebdir
="/www/cgi-bin" \
88 GITWEB_JS
="/gitweb/gitweb.js" \
89 GITWEB_CSS
="/gitweb/gitweb.css" \
90 GITWEB_LOGO
="/gitweb/gitweb-logo.png" \
91 GITWEB_FAVICON
="/gitweb/gitweb-favicon.png"
96 define Build
/Configure
97 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
100 $(call Build
/Configure
/Default
,)
104 mkdir
-p
$(PKG_INSTALL_DIR
)/www
/cgi-bin
$(PKG_INSTALL_DIR
)/www
/gitweb
105 $(call Build
/Compile
/Default
,DESTDIR
=$(PKG_INSTALL_DIR
) all install gitweb install-gitweb
)
108 define Package
/git
/install
109 $(RM
) $(PKG_INSTALL_DIR
)/usr
/bin
/git-cvsserver
110 $(RM
) $(PKG_INSTALL_DIR
)/usr
/bin
/git-shell
111 $(INSTALL_DIR
) $(1)/usr
/bin
112 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/git-
* $(1)/usr
/bin
113 $(INSTALL_DIR
) $(1)/usr
/lib
/git-core
114 $(INSTALL_DIR
) $(1)/usr
/share
/git-core
/templates
115 ( cd
$(PKG_INSTALL_DIR
); $(TAR
) \
116 --exclude
=usr
/lib
/git-core
/git-http-backend \
117 --exclude
=usr
/lib
/git-core
/git-http-fetch \
118 --exclude
=usr
/lib
/git-core
/git-remote-ftp \
119 --exclude
=usr
/lib
/git-core
/git-remote-ftps \
120 --exclude
=usr
/lib
/git-core
/git-remote-http \
121 --exclude
=usr
/lib
/git-core
/git-remote-https \
124 usr
/share
/git-core
/templates \
125 ) |
( cd
$(1); $(TAR
) -xf
- )
126 ln
$(1)/usr
/lib
/git-core
/git
$(1)/usr
/bin
/git
127 ln
$(1)/usr
/lib
/git-core
/git-shell
$(1)/usr
/bin
/git-shell
130 define Package
/git-http
/install
131 $(INSTALL_DIR
) $(1)/usr
/lib
/git-core
132 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/git-core
/git-http-backend
$(1)/usr
/lib
/git-core
133 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/git-core
/git-http-fetch
$(1)/usr
/lib
/git-core
134 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/git-core
/git-remote-ftp
$(1)/usr
/lib
/git-core
135 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/git-core
/git-remote-ftps
$(1)/usr
/lib
/git-core
136 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/git-core
/git-remote-http
$(1)/usr
/lib
/git-core
137 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/git-core
/git-remote-https
$(1)/usr
/lib
/git-core
140 define Package
/git-gitweb
/install
141 $(INSTALL_DIR
) $(1)/www
/cgi-bin
$(1)/www
/gitweb
142 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/www
/cgi-bin
/gitweb.cgi
$(1)/www
/cgi-bin
/
143 $(CP
) $(PKG_INSTALL_DIR
)/www
/cgi-bin
/static
/* $(1)/www
/gitweb
/
146 $(eval
$(call BuildPackage
,git
))
147 $(eval
$(call BuildPackage
,git-http
))
148 $(eval
$(call BuildPackage
,git-gitweb
))