author | kergoth <kergoth> | 2002-09-05 18:40:07 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-09-05 18:40:07 (UTC) |
commit | 45c33b69ae0eec4868a312dc7eb9f496e10588bd (patch) (side-by-side diff) | |
tree | 5e19613dbca8532e01d04c97165f5a97a1d77ba9 | |
parent | deaef1d44dfc99be6301bfb20e5b35346c005641 (diff) | |
download | opie-45c33b69ae0eec4868a312dc7eb9f496e10588bd.zip opie-45c33b69ae0eec4868a312dc7eb9f496e10588bd.tar.gz opie-45c33b69ae0eec4868a312dc7eb9f496e10588bd.tar.bz2 |
Forgot to have it chown everything to root.root when building as root in classic mode.
-rwxr-xr-x | mkipks | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -212,53 +212,55 @@ do echo "Warning, no mkfs.jffs2 found, unable to set Installed-Size." SIZEWARNED=1 fi fi echo "Architecture: $ARCH" >>$CTRLDIR/control echo "Filename: ./$package.ipk" >>$CTRLDIR/control echo "Version: $version" >>$CTRLDIR/control [ ! -z "$depends" ] && echo "Depends: $depends" >>$CTRLDIR/control [ ! -z "$provides" ] && echo "Provides: $provides" >>$CTRLDIR/control [ ! -z "$conflicts" ] && echo "Conflicts: $conflicts" >>$CTRLDIR/control egrep -v "^(Files|Version|Depends|Provides|Conflicts|Architecture):" >>$CTRLDIR/control $i [ -n "$CLASSIC" ] && echo "$DEB_VERSION" >$TDIR/debian-binary base=${i%.control} scripts="preinst postinst prerm postrm" for pf in $scripts do if [ -x ${base}.$pf ] then cp ${base}.$pf $CTRLDIR/$pf fi done if [ -z "$CLASSIC" ] then $OPIEDIR/scripts/ipkg-build -o root -g root $TDIR else if [ "`id -u`" != "0" ] then if [ -z "$ROOTWARNED" ] then echo Warning. You are not root. Please become root or use fakeroot. ROOTWARNED=1 fi + else + chown -R root.root $TDIR/* fi ( cd $DATADIR && tar -czf $TDIR/data.tar.gz * ) ( cd $CTRLDIR && tar -czf $TDIR/control.tar.gz * ) ( cd $TDIR && tar -czf $OPIEDIR/$package.ipk ./control.tar.gz ./data.tar.gz ./debian-binary ) fi RESULT=$package.ipk if [ -n "$VERB" ] then echo >&2 "Built $RESULT ($size)" fi if [ -n "$LIST" ] then echo $RESULT fi fi else echo >&2 "Not building $package package" fi done # clean up rm -rf $TDIR |