makefile.mk (f9b8cf2a) makefile.mk (914ff780)
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
48# --- Targets -------------------------------------------------------
49
50.INCLUDE : target.mk
51
52.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/deb//)"
53
54ALLTAR : $(DEBFILES)
55

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

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)
54# --- Targets -------------------------------------------------------
55
56.INCLUDE : target.mk
57
58.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/deb//)"
59
60ALLTAR : $(DEBFILES)
61

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

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)
88 /bin/bash -c "LD_PRELOAD=$(SOLARBINDIR)/getuid.so dpkg-deb --build $(MISC)/$(@:b) $@"
94 /bin/bash -c "$(FAKEROOT2) dpkg-deb --build $(MISC)/$(@:b) $@"
89 $(RM) -r $(MISC)$/$(@:b)
90# @chmod -R g+w $(MISC)/$(TARGET)/$(DEBFILE:f)
91
92.ENDIF
95 $(RM) -r $(MISC)$/$(@:b)
96# @chmod -R g+w $(MISC)/$(TARGET)/$(DEBFILE:f)
97
98.ENDIF