source: freewrt/package/mgetty/Makefile@ ca629a6

freewrt_1_0 freewrt_2_0
Last change on this file since ca629a6 was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 4.4 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= mgetty
10PKG_VERSION:= 1.1.35
11PKG_XVERSION:= Feb22
12PKG_RELEASE:= 1
13PKG_MD5SUM:= 6805f8e31423bb777be80e3a856001cb
14
15PKG_SOURCE_URL:= ftp://alpha.greenie.net/pub/mgetty/source/1.1
16PKG_SOURCE:= $(PKG_NAME)$(PKG_VERSION)-$(PKG_XVERSION).tar.gz
17
18include $(TOPDIR)/mk/package.mk
19
20$(eval $(call PKG_template,MGETTY,mgetty,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22$(WRKBUILD)/policy.h: $(WRKBUILD)/.prepared
23 cp $(WRKBUILD)/policy.h-dist $(WRKBUILD)/policy.h
24 echo "#define AUTO_PPP" >> $(WRKBUILD)/policy.h
25 echo "#undef FAX_NOTIFY_PROGRAM" >> $(WRKBUILD)/policy.h
26 echo "#define FAX_NOTIFY_PROGRAM \"/usr/lib/mgetty+sendfax/new_fax\"" >> $(WRKBUILD)/policy.h
27 echo "#undef DATA_FLOW" >> $(WRKBUILD)/policy.h
28 echo "#define DATA_FLOW FLOW_HARD" >> $(WRKBUILD)/policy.h
29 echo "#undef DEVICE_GROUP" >> $(WRKBUILD)/policy.h
30 echo "#undef DEVICE_OWNER" >> $(WRKBUILD)/policy.h
31 echo "#define DEVICE_OWNER \"root\"" >> $(WRKBUILD)/policy.h
32 echo "#undef FAXREC_FLOW" >> $(WRKBUILD)/policy.h
33 echo "#define FAXREC_FLOW FLOW_SOFT" >> $(WRKBUILD)/policy.h
34 echo "#undef FAXSEND_FLOW" >> $(WRKBUILD)/policy.h
35 echo "#define FAXSEND_FLOW FLOW_SOFT" >> $(WRKBUILD)/policy.h
36
37$(WRKBUILD)/.configured: $(WRKBUILD)/policy.h
38 touch $@
39
40$(WRKBUILD)/.built:
41 mkdir -p $(WRKINST)/usr/bin
42 mkdir -p $(WRKINST)/usr/sbin
43 mkdir -p $(WRKINST)/usr/lib/mgetty+sendfax
44 mkdir -p $(WRKINST)/etc/mgetty+sendfax
45 $(MAKE) -C $(WRKBUILD) \
46 $(TARGET_CONFIGURE_OPTS) \
47 prefix="$(WRKINST)/usr" \
48 CONFDIR=/etc/mgetty+sendfax \
49 bin-all
50 $(CP) $(WRKBUILD)/mgetty $(WRKINST)/usr/sbin
51 $(CP) $(WRKBUILD)/sendfax $(WRKINST)/usr/sbin
52 $(CP) $(WRKBUILD)/fax/faxrunqd $(WRKINST)/usr/sbin
53 chmod 755 $(WRKINST)/usr/sbin/*
54 $(CP) $(WRKBUILD)/fax/faxq-helper $(WRKINST)/usr/lib/mgetty+sendfax
55 chmod u+s $(WRKINST)/usr/lib/mgetty+sendfax/faxq-helper
56 $(CP) $(WRKBUILD)/fax/cour25n.pbm $(WRKINST)/usr/lib/mgetty+sendfax
57 $(CP) $(WRKBUILD)/fax/cour25.pbm $(WRKINST)/usr/lib/mgetty+sendfax
58 $(CP) $(WRKBUILD)/fax/faxq $(WRKINST)/usr/bin
59 $(CP) $(WRKBUILD)/fax/faxrm $(WRKINST)/usr/bin
60 $(CP) $(WRKBUILD)/fax/faxrunq $(WRKINST)/usr/bin
61 $(CP) $(WRKBUILD)/fax/faxspool $(WRKINST)/usr/bin
62 $(CP) $(WRKBUILD)/g3/g32pbm $(WRKINST)/usr/bin
63 (cd $(WRKINST)/usr/bin;\
64 ln -snf g32pbm g3topbm;\
65 );
66 $(CP) $(WRKBUILD)/g3/g3cat $(WRKINST)/usr/bin
67 $(CP) $(WRKBUILD)/g3/pbm2g3 $(WRKINST)/usr/bin
68 $(CP) $(WRKBUILD)/g3/sff2g3 $(WRKINST)/usr/bin
69 chmod 755 $(WRKINST)/usr/bin/*
70# Installation into /etc
71 $(CP) $(WRKBUILD)/dialin.config $(WRKINST)/etc/mgetty+sendfax
72 $(CP) $(WRKBUILD)/fax/faxheader $(WRKINST)/etc/mgetty+sendfax
73 $(CP) $(WRKBUILD)/faxrunq.config $(WRKINST)/etc/mgetty+sendfax
74 $(CP) $(WRKBUILD)/fax/faxspool.rules $(WRKINST)/etc/mgetty+sendfax/faxspool.rules.sample
75 $(WRKBUILD)/sedscript < $(WRKBUILD)/login.cfg.in > $(WRKINST)/etc/mgetty+sendfax/login.config
76 $(WRKBUILD)/sedscript < $(WRKBUILD)/mgetty.cfg.in > $(WRKINST)/etc/mgetty+sendfax/mgetty.config
77 $(WRKBUILD)/sedscript < $(WRKBUILD)/sendfax.cfg.in > $(WRKINST)/etc/mgetty+sendfax/sendfax.config
78 touch $@
79
80ISBIN:=$(IDIR_MGETTY)/usr/sbin
81IBIN:=$(IDIR_MGETTY)/usr/bin
82ILIB:=$(IDIR_MGETTY)/usr/lib/mgetty+sendfax
83IETC:=$(IDIR_MGETTY)/etc/mgetty+sendfax
84
85$(IPKG_MGETTY):
86 install -d -m0755 $(ISBIN) $(IBIN) $(ILIB) $(IETC)
87 install -m0755 \
88 $(WRKINST)/usr/bin/faxq \
89 $(WRKINST)/usr/bin/faxrm \
90 $(WRKINST)/usr/bin/faxrunq \
91 $(WRKINST)/usr/bin/faxspool \
92 $(WRKINST)/usr/bin/g32pbm \
93 $(WRKINST)/usr/bin/g3cat \
94 $(WRKINST)/usr/bin/pbm2g3 \
95 $(WRKINST)/usr/bin/sff2g3 \
96 $(IBIN)
97 install -m0755 \
98 $(WRKINST)/usr/sbin/mgetty \
99 $(WRKINST)/usr/sbin/sendfax \
100 $(WRKINST)/usr/sbin/faxrunqd \
101 $(ISBIN)
102 install -m4755 \
103 $(WRKINST)/usr/lib/mgetty+sendfax/faxq-helper \
104 $(ILIB)
105 install -m644 \
106 $(WRKINST)/usr/lib/mgetty+sendfax/cour25n.pbm \
107 $(WRKINST)/usr/lib/mgetty+sendfax/cour25.pbm \
108 $(ILIB)
109 install -m600 \
110 $(WRKINST)/etc/mgetty+sendfax/dialin.config \
111 $(WRKINST)/etc/mgetty+sendfax/faxheader \
112 $(WRKINST)/etc/mgetty+sendfax/faxrunq.config \
113 $(WRKINST)/etc/mgetty+sendfax/faxspool.rules.sample \
114 $(WRKINST)/etc/mgetty+sendfax/login.config \
115 $(WRKINST)/etc/mgetty+sendfax/mgetty.config \
116 $(WRKINST)/etc/mgetty+sendfax/sendfax.config \
117 $(IETC)
118 $(RSTRIP) $(IDIR_MGETTY)
119 $(IPKG_BUILD) $(IDIR_MGETTY) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.