makefile.mk (dfe9974f) makefile.mk (49cc8443)
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 31 unchanged lines hidden (view full) ---

40# --- Files --------------------------------------------------------
41
42.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/deb//)"
43
44DEBFILES=$(foreach,i,{$(PRODUCTLIST)} $(PKGDIR)$/$i4.2-$(TARGET)-menus_$(PKGVERSION.$i)-$(PKGREV)_all.deb)
45
46.ENDIF
47
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 31 unchanged lines hidden (view full) ---

40# --- Files --------------------------------------------------------
41
42.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/deb//)"
43
44DEBFILES=$(foreach,i,{$(PRODUCTLIST)} $(PKGDIR)$/$i4.2-$(TARGET)-menus_$(PKGVERSION.$i)-$(PKGREV)_all.deb)
45
46.ENDIF
47
48.IF "$(FAKEROOT)"!="no"
49FAKEROOT2="$(FAKEROOT)"
50.ELSE
51FAKEROOT2="LD_PRELOAD=$(SOLARBINDIR)/getuid.so"
52.ENDIF
53
54# --- Targets -------------------------------------------------------
55
56.INCLUDE : target.mk
57
58.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/deb//)"
59
60ALLTAR : $(DEBFILES)
61

--- 14 unchanged lines hidden (view full) ---

76%/DEBIAN/postrm : $$(@:f)
77 @cat $< | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(*:f:s/-/ /:1:s/4.2//))/g" > $@
78
79%/DEBIAN/prerm : $$(@:f)
80 @cat $< | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(*:f:s/-/ /:1:s/4.2//))/g" > $@
81
82# --- packaging ---------------------------------------------------
83
48# --- Targets -------------------------------------------------------
49
50.INCLUDE : target.mk
51
52.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/deb//)"
53
54ALLTAR : $(DEBFILES)
55

--- 14 unchanged lines hidden (view full) ---

70%/DEBIAN/postrm : $$(@:f)
71 @cat $< | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(*:f:s/-/ /:1:s/4.2//))/g" > $@
72
73%/DEBIAN/prerm : $$(@:f)
74 @cat $< | tr -d "\015" | sed -e "s/%PREFIX/$(UNIXFILENAME.$(*:f:s/-/ /:1:s/4.2//))/g" > $@
75
76# --- packaging ---------------------------------------------------
77
84# getuid.so fakes the user/group for us
78# fakeroot (which is required and checked for at configure time) fakes the user/group for us
85$(DEBFILES) : $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag
86$(DEBFILES) : makefile.mk control postinst postrm prerm
87 -$(RM) $(@:d)$(@:f:s/_/ /:1)_*
88 $(RM) -r $(MISC)$/$(@:b)
89 dmake $(MISC)$/$(@:b)$/DEBIAN$/{control postinst postrm prerm}
90 @chmod -R go-w $(MISC)$/$(@:b)
91 @chmod a+rx $(MISC)$/$(@:b)$/DEBIAN $(MISC)/$(@:b)/DEBIAN/post* $(MISC)/$(@:b)/DEBIAN/pre*
92 @chmod g-s $(MISC)/$(@:b)/DEBIAN
93 @mkdir -p $(PKGDIR)
79$(DEBFILES) : $(COMMONMISC)$/{$(PRODUCTLIST)}$/build.flag
80$(DEBFILES) : makefile.mk control postinst postrm prerm
81 -$(RM) $(@:d)$(@:f:s/_/ /:1)_*
82 $(RM) -r $(MISC)$/$(@:b)
83 dmake $(MISC)$/$(@:b)$/DEBIAN$/{control postinst postrm prerm}
84 @chmod -R go-w $(MISC)$/$(@:b)
85 @chmod a+rx $(MISC)$/$(@:b)$/DEBIAN $(MISC)/$(@:b)/DEBIAN/post* $(MISC)/$(@:b)/DEBIAN/pre*
86 @chmod g-s $(MISC)/$(@:b)/DEBIAN
87 @mkdir -p $(PKGDIR)
94 /bin/bash -c "$(FAKEROOT2) dpkg-deb --build $(MISC)/$(@:b) $@"
88 /bin/bash -c "$(FAKEROOT) dpkg-deb --build $(MISC)/$(@:b) $@"
95 $(RM) -r $(MISC)$/$(@:b)
96# @chmod -R g+w $(MISC)/$(TARGET)/$(DEBFILE:f)
97
98.ENDIF
89 $(RM) -r $(MISC)$/$(@:b)
90# @chmod -R g+w $(MISC)/$(TARGET)/$(DEBFILE:f)
91
92.ENDIF