summaryrefslogtreecommitdiff
path: root/package/drbd/Makefile
blob: 1e1308b3b74a08d51bcda11be4a4b10a093e1f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		drbd
PKG_VERSION:=		8.4.4
PKG_RELEASE:=		2
PKG_MD5SUM:=		b51815343c1a9151e2936b3b97520388
PKG_DESCR:=		DRBD admin tools
PKG_SECTION:=		fs
PKG_URL:=		http://www.drbd.org/
PKG_SITES:=		http://oss.linbit.com/drbd/8.4/

PKG_LIBC_DEPENDS:=	uclibc glibc

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,DRBD,drbd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

XAKE_FLAGS+=		GENETLINK_H=$(STAGING_TARGET_DIR)/usr/include/linux/genetlink.h
CONFIGURE_ARGS+=	--with-distro=generic \
			--with-pacemaker \
			--without-heartbeat \
			--without-km \
			--without-xen \
			--without-udev

post-install:
	$(INSTALL_DIR) $(IDIR_DRBD)/etc
	$(CP) ./files/drbd.conf $(IDIR_DRBD)/etc
	$(INSTALL_DIR) $(IDIR_DRBD)/usr/lib/drbd
	$(INSTALL_DIR) $(IDIR_DRBD)/usr/sbin
	$(CP) $(WRKINST)/usr/lib/drbd/* \
		$(IDIR_DRBD)/usr/lib/drbd/
	$(INSTALL_BIN) $(WRKINST)/usr/sbin/drbd* \
		$(IDIR_DRBD)/usr/sbin

include ${TOPDIR}/mk/pkg-bottom.mk