3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=b3180ad1f250a4e3820613e711ae159b
10 PKG_SOURCE_URL
:=http
://www.maradns.org
/download
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,MARADNS
,maradns
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
23 $(TARGET_CONFIGURE_OPTS
) \
25 --target
=$(GNU_TARGET_NAME
) \
26 --host
=$(GNU_TARGET_NAME
) \
27 --build
=$(GNU_HOST_NAME
) \
33 --datadir=/usr
/share \
34 --includedir=/usr
/include \
35 --infodir=/usr
/share
/info \
37 --libexecdir
=/usr
/lib \
38 --localstatedir
=/var \
39 --mandir=/usr
/share
/man \
42 $(DISABLE_LARGEFILE
) \
49 $(PKG_BUILD_DIR
)/.built
:
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 CFLAGS
="$(TARGET_CFLAGS)" \
52 FLAGS
="$(TARGET_CFLAGS)" \
55 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
/{bin
,sbin
}
56 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
/man
/man
{1,5,8}
57 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
58 PREFIX
="$(PKG_INSTALL_DIR)/usr" \
59 RPM_BUILD_ROOT
="$(PKG_INSTALL_DIR)" \
64 install -d
-m0755
$(IDIR_MARADNS
)/etc
65 install -m0644 .
/files
/mararc
$(IDIR_MARADNS
)/etc
/mararc
66 install -d
-m0755
$(IDIR_MARADNS
)/etc
/init.d
67 install -m0755 .
/files
/maradns.init
$(IDIR_MARADNS
)/etc
/init.d
/S60maradns
68 install -d
-m0755
$(IDIR_MARADNS
)/usr
/bin
69 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/{askmara
,getzone
} $(IDIR_MARADNS
)/usr
/bin
/
70 install -d
-m0755
$(IDIR_MARADNS
)/usr
/sbin
71 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/{maradns
,zoneserver
} $(IDIR_MARADNS
)/usr
/sbin
/
72 $(RSTRIP
) $(IDIR_MARADNS
)
73 $(IPKG_BUILD
) $(IDIR_MARADNS
) $(PACKAGE_DIR
)