[packaging] add the filter script from old packaging