Changeset 131
- Timestamp:
- 09/27/07 12:52:04 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r130 r131 1184 1184 print PREINST $pkgdata{$pkg}{'pre'}; 1185 1185 close PREINST; 1186 `chmod 0755 $buildroot/$pkg/DEBIAN/preinst`;1186 chmod 0755, "$buildroot/$pkg/DEBIAN/preinst"; 1187 1187 } 1188 1188 if ($pkgdata{$pkg}{'post'}) { 1189 1189 $pkgdata{$pkg}{'post'} = expandmacros($pkgdata{$pkg}{'post'},'gp'); 1190 open P REINST, ">$buildroot/$pkg/DEBIAN/postinst";1191 print P REINST "#!/bin/sh\nset -e\n\n";1192 print P REINST $pkgdata{$pkg}{'post'};1193 close P REINST;1194 `chmod 0755 $buildroot/$pkg/DEBIAN/postinst`;1190 open POSTINST, ">$buildroot/$pkg/DEBIAN/postinst"; 1191 print POSTINST "#!/bin/sh\nset -e\n\n"; 1192 print POSTINST $pkgdata{$pkg}{'post'}; 1193 close POSTINST; 1194 chmod 0755, "$buildroot/$pkg/DEBIAN/postinst"; 1195 1195 } 1196 1196 if ($pkgdata{$pkg}{'preun'}) { 1197 1197 $pkgdata{$pkg}{'pre'} = expandmacros($pkgdata{$pkg}{'preun'},'gp'); 1198 open PRE INST, ">$buildroot/$pkg/DEBIAN/prerm";1199 print PRE INST "#!/bin/sh\nset -e\n\n";1200 print PRE INST $pkgdata{$pkg}{'preun'};1201 close PRE INST;1202 `chmod 0755 $buildroot/$pkg/DEBIAN/prerm`;1198 open PREUNINST, ">$buildroot/$pkg/DEBIAN/prerm"; 1199 print PREUNINST "#!/bin/sh\nset -e\n\n"; 1200 print PREUNINST $pkgdata{$pkg}{'preun'}; 1201 close PREUNINST; 1202 chmod 0755, "$buildroot/$pkg/DEBIAN/prerm"; 1203 1203 } 1204 1204 if ($pkgdata{$pkg}{'postun'}) { 1205 1205 $pkgdata{$pkg}{'postun'} = expandmacros($pkgdata{$pkg}{'postun'},'gp'); 1206 open P REINST, ">$buildroot/$pkg/DEBIAN/postrm";1207 print P REINST "#!/bin/sh\nset -e\n\n";1208 print P REINST $pkgdata{$pkg}{'postun'};1209 close P REINST;1210 `chmod 0755 $buildroot/$pkg/DEBIAN/postrm`;1206 open POSTUNINST, ">$buildroot/$pkg/DEBIAN/postrm"; 1207 print POSTUNINST "#!/bin/sh\nset -e\n\n"; 1208 print POSTUNINST $pkgdata{$pkg}{'postun'}; 1209 close POSTUNINST; 1210 chmod 0755, "$buildroot/$pkg/DEBIAN/postrm"; 1211 1211 } 1212 1212
Note:
See TracChangeset
for help on using the changeset viewer.